Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GtkCssSection

[14:7] extends: object

Defines a part of a CSS document. Because sections are nested into one another, you can use [method@CssSection.get_parent] to get the containing region.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GtkCssSection (file = null, start = null, end = null, end = null)

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

    • @p file is The file this section refers to.
    • @p start is The start location.
    • @p end is The end location.
    • @p end is The end location.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • get_bytes ()

    Gets the bytes that @section was parsed from.

    • @r the GBytes from which the section was parsed.
  • get_end_location ()

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

    • @r The end location of this section.
  • get_file ()

    Gets the file that @section was parsed from. If no such file exists, for example because the CSS was loaded via [method@Gtk.CssProvider.load_from_data], then NULL is returned.

    • @r the GFile from which the section was parsed.
  • get_parent ()

    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 [method@Gtk.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.

    • @r the parent section.
  • get_start_location ()

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

    • @r The start location of this section.
  • print (object arg1String)

    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.

    • @p string is a GString to print to.
    • @r None.
  • ref ()

    Increments the reference count on section.

    • @r the CSS section itself..
  • to_string ()

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

    • @r A new string..
  • unref ()

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

    • @r None.