Пример #1
0
        public EleHeader PushHeader(string text)
        {
            EleHeader ret = this.AddHeader(text);

            if (ret == null)
            {
                return(null);
            }

            this.stack.Push(this.head);

            this.head = new Entry(ret);
            return(ret);
        }
Пример #2
0
        public EleHeader CreateHeader(EleBaseRect parent, string text)
        {
            EleHeader ele =
                new EleHeader(
                    parent,
                    text,
                    this.headerTextAttrib.font,
                    this.headerTextAttrib.color,
                    this.headerTextAttrib.fontSize,
                    this.headerSprite,
                    this.headerPadding);

            ele.border  = this.headerPadding;
            ele.minSize = this.minHeaderSize;

            return(ele);
        }
Пример #3
0
        public EleHeader AddHeader(string text)
        {
            EleBaseSizer szr = this.head.GetSizer();

            if (szr == null)
            {
                return(null);
            }

            EleHeader header =
                new EleHeader(
                    this.head.rect,
                    text,
                    this.uiFactory.headerTextAttrib.font,
                    this.uiFactory.headerTextAttrib.color,
                    this.uiFactory.headerTextAttrib.fontSize,
                    this.uiFactory.headerSprite,
                    this.uiFactory.buttonPadding);

            szr.Add(header, 0.0f, LFlag.GrowHoriz);

            return(header);
        }