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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
CssSection self() nothrowReturns `this`, for use in `with` statements.
uint getEndLine() nothrowReturns the line in the CSS document where this section end. The line number is 0-indexed, so the first line of the document will return 0. This value may change in future invocations of this funct...
uint getEndPosition() nothrowReturns the offset in bytes from the start of the current line returned via [gtk.css_section.CssSection.getEndLine]. This value may change in future invocations of this function if section is not y...
gio.file.File getFile() nothrowGets the file that section was parsed from. If no such file exists, for example because the CSS was loaded via @[gtk.css_provider.CssProvider.loadFromData], then null is returned. Returns: the #GFi...
gtk.css_section.CssSection getParent() nothrowGets the parent section for the given section. The parent section is the section that contains this section. A special case are sections of type #GTK_CSS_SECTION_DOCUMENT. Their parent will either ...
gtk.types.CssSectionType getSectionType() nothrowGets the type of information that section describes. Returns: the type of section
uint getStartLine() nothrowReturns the line in the CSS document where this section starts. The line number is 0-indexed, so the first line of the document will return 0. Returns: the line number
uint getStartPosition() nothrowReturns the offset in bytes from the start of the current line returned via [gtk.css_section.CssSection.getStartLine]. Returns: the offset in bytes from the start of the line.
Constructors
this(void * ptr, Flag!"Take" take)