struct nk_style_button {
struct nk_style_item normal;
struct nk_style_item hover;
struct nk_style_item active;
struct nk_color border_color;
struct nk_color text_background;
struct nk_color text_normal;
struct nk_color text_hover;
struct nk_color text_active;
nk_flags text_alignment;
float border;
float rounding;
struct nk_vec2 padding;
struct nk_vec2 image_padding;
struct nk_vec2 touch_padding;
nk_handle userdata;
nk_draw_begin draw_begin;
nk_draw_end draw_end;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NkStyleButton.
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 | 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 | IMAGE_PADDING
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 | ROUNDING
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| 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 | NkStyleButton(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public NkStyleItem | |
| public NkStyleButton | |
| public NkStyleButton | |
| public float | |
| public NkStyleButton | |
| public NkColor | |
| public NkStyleButton | |
| public NkStyleButton | |
| public static NkStyleButton | |
| public static NkStyleButton. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NkStyleButton | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkStyleButton. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkStyleButton | |
| public static NkStyleButton | |
| public static NkStyleButton. | |
| public static NkStyleButton. | |
| protected NkStyleButton | 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 NkStyleButton | |
| public static NkStyleButton | |
| public static NkStyleButton. | create(int
the buffer capacity capacity)Returns a new |
| public static NkStyleButton. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NkStyleButton | |
| public static NkStyleButton. | |
| public NkDrawBeginCallback | |
| public NkStyleButton | |
| public NkDrawEndCallback | |
| public NkStyleButton | |
| public NkStyleItem | |
| public NkStyleButton | |
| public NkStyleButton | |
| public NkVec2 | |
| public NkStyleButton | |
| public NkStyleButton | |
| public static NkStyleButton | |
| public static NkStyleButton. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NkStyleButton | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NkStyleButton. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NkStyleButton | |
| public static NkStyleButton | |
| public static NkStyleButton. | |
| public static NkStyleButton. | |
| public static NkStyleItem | |
| public static void | |
| public static float | |
| public static void | |
| public static NkColor | |
| public static void | |
| public static NkDrawBeginCallback | |
| public static void | |
| public static NkDrawEndCallback | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public static NkVec2 | |
| public static void | |
| public static NkStyleItem | |
| public static void | |
| public NkStyleItem | |
| public NkStyleButton | |
| public NkStyleButton | |
| 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 NkStyleButton | |
| public NkStyleButton | |
| public float | |
| public NkStyleButton | |
| public NkStyleButton | set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor text_background, NkColor text_normal, NkColor text_hover, NkColor text_active, int text_alignment, float border, float rounding, NkVec2 padding, NkVec2 image_padding, NkVec2 touch_padding, NkHandle userdata, NkDrawBeginCallbackI draw_begin, NkDrawEndCallbackI draw_end)
Initializes this struct with the specified values. |
| public NkStyleButton | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public NkColor | |
| public NkStyleButton | |
| public NkStyleButton | |
| public int | |
| public NkStyleButton | |
| public NkColor | |
| public NkStyleButton | |
| public NkStyleButton | text_background(Consumer<NkColor> consumer)
Passes the |
| public NkColor | |
| public NkStyleButton | |
| public NkStyleButton | |
| public NkColor | |
| public NkStyleButton | |
| public NkStyleButton | |
| public NkVec2 | |
| public NkStyleButton | |
| public NkStyleButton | |
| public NkHandle | |
| public NkStyleButton | |
| public NkStyleButton |