Index

Package: Css_Section

Description

package Gtk.Css_Section is
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.

Packages

Gtk_Css_Section_Type_Properties (new Glib.Generic_Properties.Generic_Internal_Discrete_Property)

package Gtk_Css_Section_Type_Properties is
      new Generic_Internal_Discrete_Property (Gtk_Css_Section_Type);

Classes

Gtk_Css_Section

type Gtk_Css_Section is new Glib.C_Boxed with null record;

Ancestors:

Primitive operations:

From_Object_Free
Get_End_Line
Get_End_Position
Get_Section_Type
Get_Start_Line
Get_Start_Position

Types

Gtk_Css_Section_Type

type Gtk_Css_Section_Type is (
      Css_Section_Document,
      Css_Section_Import,
      Css_Section_Color_Definition,
      Css_Section_Binding_Set,
      Css_Section_Ruleset,
      Css_Section_Selector,
      Css_Section_Declaration,
      Css_Section_Value,
      Css_Section_Keyframes);

Property_Gtk_Css_Section_Type

type Property_Gtk_Css_Section_Type is new Gtk_Css_Section_Type_Properties.Property;

Constants & Global variables

Null_Gtk_Css_Section (Gtk_Css_Section)

Null_Gtk_Css_Section : constant Gtk_Css_Section;

Subprograms & Entries

From_Object

function From_Object 
(Object: System.Address) return Gtk_Css_Section;

From_Object_Free

function From_Object_Free 
(B: access Gtk_Css_Section'Class) return Gtk_Css_Section;

Get_Type

function Get_Type return Glib.GType;

Get_End_Line

function Get_End_Line 
(Self: Gtk_Css_Section) return Guint;
Returns 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 function if Section is not yet parsed completely. This will for example happen in the GtkCssProvider::parsing-error signal. The end position and line may be identical to the start position and line for sections which failed to parse anything successfully. Since: gtk+ 3.2

Get_End_Position

function Get_End_Position 
(Self: Gtk_Css_Section) return Guint;
Returns the offset in bytes from the start of the current line returned via Gtk.Css_Section.Get_End_Line. This value may change in future invocations of this function if Section is not yet parsed completely. This will for example happen in the GtkCssProvider::parsing-error signal. The end position and line may be identical to the start position and line for sections which failed to parse anything successfully. Since: gtk+ 3.2

Get_Parent

function Get_Parent 
(Self: Gtk_Css_Section) return Gtk_Css_Section;
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 gtk_css_provider_load_from_file or a section of type GTK_CSS_SECTION_IMPORT if it was loaded with an import rule from a different file. Since: gtk+ 3.2

Get_Section_Type

function Get_Section_Type 
(Self: Gtk_Css_Section) return Gtk_Css_Section_Type;
Gets the type of information that Section describes. Since: gtk+ 3.2

Get_Start_Line

function Get_Start_Line 
(Self: Gtk_Css_Section) return Guint;
Returns 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. Since: gtk+ 3.2

Get_Start_Position

function Get_Start_Position 
(Self: Gtk_Css_Section) return Guint;
Returns the offset in bytes from the start of the current line returned via Gtk.Css_Section.Get_Start_Line. Since: gtk+ 3.2

Ref

function Ref 
(Self: Gtk_Css_Section) return Gtk_Css_Section;
Increments the reference count on Section. Since: gtk+ 3.2

Unref

procedure Unref 
(Self: Gtk_Css_Section);
Decrements the reference count on Section, freeing the structure if the reference count reaches 0. Since: gtk+ 3.2