Esempio n. 1
0
 public FixedElement(LayoutedElement element, Unit left, Unit down)
 {
     Name = element.Name;
     Specification = element.Specification;
     MarginBox = new FixedBox(left, down, element.OuterWidth, element.OuterHeight);
     BorderBox = new FixedBox(left, down, element.OuterWidth, element.OuterHeight, element.Specification.Margins);
     InnerBox = new FixedBox(left, down, element.OuterWidth, element.OuterHeight, element.Specification.Edge);
     InnerBoxBeforeSplitOrCrop = new FixedBox(InnerBox.Left, InnerBox.Top, element.InnerWidthBeforeSplitOrCrop, element.InnerHeightBeforeSplitOrCrop);
     VisiblePartOfSpecification = new FixedBox(0.cm(), element.ViewportTop, InnerBox.Width, InnerBox.Height);
 }
Esempio n. 2
0
        public void Set(Situation Situation)
        {
            Assistment.Texts.Text oben = new Assistment.Texts.Text();
            oben.preferedFont = ObenFont;
            oben.addRegex(@"Initiative                \d" + Situation.Akteur.FertigkeitsWert("Initiative"));
            oben.addAbsatz();
            oben.addRegex(Situation.Akteur.Charakter.VollstandigerName + "'s ");
            oben.addRegex(@"\d" + Situation.Name + @"\d");
            oben.alignment = .5f;

            DrawBox gOben = oben.Geometry(3);

            gOben.setup(new RectangleF(new PointF(), Size));
            SizeOben = new SizeF(Size.Width, gOben.box.Height);
            SizeUnten = new SizeF(Size.Width, Size.Height - SizeOben.Height);
            SizeF SizeUntenMitAbstand = SizeUnten.sub(Abstand);

            this[1, 0] = new FixedBox(SizeOben, gOben);

            FixedBox f = new FixedBox(SizeUntenMitAbstand, Situation.GetDrawBox(SizeUntenMitAbstand));
            this[2, 0] = f.Geometry(Abstand);
            f.Alignment = new SizeF(0.5f, 0f);
        }
Esempio n. 3
0
 static void TestFixedBox()
 {
     Size s = new Size(1000,1000);
     PreText d = new CString();
     d.addWort("Doll-Dagga-Buzz-Buzz");
     FixedBox fb = new FixedBox(s, d);
     fb.Alignment = new SizeF(0.5f, 0.5f);
     fb.createImage("test");
     fb.createLog("test", 1000);
 }