Package ch.bailu.gtk.gsk
Class InsetShadowNode
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gsk.RenderNode
ch.bailu.gtk.gsk.InsetShadowNode
- All Implemented Interfaces:
PointerInterface
A render node for an inset shadow.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gsk.RenderNode
RenderNode.OnParseErrorFunc -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionInsetShadowNode(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blur_radius) Creates a `GskRenderNode` that will render an inset shadow
into the box given by @outline.InsetShadowNode(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionfloatRetrieves the blur radius to apply to the shadow.static ClassHandlergetColor()Retrieves the color of the inset shadow.floatgetDx()Retrieves the horizontal offset of the inset shadow.floatgetDy()Retrieves the vertical offset of the inset shadow.static intRetrieves the outline rectangle of the inset shadow.static longstatic TypeSystem.TypeSizefloatRetrieves how much the shadow spreads inwards.static longstatic TypeSystem.TypeSizeMethods inherited from class ch.bailu.gtk.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, ref, serialize, unref, writeToFile, writeToFileMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
InsetShadowNode
-
InsetShadowNode
public InsetShadowNode(@Nonnull RoundedRect outline, @Nonnull RGBA color, float dx, float dy, float spread, float blur_radius) Creates a `GskRenderNode` that will render an inset shadow
into the box given by @outline.- Parameters:
outline- outline of the region containing the shadowcolor- color of the shadowdx- horizontal offset of shadowdy- vertical offset of shadowspread- how far the shadow spreads towards the insideblur_radius- how much blur to apply to the shadow
-
-
Method Details
-
getClassHandler
-
getBlurRadius
public float getBlurRadius()Retrieves the blur radius to apply to the shadow.- Returns:
- the blur radius, in pixels
-
getColor
Retrieves the color of the inset shadow.- Returns:
- the color of the shadow
-
getDx
public float getDx()Retrieves the horizontal offset of the inset shadow.- Returns:
- an offset, in pixels
-
getDy
public float getDy()Retrieves the vertical offset of the inset shadow.- Returns:
- an offset, in pixels
-
getOutline
Retrieves the outline rectangle of the inset shadow.- Returns:
- a rounded rectangle
-
getSpread
public float getSpread()Retrieves how much the shadow spreads inwards.- Returns:
- the size of the shadow, in pixels
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-