acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
tool_item.h
1//
2// tool_item.h
3// acme
4//
5// Created by Camilo Sasuke Thomas Borregaard Soerensen on 03/Oct/22 20:28
6// Copyright (c) 2022 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7//
8#pragma once
9
10
11enum enum_tool_item_state : ::i64
12{
13
14 e_tool_item_state_none,
15 e_tool_item_state_checked = 1 << 0,
16 e_tool_item_state_pressed = 1 << 1,
17 e_tool_item_state_enabled = 1 << 2,
18 e_tool_item_state_hidden = 1 << 3,
19 e_tool_item_state_indeterminate = 1 << 4,
20 e_tool_item_state_wrap = 1 << 5,
21 e_tool_item_state_ellipses = 1 << 6,
22 e_tool_item_state_marked = 1 << 7,
23 e_tool_item_state_hover = 1 << 8,
24
25};
26
27
28enum enum_tool_item_style : ::i64
29{
30
31 e_tool_item_style_none = e_toolbar_style_none,
32 e_tool_item_style_separator = e_toolbar_style_separator,
33 e_tool_item_style_checkbox = e_toolbar_style_check,
34 e_tool_item_style_group = e_toolbar_style_group,
35 e_tool_item_style_check_group = e_tool_item_style_group | e_tool_item_style_checkbox,
36 e_tool_item_style_dropdown = e_toolbar_style_dropdown,
37 e_tool_item_style_autosize = e_toolbar_style_autosize,
38 e_tool_item_style_noprefix = e_toolbar_style_noprefix,
39 e_tool_item_style_custom_control = 1_uintmax,
40//#define TBBS_AUTOSIZE make_int(TBSTYLE_AUTOSIZE, 0) // autocalc button width
41//#define TBBS_NOPREFIX make_int(TBSTYLE_NOPREFIX, 0) // no accel prefix for this button
42 e_tool_item_style_checked = make_int(0, e_tool_item_state_checked),
43 e_tool_item_style_pressed = make_int(0, e_tool_item_state_pressed),
44 e_tool_item_style_disabled = make_int(0, e_tool_item_state_enabled),
45 e_tool_item_style_indeterminate = make_int(0, e_tool_item_state_indeterminate),
46 e_tool_item_style_hidden = make_int(0, e_tool_item_state_hidden),
47 e_tool_item_style_wrapped = make_int(0, e_tool_item_state_wrap),
48 e_tool_item_style_ellipses = make_int(0, e_tool_item_state_ellipses),
49 e_tool_item_style_marked = make_int(0, e_tool_item_state_marked),
50};
51
52
53DECLARE_C_FLAG(e_tool_item_state, enum_tool_item_state);
54DECLARE_C_FLAG(e_tool_item_style, enum_tool_item_style);
55
56
57