Exemplo n.º 1
0
        public static cave.Length forString(string value)
        {
            var v = new cave.Length();

            v.parse(value);
            return(v);
        }
Exemplo n.º 2
0
        public static cave.Length forValue(double value, int unit)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(unit);
            return(v);
        }
Exemplo n.º 3
0
        public static cave.Length forInches(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_INCH);
            return(v);
        }
Exemplo n.º 4
0
        public static cave.Length forNanoMeters(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_NANOMETER);
            return(v);
        }
Exemplo n.º 5
0
        public static cave.Length forMilliMeters(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_MILLIMETER);
            return(v);
        }
Exemplo n.º 6
0
        public static cave.Length forPoints(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_POINT);
            return(v);
        }
Exemplo n.º 7
0
 public FontDescription()
 {
     file      = null;
     name      = "Sans";
     size      = cave.Length.forMicroMeters((double)2500);
     bold      = false;
     italic    = false;
     underline = false;
 }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        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);
        }
Exemplo n.º 10
0
        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);
        }
Exemplo n.º 11
0
 public cave.FontDescription setSize(cave.Length v)
 {
     size = v;
     return(this);
 }