gbrainy.Core.Toolkit.Container.Draw C# (CSharp) Method

Draw() public method

public Draw ( CairoContextEx gr, int area_width, int area_height, bool rtl ) : void
gr gbrainy.Core.Main.CairoContextEx
area_width int
area_height int
rtl bool
return void
        public override void Draw(CairoContextEx gr, int area_width, int area_height, bool rtl)
        {
            #if DESIGN_MODE
            gr.Save ();
            gr.Color = new Cairo.Color (0, 0, 1);
            gr.Rectangle (X, Y, Width, Height);
            gr.Stroke ();
            gr.Restore ();
            #endif
            foreach (Widget child in children)
            {
                gr.Save ();
                gr.Translate (child.X, child.Y);
                child.Draw (gr, area_width, area_height, rtl);
                gr.Restore ();
            }
        }