Package ch.bailu.gtk.gtk
Klasse CssSection
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gtk.CssSection
- Alle implementierten Schnittstellen:
PointerInterface
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.
Because sections are nested into one another, you can use
[method@CssSection.get_parent] to get the containing region.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCssSection(File file, CssLocation start, CssLocation end) Creates a new `GtkCssSection` referring to the section
in the given `file` from the `start` location to the
`end` location.CssSection(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetBytes()Gets the bytes that @section was parsed from.static ClassHandlerReturns the location in the CSS document where this section ends.getFile()Gets the file that @section was parsed from.static intGets the parent section for the given `section`.static longstatic TypeSystem.TypeSizeReturns the location in the CSS document where this section starts.static longstatic TypeSystem.TypeSizestatic CssSectionnewWithBytesCssSection(File file, Bytes bytes, CssLocation start, CssLocation end) Creates a new `GtkCssSection` referring to the section
in the given `file` or the given `bytes` from the `start` location to the
`end` location.voidPrints the `section` into `string` in a human-readable form.ref()Increments the reference count on `section`.toStr()Prints the section into a human-readable text form using
[method@Gtk.CssSection.print].voidunref()Decrements the reference count on `section`, freeing the
structure if the reference count reaches 0.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksVon Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullVon Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
CssSection
-
CssSection
Creates a new `GtkCssSection` referring to the section
in the given `file` from the `start` location to the
`end` location.- Parameter:
file- The file this section refers tostart- The start locationend- The end location
-
-
Methodendetails
-
getClassHandler
-
newWithBytesCssSection
public static CssSection newWithBytesCssSection(@Nullable File file, @Nullable Bytes bytes, @Nonnull CssLocation start, @Nonnull CssLocation end) Creates a new `GtkCssSection` referring to the section
in the given `file` or the given `bytes` from the `start` location to the
`end` location.- Parameter:
file- The file this section refers tobytes- The bytes this sections refers tostart- The start locationend- The end location- Gibt zurück:
- a new `GtkCssSection`
-
getBytes
Gets the bytes that @section was parsed from.- Gibt zurück:
- the `GBytes` from which the `section` was parsed
-
getEndLocation
Returns the location in the CSS document where this section ends.- Gibt zurück:
- The end location of this section
-
getFile
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.- Gibt zurück:
- the `GFile` from which the `section` was parsed
-
getParent
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.- Gibt zurück:
- the parent section
-
getStartLocation
Returns the location in the CSS document where this section starts.- Gibt zurück:
- The start location of this section
-
print
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`.- Parameter:
string- a `GString` to print to
-
ref
Increments the reference count on `section`.- Gibt zurück:
- the CSS section itself.
-
toStr
Prints the section into a human-readable text form using
[method@Gtk.CssSection.print].- Gibt zurück:
- A new string.
-
unref
public void unref()Decrements the reference count on `section`, freeing the
structure if the reference count reaches 0. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-