CssSection

Defines a part of a CSS document.

Because sections are nested into one another, you can use gtk_css_section_get_parent() to get the containing region.

Constructors

this
this(GtkCssSection* gtkCssSection, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(FileIF file, GtkCssLocation* start, GtkCssLocation* end)

Creates a new GtkCssSection referring to the section in the given file from the start location to the end location.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

getCssSectionStruct
GtkCssSection* getCssSectionStruct(bool transferOwnership)

Get the main Gtk struct

getEndLocation
GtkCssLocation* getEndLocation()

Returns the location in the CSS document where this section ends.

getFile
FileIF getFile()

Gets the file that @section was parsed from.

getParent
CssSection getParent()

Gets the parent section for the given section.

getStartLocation
GtkCssLocation* getStartLocation()

Returns the location in the CSS document where this section starts.

getStruct
void* getStruct()

the main Gtk struct as a void*

print
void print(StringG string_)

Prints the section into string in a human-readable form.

ref_
CssSection ref_()

Increments the reference count on section.

toString
string toString()

Prints the section into a human-readable text form using [method@Gtk.CssSection.print].

unref
void unref()

Decrements the reference count on section, freeing the structure if the reference count reaches 0.

Static functions

getType
GType getType()

Variables

gtkCssSection
GtkCssSection* gtkCssSection;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta