Function

Gtkpaint_expander

Declaration [src]

void
gtk_paint_expander (
  GtkStyle* style,
  cairo_t* cr,
  GtkStateType state_type,
  GtkWidget* widget,
  const gchar* detail,
  gint x,
  gint y,
  GtkExpanderStyle expander_style
)

Description [src]

Draws an expander as used in GtkTreeView. x and y specify the center the expander. The size of the expander is determined by the “expander-size” style property of widget. (If widget is not specified or doesn’t have an “expander-size” property, an unspecified default size will be used, since the caller doesn’t have sufficient information to position the expander, this is likely not useful.) The expander is expander_size pixels tall in the collapsed position and expander_size pixels wide in the expanded position.

Deprecated since:3.0

Use gtk_render_expander() instead.

Parameters

style GtkStyle
 

A GtkStyle.

 The data is owned by the caller of the function.
cr cairo_t
 

A #cairo_t.

 The data is owned by the caller of the function.
state_type GtkStateType
 

A state.

widget GtkWidget
 

The widget.

 The argument can be NULL.
 The data is owned by the caller of the function.
detail const gchar*
 

A style detail.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
x gint
 

The x position to draw the expander at.

y gint
 

The y position to draw the expander at.

expander_style GtkExpanderStyle
 

The style to draw the expander in; determines whether the expander is collapsed, expanded, or in an intermediate state.