Package jni

Class JniGuiIcon


  • public class JniGuiIcon
    extends Object
    Author:
    Grégory Van den Borre
    • Constructor Summary

      Constructors 
      Constructor Description
      JniGuiIcon()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long constructor​(long container, String name, long material, float width, float height, float left, float top)
      Build the object in native code.
      void delete​(long pointerAddress)
      Delete the object in native code.
      String getParentName​(long pointerAddress)
      Retrieve the parent container name from native code.
      int getZ​(long pointerAddress)
      Retrieve the Z value from native code.
      void hide​(long pointerAddress)
      Set the object hidden native code.
      void setPosition​(long pointerAddress, float left, float top)
      Set the position in native code.
      void setSize​(long pointerAddress, float width, float height)
      Update the size in native code.
      void setTexture​(long pointerAddress, long material)
      Update the material in native code.
      void show​(long pointerAddress)
      Set the object visible native code.
    • Constructor Detail

      • JniGuiIcon

        public JniGuiIcon()
    • Method Detail

      • hide

        public void hide​(long pointerAddress)
        Set the object hidden native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
      • show

        public void show​(long pointerAddress)
        Set the object visible native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
      • setSize

        public void setSize​(long pointerAddress,
                            float width,
                            float height)
        Update the size in native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
        width - New object width.
        height - New object height.
      • setTexture

        public void setTexture​(long pointerAddress,
                               long material)
        Update the material in native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
        material - Material to set.
      • delete

        public void delete​(long pointerAddress)
        Delete the object in native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
      • setPosition

        public void setPosition​(long pointerAddress,
                                float left,
                                float top)
        Set the position in native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
        left - X position.
        top - Y position.
      • constructor

        public long constructor​(long container,
                                String name,
                                long material,
                                float width,
                                float height,
                                float left,
                                float top)
        Build the object in native code.
        Parameters:
        container - Container holding the icon.
        name - Name of the icon, must be unique.
        material - Material to assign to the icon.
        width - Width of the icon, in pixels.
        height - Height of the icon, in pixels
        left - Icon left position from its parent left border.
        top - Icon top position from its parent top border.
        Returns:
        A pointer to the newly built object.
      • getZ

        public int getZ​(long pointerAddress)
        Retrieve the Z value from native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
        Returns:
        The object Z value.
      • getParentName

        public String getParentName​(long pointerAddress)
        Retrieve the parent container name from native code.
        Parameters:
        pointerAddress - Address to the native yz::GuiIcon*.
        Returns:
        The name of the parent container.