Package ch.bailu.gtk.gdk
Klasse PaintableInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gdk.PaintableInterface
- Alle implementierten Schnittstellen:
PointerInterface
The list of functions that can be implemented for the `GdkPaintable`
interface.
Note that apart from the [vfunc@Gdk.Paintable.snapshot] function,
no virtual function of this interface is mandatory to implement, though it
is a good idea to implement [vfunc@Gdk.Paintable.get_current_image]
for non-static paintables and [vfunc@Gdk.Paintable.get_flags] if the
image is not dynamic as the default implementation returns no flags and
that will make the implementation likely quite slow.
interface.
Note that apart from the [vfunc@Gdk.Paintable.snapshot] function,
no virtual function of this interface is mandatory to implement, though it
is a good idea to implement [vfunc@Gdk.Paintable.get_current_image]
for non-static paintables and [vfunc@Gdk.Paintable.get_flags] if the
image is not dynamic as the default implementation returns no flags and
that will make the implementation likely quite slow.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
static interface
static interface
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
Private field: direct-typestatic final String
return a `GdkPaintable` that does not change over
time.static final String
Get the flags for this instance.static final String
The preferred aspect ratio for this object
or 0 if none.static final String
The preferred height for this object to be
snapshot at or 0 if none.static final String
The preferred width for this object to be
snapshot at or 0 if none.static final String
Snapshot the paintable. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetCurrentImage
return a `GdkPaintable` that does not change over
time.ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetFlags
Get the flags for this instance.ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicAspectRatio
The preferred aspect ratio for this object
or 0 if none.ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicHeight
The preferred height for this object to be
snapshot at or 0 if none.ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicWidth
The preferred width for this object to be
snapshot at or 0 if none.ch.bailu.gtk.gdk.JnaPaintableInterface.OnSnapshot
Snapshot the paintable.static int
static TypeSystem.TypeSize
static TypeSystem.TypeSize
void
setFieldGetCurrentImage
(PaintableInterface.OnGetCurrentImage get_current_image) return a `GdkPaintable` that does not change over
time.void
setFieldGetFlags
(PaintableInterface.OnGetFlags get_flags) Get the flags for this instance.void
setFieldGetIntrinsicAspectRatio
(PaintableInterface.OnGetIntrinsicAspectRatio get_intrinsic_aspect_ratio) The preferred aspect ratio for this object
or 0 if none.void
setFieldGetIntrinsicHeight
(PaintableInterface.OnGetIntrinsicHeight get_intrinsic_height) The preferred height for this object to be
snapshot at or 0 if none.void
setFieldGetIntrinsicWidth
(PaintableInterface.OnGetIntrinsicWidth get_intrinsic_width) The preferred width for this object to be
snapshot at or 0 if none.void
Snapshot the paintable.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
-
G_IFACE
Private field: direct-type- Siehe auch:
-
SNAPSHOT
Snapshot the paintable. The given @width and @height are
guaranteed to be larger than 0.0. The resulting snapshot must modify
only the area in the rectangle from (0,0) to (width, height).
This is the only function that must be implemented for this interface.
SeePaintableInterface.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable, ch.bailu.gtk.gdk.Snapshot, double, double)
- Siehe auch:
-
GET_CURRENT_IMAGE
return a `GdkPaintable` that does not change over
time. This means the `GDK_PAINTABLE_STATIC_SIZE` and
`GDK_PAINTABLE_STATIC_CONTENTS` flag are set.
SeePaintableInterface.OnGetCurrentImage.onGetCurrentImage(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
- Siehe auch:
-
GET_FLAGS
Get the flags for this instance. See [flags@Gdk.PaintableFlags]
for details.
SeePaintableInterface.OnGetFlags.onGetFlags(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
- Siehe auch:
-
GET_INTRINSIC_WIDTH
The preferred width for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicWidth.onGetIntrinsicWidth(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
- Siehe auch:
-
GET_INTRINSIC_HEIGHT
The preferred height for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicHeight.onGetIntrinsicHeight(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
- Siehe auch:
-
GET_INTRINSIC_ASPECT_RATIO
The preferred aspect ratio for this object
or 0 if none. If both [vfunc@Gdk.Paintable.get_intrinsic_width]
and [vfunc@Gdk.Paintable.get_intrinsic_height] return non-zero
values, this function should return the aspect ratio computed from those.
SeePaintableInterface.OnGetIntrinsicAspectRatio.onGetIntrinsicAspectRatio(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
- Siehe auch:
-
-
Konstruktordetails
-
PaintableInterface
-
PaintableInterface
public PaintableInterface()
-
-
Methodendetails
-
getClassHandler
-
setFieldSnapshot
Snapshot the paintable. The given @width and @height are
guaranteed to be larger than 0.0. The resulting snapshot must modify
only the area in the rectangle from (0,0) to (width, height).
This is the only function that must be implemented for this interface.
SeePaintableInterface.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable, ch.bailu.gtk.gdk.Snapshot, double, double)
-
getFieldSnapshot
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnSnapshot getFieldSnapshot()Snapshot the paintable. The given @width and @height are
guaranteed to be larger than 0.0. The resulting snapshot must modify
only the area in the rectangle from (0,0) to (width, height).
This is the only function that must be implemented for this interface.
SeePaintableInterface.OnSnapshot.onSnapshot(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable, ch.bailu.gtk.gdk.Snapshot, double, double)
-
setFieldGetCurrentImage
return a `GdkPaintable` that does not change over
time. This means the `GDK_PAINTABLE_STATIC_SIZE` and
`GDK_PAINTABLE_STATIC_CONTENTS` flag are set.
SeePaintableInterface.OnGetCurrentImage.onGetCurrentImage(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getFieldGetCurrentImage
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetCurrentImage getFieldGetCurrentImage()return a `GdkPaintable` that does not change over
time. This means the `GDK_PAINTABLE_STATIC_SIZE` and
`GDK_PAINTABLE_STATIC_CONTENTS` flag are set.
SeePaintableInterface.OnGetCurrentImage.onGetCurrentImage(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
setFieldGetFlags
Get the flags for this instance. See [flags@Gdk.PaintableFlags]
for details.
SeePaintableInterface.OnGetFlags.onGetFlags(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getFieldGetFlags
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetFlags getFieldGetFlags()Get the flags for this instance. See [flags@Gdk.PaintableFlags]
for details.
SeePaintableInterface.OnGetFlags.onGetFlags(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
setFieldGetIntrinsicWidth
The preferred width for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicWidth.onGetIntrinsicWidth(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getFieldGetIntrinsicWidth
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicWidth getFieldGetIntrinsicWidth()The preferred width for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicWidth.onGetIntrinsicWidth(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
setFieldGetIntrinsicHeight
public void setFieldGetIntrinsicHeight(PaintableInterface.OnGetIntrinsicHeight get_intrinsic_height) The preferred height for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicHeight.onGetIntrinsicHeight(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getFieldGetIntrinsicHeight
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicHeight getFieldGetIntrinsicHeight()The preferred height for this object to be
snapshot at or 0 if none. This is purely a hint. The object must still
be able to render at any size.
SeePaintableInterface.OnGetIntrinsicHeight.onGetIntrinsicHeight(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
setFieldGetIntrinsicAspectRatio
public void setFieldGetIntrinsicAspectRatio(PaintableInterface.OnGetIntrinsicAspectRatio get_intrinsic_aspect_ratio) The preferred aspect ratio for this object
or 0 if none. If both [vfunc@Gdk.Paintable.get_intrinsic_width]
and [vfunc@Gdk.Paintable.get_intrinsic_height] return non-zero
values, this function should return the aspect ratio computed from those.
SeePaintableInterface.OnGetIntrinsicAspectRatio.onGetIntrinsicAspectRatio(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getFieldGetIntrinsicAspectRatio
public ch.bailu.gtk.gdk.JnaPaintableInterface.OnGetIntrinsicAspectRatio getFieldGetIntrinsicAspectRatio()The preferred aspect ratio for this object
or 0 if none. If both [vfunc@Gdk.Paintable.get_intrinsic_width]
and [vfunc@Gdk.Paintable.get_intrinsic_height] return non-zero
values, this function should return the aspect ratio computed from those.
SeePaintableInterface.OnGetIntrinsicAspectRatio.onGetIntrinsicAspectRatio(ch.bailu.gtk.lib.handler.CallbackHandler, ch.bailu.gtk.gdk.Paintable)
-
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-