Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gtkWidgetModifyBase

gtkWidgetModifyBase


Description

Sets the base color for a widget in a particular state. All other style values are left untouched. The base color is the background color used along with the text color (see gtkWidgetModifyText) for widgets such as GtkEntry and GtkTextView. See also gtkWidgetModifyStyle.

Usage

gtkWidgetModifyBase(object, state, color = NULL)

Arguments

object

a GtkWidget

state

the state for which to set the base color

color

the color to assign (does not need to be allocated), or NULL to undo the effect of previous calls to of gtkWidgetModifyBase. [ allow-none ]

Details

Note that "no window" widgets (which have the GTK_NO_WINDOW flag set) draw on their parent container's window and thus may not draw any background themselves. This is the case for e.g. GtkLabel. To modify the background of such widgets, you have to set the base color on their parent; if you want to set the background of a rectangular area around a label, try placing the label in a GtkEventBox widget and setting the base color on that.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.