Interface IDialogImage


  • public interface IDialogImage
    • Method Detail

      • getId

        int getId()
        Returns:
        The unique ID of this dialog image
      • setTexture

        void setTexture​(String texture)
        Sets the texture resource location for this image.
        Parameters:
        texture - The resource location string
      • getTexture

        String getTexture()
        Returns:
        The texture resource location for this image
      • setPosition

        void setPosition​(int x,
                         int y)
        Sets the screen position of this image.
        Parameters:
        x - The X position in pixels
        y - The Y position in pixels
      • getX

        int getX()
        Returns:
        The X position of this image in pixels
      • getY

        int getY()
        Returns:
        The Y position of this image in pixels
      • setWidthHeight

        void setWidthHeight​(int width,
                            int height)
        Sets the rendered width and height of this image.
        Parameters:
        width - The width in pixels
        height - The height in pixels
      • getWidth

        int getWidth()
        Returns:
        The rendered width of this image in pixels
      • getHeight

        int getHeight()
        Returns:
        The rendered height of this image in pixels
      • setTextureOffset

        void setTextureOffset​(int offsetX,
                              int offsetY)
        Sets the texture UV offset for this image.
        Parameters:
        offsetX - The horizontal texture offset in pixels
        offsetY - The vertical texture offset in pixels
      • getTextureX

        int getTextureX()
        Returns:
        The horizontal texture UV offset in pixels
      • getTextureY

        int getTextureY()
        Returns:
        The vertical texture UV offset in pixels
      • setColor

        void setColor​(int color)
        Sets the tint color of this image.
        Parameters:
        color - The color as an integer (e.g. 0xFFFFFF)
      • getColor

        int getColor()
        Returns:
        The tint color of this image
      • setSelectedColor

        void setSelectedColor​(int color)
        Sets the tint color used when this image is selected/hovered.
        Parameters:
        color - The selected color as an integer (e.g. 0xFFFFFF)
      • getSelectedColor

        int getSelectedColor()
        Returns:
        The tint color used when this image is selected/hovered
      • setScale

        void setScale​(float scale)
        Sets the render scale of this image.
        Parameters:
        scale - The scale factor (default 1.0)
      • getScale

        float getScale()
        Returns:
        The render scale of this image
      • setAlpha

        void setAlpha​(float alpha)
        Sets the alpha transparency of this image.
        Parameters:
        alpha - The alpha value from 0.0 (transparent) to 1.0 (opaque)
      • getAlpha

        float getAlpha()
        Returns:
        The alpha transparency of this image (0.0 to 1.0)
      • setRotation

        void setRotation​(float rotation)
        Sets the rotation angle of this image.
        Parameters:
        rotation - The rotation in degrees
      • getRotation

        float getRotation()
        Returns:
        The rotation angle of this image in degrees
      • setImageType

        void setImageType​(int imageType)
        Sets the image type which determines where the image is rendered.
        Parameters:
        imageType - The image type: 0 = Default, 1 = Text, 2 = Option
      • getImageType

        int getImageType()
        Returns:
        The image type: 0 = Default, 1 = Text, 2 = Option
      • setAlignment

        void setAlignment​(int alignment)
        Sets the alignment of this image.
        Parameters:
        alignment - The alignment value
      • getAlignment

        int getAlignment()
        Returns:
        The alignment value of this image