gtk.css_section

Module for [CssSection] class

Types 1

Defines a part of a CSS document.

Because sections are nested into one another, you can use [gtk.css_section.CssSection.getParent] to get the containing region.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
CssSection self()Returns `this`, for use in `with` statements.
gtk.types.CssLocation getEndLocation()Returns the location in the CSS document where this section ends. Returns: The end location of this section
gio.file.File getFile()Gets the file that section was parsed from.
gtk.css_section.CssSection getParent()Gets the parent section for the given `section`.
gtk.types.CssLocation getStartLocation()Returns the location in the CSS document where this section starts. Returns: The start location of this section
void print(glib.string_.String string_)Prints the `section` into `string` in a human-readable form.
string toString_()Prints the section into a human-readable text form using [gtk.css_section.CssSection.print]. Returns: A new string.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.file.File file, gtk.types.CssLocation start, gtk.types.CssLocation end)Creates a new [gtk.css_section.CssSection] referring to the section in the given `file` from the `start` location to the `end` location.