forked from pthom/imgui_toggle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimgui_toggle_presets.h
More file actions
25 lines (18 loc) · 886 Bytes
/
imgui_toggle_presets.h
File metadata and controls
25 lines (18 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "imgui_toggle.h"
// ImGuiTogglePresets: A few canned configurations for various presets OOTB.
namespace ImGuiTogglePresets
{
// The default, unmodified style.
ImGuiToggleConfig DefaultStyle();
// A style similar to default, but with rectangular knob and frame.
ImGuiToggleConfig RectangleStyle();
// A style that uses a shadow to appear to glow while it's on.
ImGuiToggleConfig GlowingStyle();
// A style that emulates what a toggle on iOS looks like.
ImGuiToggleConfig iOSStyle(float size_scale = 1.0f, bool light_mode = false);
// A style that emulates what a Material Design toggle looks like.
ImGuiToggleConfig MaterialStyle(float size_scale = 1.0f);
// A style that emulates what a toggle close to one from Minecraft.
ImGuiToggleConfig MinecraftStyle(float size_scale = 1.0f);
}