Package ch.bailu.gtk.pango
Class AttrShape
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.pango.AttrShape
- All Implemented Interfaces:
PointerInterface
The `PangoAttrShape` structure is used to represent attributes which
impose shape restrictions.
impose shape restrictions.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the common portion of the attribute
Private field: direct-type -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
Create a new shape attribute.static ClassHandler
static Attribute
newWithData
(Rectangle ink_rect, Rectangle logical_rect, Pointer data, AttrShape.OnAttrDataCopyFunc copy_func, AttrShape.OnDestroyNotify destroy_func) Creates a new shape attribute.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
ATTR
the common portion of the attribute
Private field: direct-type- See Also:
-
-
Constructor Details
-
AttrShape
-
-
Method Details
-
getClassHandler
-
_new
Create a new shape attribute.
A shape is used to impose a particular ink and logical
rectangle on the result of shaping a particular glyph.
This might be used, for instance, for embedding a picture
or a widget inside a `PangoLayout`.- Parameters:
ink_rect
- ink rectangle to assign to each characterlogical_rect
- logical rectangle to assign to each character- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-
newWithData
public static Attribute newWithData(@Nonnull Rectangle ink_rect, @Nonnull Rectangle logical_rect, @Nullable Pointer data, AttrShape.OnAttrDataCopyFunc copy_func, AttrShape.OnDestroyNotify destroy_func) Creates a new shape attribute.
Like [func@Pango.AttrShape.new], but a user data pointer
is also provided; this pointer can be accessed when later
rendering the glyph.- Parameters:
ink_rect
- ink rectangle to assign to each characterlogical_rect
- logical rectangle to assign to each characterdata
- user data pointercopy_func
- function to copy @data when the attribute is copied. If %NULL, @data is simply copied as a pointerdestroy_func
- function to free @data when the attribute is freed- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-