コード例 #1
0
ファイル: Page.cs プロジェクト: kakjelsb/Gryphonheart
        public Page(IFlags flags, IPageProperties properties, IElementFactory elementFactory) : base(flags)
        {
            this.flags          = flags;
            this.properties     = properties;
            this.elementFactory = elementFactory;
            this.frame          = (IFrame)Global.FrameProvider.CreateFrame(FrameType.Frame, GenerateFrameName("GHD_DocumentPage"));
            this.frame.SetWidth(this.properties.Width);
            this.frame.SetHeight(this.properties.Height);

            var texture = this.frame.CreateTexture();

            texture.SetAllPoints(this.frame);
            texture.SetTexture(0.1, 0.1, 0.1);

            this.AppendChild(elementFactory.CreateLine(flags));
            this.FirstChild.Object.Region.SetPoint(FramePoint.TOPLEFT, this.frame, FramePoint.TOPLEFT, this.properties.EdgeLeft, -this.properties.EdgeTop);
        }