Banshee.Sources.Gui.SourceRowRenderer.GetSize C# (CSharp) Method

GetSize() public method

public GetSize ( Gtk.Widget widget, Gdk &cell_area, int &x_offset, int &y_offset, int &width, int &height ) : void
widget Gtk.Widget
cell_area Gdk
x_offset int
y_offset int
width int
height int
return void
        public override void GetSize (Widget widget, ref Gdk.Rectangle cell_area,
            out int x_offset, out int y_offset, out int width, out int height)
        {
            int text_x, text_y, text_w, text_h;

            base.GetSize (widget, ref cell_area, out text_x, out text_y, out text_w, out text_h);

            x_offset = 0;
            y_offset = 0;

            if (!(widget is TreeView)) {
                width = 200;
            } else {
                width = 0;
            }

            height = (int)Math.Max (RowHeight, text_h);
        }