Gjsify LogoGjsify Logo

Defines a part of a CSS document.

Because sections are nested into one another, you can use [methodCssSection.get_parent] to get the containing region.

record

Hierarchy

  • CssSection

Index

Constructors

Properties

name: string

Methods

  • Gets the file that section was parsed from.

    If no such file exists, for example because the CSS was loaded via [methodGtk.CssProvider.load_from_data], then NULL is returned.

    Returns Gio.File

  • Gets 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 be NULL if they are the original CSS document that was loaded by [methodGtk.CssProvider.load_from_file] or a section of type GTK_CSS_SECTION_IMPORT if it was loaded with an import rule from a different file.

    Returns Gtk.CssSection

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

    This is a form like gtk.css:32:1-23 to denote line 32, characters 1 to 23 in the file gtk.css.

    Parameters

    Returns void

  • toString(): string
  • Prints the section into a human-readable text form using [methodGtk.CssSection.print].

    Returns string

  • unref(): void
  • Decrements the reference count on section, freeing the structure if the reference count reaches 0.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method