struct nk_style_toggle {
struct nk_style_item normal;
struct nk_style_item hover;
struct nk_style_item active;
struct nk_color border_color;
struct nk_style_item cursor_normal;
struct nk_style_item cursor_hover;
struct nk_color text_normal;
struct nk_color text_hover;
struct nk_color text_active;
struct nk_color text_background;
nk_flags text_alignment;
struct nk_vec2 padding;
struct nk_vec2 touch_padding;
float spacing;
float border;
nk_handle userdata;
nk_draw_begin draw_begin;
nk_draw_end draw_end;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkStyleToggle.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ACTIVE
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BORDER
The struct member offsets. |
| public static final int | BORDER_COLOR
The struct member offsets. |
| public static final int | CURSOR_HOVER
The struct member offsets. |
| public static final int | CURSOR_NORMAL
The struct member offsets. |
| public static final int | DRAW_BEGIN
The struct member offsets. |
| public static final int | DRAW_END
The struct member offsets. |
| public static final int | HOVER
The struct member offsets. |
| public static final int | NORMAL
The struct member offsets. |
| public static final int | PADDING
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SPACING
The struct member offsets. |
| public static final int | TEXT_ACTIVE
The struct member offsets. |
| public static final int | TEXT_ALIGNMENT
The struct member offsets. |
| public static final int | TEXT_BACKGROUND
The struct member offsets. |
| public static final int | TEXT_HOVER
The struct member offsets. |
| public static final int | TEXT_NORMAL
The struct member offsets. |
| public static final int | TOUCH_PADDING
The struct member offsets. |
| public static final int | USERDATA
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NkStyleToggle(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public NkStyleItem | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public float | |
| public NkStyleToggle | |
| public NkColor | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public static NkStyleToggle | |
| public static NkStyleToggle. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkStyleToggle | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkStyleToggle. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkStyleToggle | |
| public static NkStyleToggle | |
| public static NkStyleToggle. | |
| public static NkStyleToggle. | |
| protected NkStyleToggle | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NkStyleToggle | |
| public static NkStyleToggle | |
| public static NkStyleToggle. | create(int
the buffer capacity capacity)Returns a new |
| public static NkStyleToggle. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkStyleToggle | |
| public static NkStyleToggle. | |
| public NkStyleItem | |
| public NkStyleToggle | |
| public NkStyleToggle | cursor_hover(Consumer<NkStyleItem> consumer)
Passes the |
| public NkStyleItem | |
| public NkStyleToggle | |
| public NkStyleToggle | cursor_normal(Consumer<NkStyleItem> consumer)
Passes the |
| public NkDrawBeginCallback | |
| public NkStyleToggle | |
| public NkDrawEndCallback | |
| public NkStyleToggle | |
| public NkStyleItem | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public static NkStyleToggle | |
| public static NkStyleToggle. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkStyleToggle | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkStyleToggle. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkStyleToggle | |
| public static NkStyleToggle | |
| public static NkStyleToggle. | |
| public static NkStyleToggle. | |
| public static NkStyleItem | |
| public static void | |
| public static float | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public static NkDrawBeginCallback | |
| public static void | |
| public static NkDrawEndCallback | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public NkStyleItem | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public static NkVec2 | |
| public static void | |
| public static float | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static int | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static NkVec2 | |
| public static void | |
| public static NkHandle | |
| public static void | |
| public NkVec2 | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public NkStyleToggle | set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleItem cursor_normal, NkStyleItem cursor_hover, NkColor text_normal, NkColor text_hover, NkColor text_active, NkColor text_background, int text_alignment, NkVec2 padding, NkVec2 touch_padding, float spacing, float border, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values. |
| public NkStyleToggle | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public float | |
| public NkStyleToggle | |
| public NkColor | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public int | |
| public NkStyleToggle | |
| public NkColor | |
| public NkStyleToggle | |
| public NkStyleToggle | text_background(Consumer<NkColor> consumer)
Passes the |
| public NkColor | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public NkColor | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public NkVec2 | |
| public NkStyleToggle | |
| public NkStyleToggle | |
| public NkHandle | |
| public NkStyleToggle | |
| public NkStyleToggle |