Class OpacityNode
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gsk.RenderNode
org.gnome.gsk.OpacityNode
- All Implemented Interfaces:
Proxy
A render node controlling the opacity of its single child node.
-
Nested Class Summary
Nested classes/interfaces inherited from class RenderNode
RenderNode.RenderNode$Impl -
Constructor Summary
ConstructorsConstructorDescriptionOpacityNode(MemorySegment address) Create a OpacityNode instance for the provided memory address.OpacityNode(RenderNode child, float opacity) Creates aGskRenderNodethat will drawn thechildwith reducedopacity. -
Method Summary
Modifier and TypeMethodDescriptionprotected OpacityNodeasParent()Return this instance as if it were its parent type.getChild()Gets the child node that is getting opacityed by the givennode.static MemoryLayoutThe memory layout of the native struct.floatGets the transparency factor for an opacity node.static @Nullable TypegetType()Get the GType of the OpacityNode 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
-
OpacityNode
Create a OpacityNode instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
OpacityNode
Creates aGskRenderNodethat will drawn thechildwith reducedopacity.- Parameters:
child- The node to drawopacity- The opacity to apply
-
-
Method Details
-
getType
-
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
-
getChild
Gets the child node that is getting opacityed by the givennode.- Returns:
- The child that is getting opacityed
-
getOpacity
public float getOpacity()Gets the transparency factor for an opacity node.- Returns:
- the opacity factor
-