Class InsetShadowNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.InsetShadowNode
- All Implemented Interfaces:
Proxy
A render node for an inset shadow.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionInsetShadowNode(MemorySegment address) Create a InsetShadowNode 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()Return 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.static MemoryLayoutThe memory layout of the native struct.Retrieves the outline rectangle of the inset shadow.floatRetrieves how much the shadow spreads inwards.static @Nullable TypegetType()Get the GType of the InsetShadowNode class.Methods inherited from class RenderNode
deserialize, draw, getBounds, getChildren, getNodeType, getOpaqueRect, ref, serialize, unref, writeToFileMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
InsetShadowNode
Create a InsetShadowNode 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
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classRenderNode- Returns:
- the instance as if it were its parent type
-
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
-