Пример #1
0
 protected override void Render(Gdk.Drawable window, Gtk.Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, Gtk.CellRendererState flags)
 {
     if (Handler.FormattingEnabled)
     {
         Handler.Format(new GtkTextCellFormatEventArgs <Renderer>(this, Handler.Column.Widget, Item, Row));
     }
     // calling base crashes on windows
     GtkCell.gtksharp_cellrenderer_invoke_render(Gtk.CellRendererCombo.GType.Val, Handle, window.Handle, widget.Handle, ref background_area, ref cell_area, ref expose_area, flags);
     //base.Render (window, widget, background_area, cell_area, expose_area, flags);
 }
Пример #2
0
            protected override void Render(Gdk.Drawable window, Gtk.Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, Gtk.CellRendererState flags)
            {
                if (!HasValue)
                {
                    return;
                }

                // calling base crashes on windows
                GtkCell.gtksharp_cellrenderer_invoke_render(Gtk.CellRendererProgress.GType.Val, Handle, window.Handle, widget.Handle, ref background_area, ref cell_area, ref expose_area, flags);
                //base.Render (window, widget, background_area, cell_area, expose_area, flags);
            }
Пример #3
0
            protected override void Render(Gdk.Drawable window, Gtk.Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, Gtk.CellRendererState flags)
            {
                if (float.IsNaN((float)Handler.GetValueInternal(Item, Handler.ColumnIndex, Row).Val))
                {
                    return;
                }

                if (Handler.FormattingEnabled)
                {
                    Handler.Format(new GtkGridCellFormatEventArgs <Renderer>(this, Handler.Column.Widget, Item, Row));
                }

                // calling base crashes on windows
                GtkCell.gtksharp_cellrenderer_invoke_render(Gtk.CellRendererProgress.GType.Val, Handle, window.Handle, widget.Handle, ref background_area, ref cell_area, ref expose_area, flags);
                //base.Render (window, widget, background_area, cell_area, expose_area, flags);
            }