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);
        }
Exemple #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);
        }
        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);
        }