acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
check_property.h
1
// Changed by camilo with
2
// property* system on 2024-06-06 21:19 <3ThomasBorregaardSorensen!!
3
#pragma once
4
5
6
//#include "acme/prototype/prototype/payload.h"
8
#include "acme/user/user/property.h"
9
#include "acme/prototype/data/check_property.h"
10
#include "acme/prototype/data/property_listener.h"
11
12
13
namespace
user
14
{
15
16
//struct check_change
17
//{
18
// ::data::check_property & m_checkproperty;
19
// ::data::property_change & m_propertychange;
20
// auto & payload() {
21
// return m_propertychange.m_payload;
22
// }
23
// auto & action_context() {
24
// return m_propertychange.m_actioncontext;
25
// }
26
27
//};
28
//
29
//using check_will_change = ::function < bool(check_change &) >;
30
31
//using check_changed = ::function < void(check_change &) >;
32
33
34
class
CLASS_DECL_ACME check_property :
35
public
::user::property,
36
public
::data::check_property
37
{
38
public
:
39
40
41
//::data::property_will_change m_propertywillchange;
42
//::data::property_changed m_propertychanged;
43
//::comparable_array < ::user::check_will_change > m_checkwillchangea;
44
//::comparable_array < ::user::check_changed > m_checkchangeda;
45
//void unhook_callbacks();
46
//void hook_callbacks();
47
48
49
public
:
50
51
52
check_property(::user::control * pusercontrol,
::data::property_container
* ppropertycontainer =
nullptr
, const ::atom & atom = {});
53
~check_property();
54
55
56
//void set_check_property(const ::data::check_property & checkproperty);
57
58
//check_property & check() { return m_checkproperty; }
59
60
/*
61
//virtual bool on_property_will_change(property_container * pcontainer, const ::atom_array & atoma, const ::payload & payload, const ::action_context & actioncontext);
62
//virtual void on_property_changed(property_container * pcontainer, const ::atom_array & atoma, const ::payload & payload, const ::action_context & actioncontext);
63
*/
64
65
//bool on_check_will_change(check_change & checkchange);
66
//void on_check_changed(check_change & checkchange);
67
68
//::comparable_array < ::user::check_will_change > & check_will_change();
69
//::comparable_array < ::user::check_changed > & check_changed();
70
71
72
bool
operator == (const ::data::check_property & checkproperty)
const
;
73
bool
operator == (const ::data::check_change & change)
const
;
74
75
76
};
77
78
79
}
// namespace user
80
81
82
data::check_property
Definition
check_property.h:38
data::property_container
Definition
property_container.h:17
user
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition
_.h:67
user
user
check_property.h
Generated by
1.17.0