acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
tool_item.h
1
//
2
// tool_item.hpp
3
// acme
4
//
5
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 03/Oct/22 18:39
6
// Copyright (c) 2022 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7
//
8
#pragma once
9
10
11
#include "acme/user/user/_constant.h"
12
#include "acme/handler/item.h"
13
14
15
namespace
user
16
{
17
18
19
class
CLASS_DECL_ACME tool_item:
20
public
::item
21
{
22
public
:
23
24
25
::collection::index m_iImage;
26
::image::image_pointer m_pimage;
27
e_tool_item_state m_estate;
28
e_tool_item_style m_estyle;
29
string
m_str;
30
bool
m_bEnableIfHasCommandHandler;
31
::write_text::font_pointer m_pfont;
32
33
34
tool_item();
35
~tool_item();
36
37
38
::i32_boolean
is_hidden()
const
;
39
bool
displayed()
const
;
40
41
void
hide();
42
43
::i32_boolean
should_wrap()
const
;
44
void
set_should_wrap(
bool
bSet =
true
);
45
46
47
::i32_boolean
is_separator()
const
;
48
49
bool
is_custom_control()
const
;
50
51
};
52
53
54
// inline tool_item * __tool_item(::item * pitem)
55
// {
56
//
57
// return (tool_item*) pitem->m_data[0];
58
//
59
// }
60
61
62
}
// namespace user
63
64
65
i32_boolean
Definition
boolean.h:7
user
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition
_.h:67
user
user
tool_item.h
Generated by
1.17.0