Package ch.bailu.gtk.pango
Klasse Attribute
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.pango.Attribute
- Alle implementierten Schnittstellen:
PointerInterface
The `PangoAttribute` structure represents the common portions of all
attributes.
Particular types of attributes include this structure as their initial
portion. The common portion of the attribute holds the range to which
the value in the type-specific part of the attribute applies and should
be initialized using [method@Pango.Attribute.init]. By default, an attribute
will have an all-inclusive range of [0,%G_MAXUINT].
attributes.
Particular types of attributes include this structure as their initial
portion. The common portion of the attribute holds the range to which
the value in the type-specific part of the attribute applies and should
be initialized using [method@Pango.Attribute.init]. By default, an attribute
will have an all-inclusive range of [0,%G_MAXUINT].
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungasColor()
Returns the attribute cast to `PangoAttrColor`.asFloat()
Returns the attribute cast to `PangoAttrFloat`.Returns the attribute cast to `PangoAttrFontDesc`.Returns the attribute cast to `PangoAttrFontFeatures`.asInt()
Returns the attribute cast to `PangoAttrInt`.Returns the attribute cast to `PangoAttrLanguage`.asShape()
Returns the attribute cast to `PangoAttrShape`.asSize()
Returns the attribute cast to `PangoAttrSize`.asString()
Returns the attribute cast to `PangoAttrString`.copy()
Make a copy of an attribute.void
destroy()
Destroy a `PangoAttribute` and free all associated memory.boolean
Compare two attributes for equality.static ClassHandler
int
end index of the range (in bytes).the class structure holding information about the type of the attributeint
the start index of the range (in bytes).static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
Initializes @attr's klass to @klass, it's start_index to
%PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING and end_index to
%PANGO_ATTR_INDEX_TO_TEXT_END such that the attribute applies
to the entire text by default.void
setFieldEndIndex
(int end_index) end index of the range (in bytes).void
setFieldKlass
(AttrClass klass) the class structure holding information about the type of the attributevoid
setFieldStartIndex
(int start_index) the start index of the range (in bytes).Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
KLASS
the class structure holding information about the type of the attribute- Siehe auch:
-
START_INDEX
the start index of the range (in bytes).- Siehe auch:
-
END_INDEX
end index of the range (in bytes). The character at this index
is not included in the range.- Siehe auch:
-
-
Konstruktordetails
-
Attribute
-
Attribute
public Attribute()
-
-
Methodendetails
-
getClassHandler
-
setFieldKlass
the class structure holding information about the type of the attribute -
getFieldKlass
the class structure holding information about the type of the attribute -
setFieldStartIndex
public void setFieldStartIndex(int start_index) the start index of the range (in bytes). -
getFieldStartIndex
public int getFieldStartIndex()the start index of the range (in bytes). -
setFieldEndIndex
public void setFieldEndIndex(int end_index) end index of the range (in bytes). The character at this index
is not included in the range. -
getFieldEndIndex
public int getFieldEndIndex()end index of the range (in bytes). The character at this index
is not included in the range. -
asColor
Returns the attribute cast to `PangoAttrColor`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrColor`, or %NULL if it's not a color attribute
-
asFloat
Returns the attribute cast to `PangoAttrFloat`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrFloat`, or %NULL if it's not a floating point attribute
-
asFontDesc
Returns the attribute cast to `PangoAttrFontDesc`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrFontDesc`, or %NULL if it's not a font description attribute
-
asFontFeatures
Returns the attribute cast to `PangoAttrFontFeatures`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrFontFeatures`, or %NULL if it's not a font features attribute
-
asInt
Returns the attribute cast to `PangoAttrInt`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrInt`, or %NULL if it's not an integer attribute
-
asLanguage
Returns the attribute cast to `PangoAttrLanguage`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrLanguage`, or %NULL if it's not a language attribute
-
asShape
Returns the attribute cast to `PangoAttrShape`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrShape`, or %NULL if it's not a shape attribute
-
asSize
Returns the attribute cast to `PangoAttrSize`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrSize`, or NULL if it's not a size attribute
-
asString
Returns the attribute cast to `PangoAttrString`.
This is mainly useful for language bindings.- Gibt zurück:
- The attribute as `PangoAttrString`, or %NULL if it's not a string attribute
-
copy
Make a copy of an attribute.- Gibt zurück:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy].
-
destroy
public void destroy()Destroy a `PangoAttribute` and free all associated memory. -
equal
Compare two attributes for equality.
This compares only the actual value of the two
attributes and not the ranges that the attributes
apply to.- Parameter:
attr2
- another `PangoAttribute`- Gibt zurück:
- %TRUE if the two attributes have the same value
-
init
Initializes @attr's klass to @klass, it's start_index to
%PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING and end_index to
%PANGO_ATTR_INDEX_TO_TEXT_END such that the attribute applies
to the entire text by default.- Parameter:
klass
- a `PangoAttrClass`
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-