Ejemplo n.º 1
0
        public virtual void Draw()
        {
            if (button == null || text == null)
            {
                return;
            }

            button.Draw();
            text.Draw();
        }
Ejemplo n.º 2
0
        public virtual void Draw()
        {
            if (button == null || text == null)
            {
                return;
            }

            button.Draw();
            text.Draw();

            if (UnderlinedAbove && underlineAbove != null)
            {
                underlineAbove.Draw();
            }

            if (UnderlinedBelow && underlineBelow != null)
            {
                underlineBelow.Draw();
            }
        }
Ejemplo n.º 3
0
        public override void Draw(Size offset)
        {
            if (rectHeader == null || textHeader == null || (HasFooter && (rectFooter == null || textFooter == null)))
            {
                return;
            }

            if (HasFooter)
            {
                rectFooter.Draw(offset);
                textFooter.Draw(offset);
            }
            rectHeader.Draw(offset);
            textHeader.Draw(offset);
            for (int i = 0; i < ItemDrawCount; i++)
            {
                Items[i + CurrentScrollOffset].Draw(offset);
            }
            DrawScrollArrows(CurrentScrollOffset > 0, CurrentScrollOffset < MaxScrollOffset, offset);
        }