@get


Description:

[ Version ( since = "3.0" ) ]
public void @get (StateFlags state, ...)

Retrieves several style property values from this for a given state.

See get_property for details.

For the property name / return value pairs, it works similarly as @get. Example:

GdkRGBA *background_color = NULL;
PangoFontDescription *font_desc = NULL;
gint border_radius = 0;

gtk_style_context_get (style_context,
gtk_style_context_get_state (style_context),
GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &background_color,
GTK_STYLE_PROPERTY_FONT, &font_desc,
GTK_STYLE_PROPERTY_BORDER_RADIUS, &border_radius,
NULL);

// Do something with the property values.

if (background_color != NULL)
gdk_rgba_free (background_color);
if (font_desc != NULL)
pango_font_description_free (font_desc);

Parameters:

this

a StyleContext

state

state to retrieve the property values for

...

property name / return value pairs, followed by null