Method

GtkSvgget_n_states

unstable since: 4.22

Declaration [src]

unsigned int
gtk_svg_get_n_states (
  GtkSvg* self
)

Description [src]

Gets the number of states defined in the SVG.

Note that there is always an empty state, which does not count towards this number. If this function returns the value N, the meaningful states of the SVG are 0, 1, …, N - 1 and GTK_SVG_STATE_EMPTY.

Available since: 4.22

Return value

Type: unsigned int

The number of states.