Package jni
Class JniGuiContainer
- java.lang.Object
-
- jni.JniGuiContainer
-
public class JniGuiContainer extends Object
- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description JniGuiContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildrenPosition(long pointerAddress, int left, int top)
Translate this container children.long
constructor(long material, String name, float width, float height)
Build the object in native code.long
constructorParent(long material, String name, float width, float height, long parentAddress)
Build the object in native code.String
getElement(long pointer, float posX, float posY)
Retrieve an element from a position in native code.void
hide(long pointer)
Hide the container system in native code.void
setMaterial(long address, long material)
Set a background material to the container in native code.void
setPosition(long pointer, float posX, float posY)
Set the container position in native code.void
setSize(long pointer, float width, float height)
Set the container size in native code.void
setZ(long pointer, short depth)
Set the container depth position in native code.void
show(long pointer)
Show the container in native code.void
zoom(long pointer, float factor)
Zoom the container in native code.
-
-
-
Method Detail
-
constructor
public long constructor(long material, String name, float width, float height)
Build the object in native code.- Parameters:
material
- Material to use as background.name
- Container name, must be unique.width
- Container width value.height
- Container height value.- Returns:
- The native address of the newly built object.
-
constructorParent
public long constructorParent(long material, String name, float width, float height, long parentAddress)
Build the object in native code.- Parameters:
material
- Name of the material to use as background.name
- Container name, must be unique.width
- Container width value.height
- Container height value.parentAddress
- Parent GUI container pointer.- Returns:
- The native address of the newly built object.
-
setSize
public void setSize(long pointer, float width, float height)
Set the container size in native code.- Parameters:
pointer
- Address to the native object.width
- New container width.height
- New container height.
-
zoom
public void zoom(long pointer, float factor)
Zoom the container in native code.- Parameters:
pointer
- Address to the native object.factor
- Zoom factor.
-
getElement
public String getElement(long pointer, float posX, float posY)
Retrieve an element from a position in native code.- Parameters:
pointer
- Address to the native object.posX
- Position to check X value.posY
- Position to check Y value.- Returns:
- The name of the found element.
-
show
public void show(long pointer)
Show the container in native code.- Parameters:
pointer
- Address to the native object.
-
hide
public void hide(long pointer)
Hide the container system in native code.- Parameters:
pointer
- Address to the native object.
-
setPosition
public void setPosition(long pointer, float posX, float posY)
Set the container position in native code.- Parameters:
pointer
- Address to the native object.posX
- container X position.posY
- container Y position.
-
setZ
public void setZ(long pointer, short depth)
Set the container depth position in native code.- Parameters:
pointer
- Address to the native object.depth
- Depth value(Must be under 650).
-
setMaterial
public void setMaterial(long address, long material)
Set a background material to the container in native code.- Parameters:
address
- Address to the native object.material
- Material.
-
addChildrenPosition
public void addChildrenPosition(long pointerAddress, int left, int top)
Translate this container children.- Parameters:
pointerAddress
- Address to the native object.left
- Horizontal translation, in pixels.top
- Vertical translation, in pixels.
-
-