Package ch.bailu.gtk.gdk
Schnittstelle DragSurface.OnComputeSize
- Umschließende Klasse:
DragSurface
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
onComputeSize
(ch.bailu.gtk.gdk.DragSurfaceSize size) Emitted when the size for the surface needs to be computed, when it is
present.
-
Methodendetails
-
onComputeSize
void onComputeSize(@Nonnull ch.bailu.gtk.gdk.DragSurfaceSize size) Emitted when the size for the surface needs to be computed, when it is
present.
This signal will normally be emitted during the native surface layout
cycle when the surface size needs to be recomputed.
It is the responsibility of the drag surface user to handle this signal
and compute the desired size of the surface, storing the computed size
in the [struct@Gdk.DragSurfaceSize] object that is passed to the signal
handler, using [method@Gdk.DragSurfaceSize.set_size].
Failing to set a size so will result in an arbitrary size being used as
a result.- Parameter:
size
- the size of the drag surface
-