Skip to content

Commit a0768e1

Browse files
committed
docs for Logarithmic and AlwaysClamp flags
1 parent 091dda7 commit a0768e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ See `example/main.cpp` for a demo.
4444
- `ImGuiKnobFlags_ValueTooltip`: Show a tooltip with the current value on hover.
4545
- `ImGuiKnobFlags_DragHorizontal`: Use horizontal dragging only (default is bi-directional).
4646
- `ImGuiKnobFlags_DragVertical`: Use vertical dragging only (default is bi-directional).
47+
- `ImGuiKnobFlags_AlwaysClamp`: Clamp input values that the user types into the input field. If not set, it's possible to override the min/max range via the input field.
48+
- `ImGuiKnobFlags_Logarithmic`: Use logarithmic scale for the knob (otherwise linear).
4749
4850
### Size
4951
You can specify a size given as the width of the knob (will be scaled according to ImGui's `FontGlobalScale`). Default (0) will use 4x line height.

0 commit comments

Comments
 (0)