public static cave.Length forString(string value) { var v = new cave.Length(); v.parse(value); return(v); }
public static cave.Length forValue(double value, int unit) { var v = new cave.Length(); v.setValue(value); v.setUnit(unit); return(v); }
public static cave.Length forInches(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_INCH); return(v); }
public static cave.Length forNanoMeters(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_NANOMETER); return(v); }
public static cave.Length forMilliMeters(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_MILLIMETER); return(v); }
public static cave.Length forPoints(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_POINT); return(v); }
public FontDescription() { file = null; name = "Sans"; size = cave.Length.forMicroMeters((double)2500); bold = false; italic = false; underline = false; }
public static cave.Length forStringAsPoints(string value, int ppi) { var v = new cave.Length(); v.parse(value); v.setValue((double)v.toPoints(ppi)); v.setUnit(cave.Length.UNIT_POINT); return(v); }
public cave.FontDescription forName(string name, cave.Length size = null) { var v = new cave.FontDescription(); v.setName(name); if (size != null) { v.setSize(size); } return(v); }
public cave.FontDescription forFile(cape.File file, cave.Length size = null) { var v = new cave.FontDescription(); v.setFile(file); if (size != null) { v.setSize(size); } return(v); }
public cave.FontDescription setSize(cave.Length v) { size = v; return(this); }