Package org.gnome.gsk
Class InsetShadowNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.InsetShadowNode
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gnome.gsk.RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionInsetShadowNode(MemorySegment address) Create a InsetShadowNode proxy instance for the provided memory address.InsetShadowNode(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius) Creates aGskRenderNodethat will render an inset shadow into the box given byoutline. -
Method Summary
Modifier and TypeMethodDescriptionprotected InsetShadowNodeasParent()Returns this instance as if it were its parent type.floatRetrieves the blur radius to apply to the shadow.getColor()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.Retrieves the outline rectangle of the inset shadow.floatRetrieves how much the shadow spreads inwards.static @Nullable TypegetType()Get the GType of the InsetShadowNode classMethods inherited from class org.gnome.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, getOpaqueRect, ref, serialize, unref, writeToFileMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getMemoryLayout, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
InsetShadowNode
Create a InsetShadowNode proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
InsetShadowNode
public InsetShadowNode(RoundedRect outline, RGBA color, float dx, float dy, float spread, float blurRadius) Creates aGskRenderNodethat will render an inset shadow into the box given byoutline.- 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 insideblurRadius- how much blur to apply to the shadow
-
-
Method Details
-
getType
Get the GType of the InsetShadowNode class- Returns:
- the GType
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParentin classRenderNode
-
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.The value returned by this function will not be correct if the render node was created for a non-sRGB color.
- 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
-