Ejemplo n.º 1
0
        // Functions provided for backwards-compatibility with shared gtk2 code.
        public static Gdk.Color GetForegroundColour(this Widget widget, StateType state)
        {
#if NETFRAMEWORK
            return(widget.Style.Foreground(state));
#else
            return(widget.StyleContext.GetColor(state).ToGdkColor());
#endif
        }
Ejemplo n.º 2
0
        // Functions provided for backwards-compatibility with shared gtk2 code.
//#if NETCOREAPP
//        [Obsolete("Use gtk_render_background() instead")]
//#endif
        public static Gdk.Color GetBackgroundColour(this Widget widget, StateType state)
        {
#if NETFRAMEWORK
            return(widget.Style.Background(state));
#else
#pragma warning disable 0612 // fixme
            return(widget.StyleContext.GetBackgroundColor(state).ToGdkColor());

#pragma warning restore 0612
#endif
        }
Ejemplo n.º 3
0
 public static void SetBackgroundColor(this Gtk.Widget widget, Gtk.StateFlags state, Xwt.Drawing.Color color)
 {
     widget.OverrideBackgroundColor(state, color.ToGtkRgbaValue());
 }
Ejemplo n.º 4
0
 public static Xwt.Drawing.Color GetBackgroundColor(this Gtk.Widget widget, Gtk.StateFlags state)
 {
     return(widget.StyleContext.GetBackgroundColor(state).ToXwtValue());
 }
Ejemplo n.º 5
0
 public virtual void Render(CellContext context, Gtk.StateFlags state, double cellWidth, double cellHeight)
 {
 }