Class SDL_WindowShapeMode


  • @FieldOrder({"mode","binarizationCutoffOrRed","g","b","a"})
    public final class SDL_WindowShapeMode
    extends com.sun.jna.Structure
    A struct that tags the SDL_WindowShapeParams union with an enum describing the type of its contents.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.sun.jna.Structure

        com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte a  
      byte b  
      byte binarizationCutoffOrRed
      A cutoff alpha value for binarization of the window shape's alpha channel.
      byte g  
      int mode
      The mode of these window-shape parameters.
      • Fields inherited from class com.sun.jna.Structure

        ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte getBinarizationCutoff()  
      SDL_Color getColorKey()  
      int getMode()  
      void setBinarizationCutoff​(byte newValue)  
      void setColorKey​(SDL_Color newValue)  
      void setMode​(int mode)  
      • Methods inherited from class com.sun.jna.Structure

        allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
    • Field Detail

      • mode

        public int mode
        The mode of these window-shape parameters.
      • binarizationCutoffOrRed

        public byte binarizationCutoffOrRed
        A cutoff alpha value for binarization of the window shape's alpha channel.
      • g

        public byte g
      • b

        public byte b
      • a

        public byte a
    • Constructor Detail

      • SDL_WindowShapeMode

        public SDL_WindowShapeMode()
      • SDL_WindowShapeMode

        public SDL_WindowShapeMode​(com.sun.jna.Pointer p)
    • Method Detail

      • getMode

        public int getMode()
      • setMode

        public void setMode​(int mode)
      • getBinarizationCutoff

        public byte getBinarizationCutoff()
      • setBinarizationCutoff

        public void setBinarizationCutoff​(byte newValue)
      • getColorKey

        public SDL_Color getColorKey()
      • setColorKey

        public void setColorKey​(SDL_Color newValue)