Method

GtkStyleContexthas_region

deprecated: 3.14 since: 3.0

Declaration [src]

gboolean
gtk_style_context_has_region (
  GtkStyleContext* context,
  const gchar* region_name,
  GtkRegionFlags* flags_return
)

Description [src]

Returns TRUE if context has the region defined. If flags_return is not NULL, it is set to the flags affecting the region.

Available since: 3.0

Deprecated since: 3.14

Please do not use it in newly written code.

Parameters

region_name

Type: const gchar*

A region name.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
flags_return

Type: GtkRegionFlags

Return location for region flags.

The argument will be set by the function.
The argument can be NULL.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE if region is defined.