add_region


Description:

[ Version ( deprecated = true , deprecated_since = "3.14" , since = "3.0" ) ]
public void add_region (string region_name, RegionFlags flags)

Warning: add_region is deprecated since 3.14.

Adds a region to this, so posterior calls to @get or any of the gtk_render_*() functions will make use of this new region for styling.

In the CSS file format, a TreeView defining a “row” region, would be matched by:

 <!-- language="CSS" -->
treeview row { ... }

Pseudo-classes are used for matching flags, so the two following rules:

 <!-- language="CSS" -->
treeview row:nth-child(even) { ... }
treeview row:nth-child(odd) { ... }

would apply to even and odd rows, respectively.

Region names must only contain lowercase letters and “-”, starting always with a lowercase letter.

Parameters:

this

a StyleContext

region_name

region name to use in styling

flags

flags that apply to the region