gtk.css_section
Module for [CssSection] class
class CssSection
Types 1
classCssSection : gobject.boxed.Boxed
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
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 sectiongio.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 sectionvoid 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(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.