Class wmKeyMapItem


  • public class wmKeyMapItem
    extends CFacade
    Generated facet for DNA struct type 'wmKeyMapItem'.

    Class Documentation

    Blender Source Code

    Partial copy of the event, for matching by event handler.

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct wmKeyMapItem.

        It is required when allocating a new block to store data for wmKeyMapItem.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__next

        public static final long[] __DNA__FIELD__next
        Field descriptor (offset) for struct member 'next'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__next);
         CPointer<CPointer<wmKeyMapItem>> p_next = p.cast(new Class[]{CPointer.class, wmKeyMapItem.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'wmKeyMapItem*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

        public static final long[] __DNA__FIELD__prev
        Field descriptor (offset) for struct member 'prev'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__prev);
         CPointer<CPointer<wmKeyMapItem>> p_prev = p.cast(new Class[]{CPointer.class, wmKeyMapItem.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'wmKeyMapItem*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__idname

        public static final long[] __DNA__FIELD__idname
        Field descriptor (offset) for struct member 'idname'.

        Field Documentation

        Blender Source Code

        operator Used to retrieve operator type pointer.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__idname);
         CPointer<CArrayFacade<Byte>> p_idname = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'idname'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__properties

        public static final long[] __DNA__FIELD__properties
        Field descriptor (offset) for struct member 'properties'.

        Field Documentation

        Blender Source Code

        Operator properties, assigned to ptr->data and can be written to a file.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__properties);
         CPointer<CPointer<IDProperty>> p_properties = p.cast(new Class[]{CPointer.class, IDProperty.class});
         

        Metadata

        • Field: 'properties'
        • Signature: 'IDProperty*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__propvalue_str

        public static final long[] __DNA__FIELD__propvalue_str
        Field descriptor (offset) for struct member 'propvalue_str'.

        Field Documentation

        Blender Source Code

        modal Runtime temporary storage for loading.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__propvalue_str);
         CPointer<CArrayFacade<Byte>> p_propvalue_str = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'propvalue_str'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__propvalue

        public static final long[] __DNA__FIELD__propvalue
        Field descriptor (offset) for struct member 'propvalue'.

        Field Documentation

        Blender Source Code

        If used, the item is from modal map.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__propvalue);
         CPointer<Short> p_propvalue = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'propvalue'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__type

        public static final long[] __DNA__FIELD__type
        Field descriptor (offset) for struct member 'type'.

        Field Documentation

        Blender Source Code

        event Event code itself.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__type);
         CPointer<Short> p_type = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'type'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__val

        public static final long[] __DNA__FIELD__val
        Field descriptor (offset) for struct member 'val'.

        Field Documentation

        Blender Source Code

        KM_ANY, KM_PRESS, KM_NOTHING etc.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__val);
         CPointer<Byte> p_val = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'val'
        • Signature: 'int8_t'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__direction

        public static final long[] __DNA__FIELD__direction
        Field descriptor (offset) for struct member 'direction'.

        Field Documentation

        Blender Source Code

        .

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__direction);
         CPointer<Byte> p_direction = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'direction'
        • Signature: 'int8_t'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__shift

        public static final long[] __DNA__FIELD__shift
        Field descriptor (offset) for struct member 'shift'.

        Field Documentation

        Blender Source Code

        also known as apple, windows-key or super.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__shift);
         CPointer<Short> p_shift = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'shift'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__ctrl

        public static final long[] __DNA__FIELD__ctrl
        Field descriptor (offset) for struct member 'ctrl'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__ctrl);
         CPointer<Short> p_ctrl = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'ctrl'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__alt

        public static final long[] __DNA__FIELD__alt
        Field descriptor (offset) for struct member 'alt'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__alt);
         CPointer<Short> p_alt = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'alt'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__oskey

        public static final long[] __DNA__FIELD__oskey
        Field descriptor (offset) for struct member 'oskey'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__oskey);
         CPointer<Short> p_oskey = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'oskey'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__keymodifier

        public static final long[] __DNA__FIELD__keymodifier
        Field descriptor (offset) for struct member 'keymodifier'.

        Field Documentation

        Blender Source Code

        Raw-key modifier.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__keymodifier);
         CPointer<Short> p_keymodifier = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'keymodifier'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag: inactive, expanded

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__maptype

        public static final long[] __DNA__FIELD__maptype
        Field descriptor (offset) for struct member 'maptype'.

        Field Documentation

        Blender Source Code

        runtime Keymap editor.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__maptype);
         CPointer<Short> p_maptype = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'maptype'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__id

        public static final long[] __DNA__FIELD__id
        Field descriptor (offset) for struct member 'id'.

        Field Documentation

        Blender Source Code

        Unique identifier. Positive for kmi that override builtins, negative otherwise.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__id);
         CPointer<Short> p_id = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__ptr

        public static final long[] __DNA__FIELD__ptr
        Field descriptor (offset) for struct member 'ptr'.

        Field Documentation

        Blender Source Code

        RNA pointer to access properties.

        Note

        value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        The ptr.owner_id value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         wmKeyMapItem wmkeymapitem = ...;
         CPointer<Object> p = wmkeymapitem.__dna__addressof(wmKeyMapItem.__DNA__FIELD__ptr);
         CPointer<CPointer<Object>> p_ptr = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'ptr'
        • Signature: 'PointerRNA*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • wmKeyMapItem

        public wmKeyMapItem​(long __address,
                            Block __block,
                            BlockTable __blockTable)
      • wmKeyMapItem

        protected wmKeyMapItem​(wmKeyMapItem that)
    • Method Detail

      • getIdname

        public CArrayFacade<java.lang.Byte> getIdname()
                                               throws java.io.IOException
        Get method for struct member 'idname'.

        Field Documentation

        Blender Source Code

        operator Used to retrieve operator type pointer.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__idname
      • setIdname

        public void setIdname​(CArrayFacade<java.lang.Byte> idname)
                       throws java.io.IOException
        Set method for struct member 'idname'.

        Field Documentation

        Blender Source Code

        operator Used to retrieve operator type pointer.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__idname
      • getProperties

        public CPointer<IDProperty> getProperties()
                                           throws java.io.IOException
        Get method for struct member 'properties'.

        Field Documentation

        Blender Source Code

        Operator properties, assigned to ptr->data and can be written to a file.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__properties
      • setProperties

        public void setProperties​(CPointer<IDProperty> properties)
                           throws java.io.IOException
        Set method for struct member 'properties'.

        Field Documentation

        Blender Source Code

        Operator properties, assigned to ptr->data and can be written to a file.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__properties
      • getPropvalue_str

        public CArrayFacade<java.lang.Byte> getPropvalue_str()
                                                      throws java.io.IOException
        Get method for struct member 'propvalue_str'.

        Field Documentation

        Blender Source Code

        modal Runtime temporary storage for loading.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__propvalue_str
      • setPropvalue_str

        public void setPropvalue_str​(CArrayFacade<java.lang.Byte> propvalue_str)
                              throws java.io.IOException
        Set method for struct member 'propvalue_str'.

        Field Documentation

        Blender Source Code

        modal Runtime temporary storage for loading.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__propvalue_str
      • getPropvalue

        public short getPropvalue()
                           throws java.io.IOException
        Get method for struct member 'propvalue'.

        Field Documentation

        Blender Source Code

        If used, the item is from modal map.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__propvalue
      • setPropvalue

        public void setPropvalue​(short propvalue)
                          throws java.io.IOException
        Set method for struct member 'propvalue'.

        Field Documentation

        Blender Source Code

        If used, the item is from modal map.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__propvalue
      • getType

        public short getType()
                      throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Source Code

        event Event code itself.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

        public void setType​(short type)
                     throws java.io.IOException
        Set method for struct member 'type'.

        Field Documentation

        Blender Source Code

        event Event code itself.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getVal

        public byte getVal()
                    throws java.io.IOException
        Get method for struct member 'val'.

        Field Documentation

        Blender Source Code

        KM_ANY, KM_PRESS, KM_NOTHING etc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__val
      • setVal

        public void setVal​(byte val)
                    throws java.io.IOException
        Set method for struct member 'val'.

        Field Documentation

        Blender Source Code

        KM_ANY, KM_PRESS, KM_NOTHING etc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__val
      • getDirection

        public byte getDirection()
                          throws java.io.IOException
        Get method for struct member 'direction'.

        Field Documentation

        Blender Source Code

        .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__direction
      • setDirection

        public void setDirection​(byte direction)
                          throws java.io.IOException
        Set method for struct member 'direction'.

        Field Documentation

        Blender Source Code

        .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__direction
      • getShift

        public short getShift()
                       throws java.io.IOException
        Get method for struct member 'shift'.

        Field Documentation

        Blender Source Code

        also known as apple, windows-key or super.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shift
      • setShift

        public void setShift​(short shift)
                      throws java.io.IOException
        Set method for struct member 'shift'.

        Field Documentation

        Blender Source Code

        also known as apple, windows-key or super.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shift
      • getCtrl

        public short getCtrl()
                      throws java.io.IOException
        Get method for struct member 'ctrl'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ctrl
      • setCtrl

        public void setCtrl​(short ctrl)
                     throws java.io.IOException
        Set method for struct member 'ctrl'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ctrl
      • getAlt

        public short getAlt()
                     throws java.io.IOException
        Get method for struct member 'alt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alt
      • setAlt

        public void setAlt​(short alt)
                    throws java.io.IOException
        Set method for struct member 'alt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alt
      • getOskey

        public short getOskey()
                       throws java.io.IOException
        Get method for struct member 'oskey'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__oskey
      • setOskey

        public void setOskey​(short oskey)
                      throws java.io.IOException
        Set method for struct member 'oskey'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__oskey
      • getKeymodifier

        public short getKeymodifier()
                             throws java.io.IOException
        Get method for struct member 'keymodifier'.

        Field Documentation

        Blender Source Code

        Raw-key modifier.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__keymodifier
      • setKeymodifier

        public void setKeymodifier​(short keymodifier)
                            throws java.io.IOException
        Set method for struct member 'keymodifier'.

        Field Documentation

        Blender Source Code

        Raw-key modifier.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__keymodifier
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag: inactive, expanded

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag: inactive, expanded

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getMaptype

        public short getMaptype()
                         throws java.io.IOException
        Get method for struct member 'maptype'.

        Field Documentation

        Blender Source Code

        runtime Keymap editor.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__maptype
      • setMaptype

        public void setMaptype​(short maptype)
                        throws java.io.IOException
        Set method for struct member 'maptype'.

        Field Documentation

        Blender Source Code

        runtime Keymap editor.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__maptype
      • getId

        public short getId()
                    throws java.io.IOException
        Get method for struct member 'id'.

        Field Documentation

        Blender Source Code

        Unique identifier. Positive for kmi that override builtins, negative otherwise.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(short id)
                   throws java.io.IOException
        Set method for struct member 'id'.

        Field Documentation

        Blender Source Code

        Unique identifier. Positive for kmi that override builtins, negative otherwise.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getPtr

        public CPointer<java.lang.Object> getPtr()
                                          throws java.io.IOException
        Get method for struct member 'ptr'.

        Field Documentation

        Blender Source Code

        RNA pointer to access properties.

        Note

        value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        The ptr.owner_id value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ptr
      • setPtr

        public void setPtr​(CPointer<java.lang.Object> ptr)
                    throws java.io.IOException
        Set method for struct member 'ptr'.

        Field Documentation

        Blender Source Code

        RNA pointer to access properties.

        Note

        value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        The ptr.owner_id value must be NULL, as a signal not to use the context when running property callbacks such as ENUM item functions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ptr
      • __io__addressof

        public CPointer<wmKeyMapItem> __io__addressof()
        Instantiates a pointer on this instance.