feat: add more internal widgets & flags (#301)
This commit is contained in:
1 parent
4b0cf7bdfe
commit
92eba406ef
8 files changed
+529
-15
No files matched your search
@@ -0,0 +1,162 @@
|
||||
package imgui.internal.flag;
|
||||
|
||||
|
||||
public final class ImGuiButtonFlags {
|
||||
private ImGuiButtonFlags() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Definition: {@code 0}
|
||||
*/
|
||||
public static final int None = 0;
|
||||
|
||||
/**
|
||||
* React on left mouse button (default)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 0}
|
||||
*/
|
||||
public static final int MouseButtonLeft = 1;
|
||||
|
||||
/**
|
||||
* React on right mouse button
|
||||
*
|
||||
* <p>Definition: {@code 1 << 1}
|
||||
*/
|
||||
public static final int MouseButtonRight = 2;
|
||||
|
||||
/**
|
||||
* React on center mouse button
|
||||
*
|
||||
* <p>Definition: {@code 1 << 2}
|
||||
*/
|
||||
public static final int MouseButtonMiddle = 4;
|
||||
|
||||
/**
|
||||
* [Internal]
|
||||
*
|
||||
* <p>Definition: {@code ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle}
|
||||
*/
|
||||
public static final int MouseButtonMask_ = 7;
|
||||
|
||||
/**
|
||||
* [Internal]
|
||||
*
|
||||
* <p>Definition: {@code ImGuiButtonFlags_MouseButtonLeft}
|
||||
*/
|
||||
public static final int MouseButtonDefault_ = 1;
|
||||
|
||||
/**
|
||||
* return true on click (mouse down event)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 4}
|
||||
*/
|
||||
public static final int PressedOnClick = 16;
|
||||
|
||||
/**
|
||||
* [Default] return true on click + release on same item{@code <}-- this is what the majority of Button are using
|
||||
*
|
||||
* <p>Definition: {@code 1 << 5}
|
||||
*/
|
||||
public static final int PressedOnClickRelease = 32;
|
||||
|
||||
/**
|
||||
* return true on click + release even if the release event is not done while hovering the item
|
||||
*
|
||||
* <p>Definition: {@code 1 << 6}
|
||||
*/
|
||||
public static final int PressedOnClickReleaseAnywhere = 64;
|
||||
|
||||
/**
|
||||
* return true on release (default requires click+release)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 7}
|
||||
*/
|
||||
public static final int PressedOnRelease = 128;
|
||||
|
||||
/**
|
||||
* return true on double-click (default requires click+release)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 8}
|
||||
*/
|
||||
public static final int PressedOnDoubleClick = 256;
|
||||
|
||||
/**
|
||||
* return true when held into while we are drag and dropping another item (used by e.g. tree nodes, collapsing headers)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 9}
|
||||
*/
|
||||
public static final int PressedOnDragDropHold = 512;
|
||||
|
||||
/**
|
||||
* hold to repeat
|
||||
*
|
||||
* <p>Definition: {@code 1 << 10}
|
||||
*/
|
||||
public static final int Repeat = 1024;
|
||||
|
||||
/**
|
||||
* allow interactions even if a child window is overlapping
|
||||
*
|
||||
* <p>Definition: {@code 1 << 11}
|
||||
*/
|
||||
public static final int FlattenChildren = 2048;
|
||||
|
||||
/**
|
||||
* require previous frame HoveredId to either match id or be null before being usable, use along with SetItemAllowOverlap()
|
||||
*
|
||||
* <p>Definition: {@code 1 << 12}
|
||||
*/
|
||||
public static final int AllowItemOverlap = 4096;
|
||||
|
||||
/**
|
||||
* disable automatically closing parent popup on press // [UNUSED]
|
||||
*
|
||||
* <p>Definition: {@code 1 << 13}
|
||||
*/
|
||||
public static final int DontClosePopups = 8192;
|
||||
|
||||
/**
|
||||
* vertically align button to match text baseline - ButtonEx() only // FIXME: Should be removed and handled by SmallButton(), not possible currently because of DC.CursorPosPrevLine
|
||||
*
|
||||
* <p>Definition: {@code 1 << 15}
|
||||
*/
|
||||
public static final int AlignTextBaseLine = 32768;
|
||||
|
||||
/**
|
||||
* disable mouse interaction if a key modifier is held
|
||||
*
|
||||
* <p>Definition: {@code 1 << 16}
|
||||
*/
|
||||
public static final int NoKeyModifiers = 65536;
|
||||
|
||||
/**
|
||||
* don't set ActiveId while holding the mouse (ImGuiButtonFlags_PressedOnClick only)
|
||||
*
|
||||
* <p>Definition: {@code 1 << 17}
|
||||
*/
|
||||
public static final int NoHoldingActiveId = 131072;
|
||||
|
||||
/**
|
||||
* don't override navigation focus when activated
|
||||
*
|
||||
* <p>Definition: {@code 1 << 18}
|
||||
*/
|
||||
public static final int NoNavFocus = 262144;
|
||||
|
||||
/**
|
||||
* don't report as hovered when nav focus is on this item
|
||||
*
|
||||
* <p>Definition: {@code 1 << 19}
|
||||
*/
|
||||
public static final int NoHoveredOnFocus = 524288;
|
||||
|
||||
/**
|
||||
* Definition: {@code ImGuiButtonFlags_PressedOnClick | ImGuiButtonFlags_PressedOnClickRelease | ImGuiButtonFlags_PressedOnClickReleaseAnywhere | ImGuiButtonFlags_PressedOnRelease | ImGuiButtonFlags_PressedOnDoubleClick | ImGuiButtonFlags_PressedOnDragDropHold}
|
||||
*/
|
||||
public static final int PressedOnMask_ = 1008;
|
||||
|
||||
/**
|
||||
* Definition: {@code ImGuiButtonFlags_PressedOnClickRelease}
|
||||
*/
|
||||
public static final int PressedOnDefault_ = 32;
|
||||
}
|
||||
Reference in new issue
Block a user