acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
text.h
1// Changed by camilo with
2// property* system on 2024-06-08 02:06 <3ThomasBorregaardSorensen!!
3#pragma once
4
5
6//#include "acme/prototype/prototype/payload.h"
8#include "acme/user/user/control.h"
9#include "acme/user/user/property.h"
10#include "acme/user/user/text_property.h"
11#include "acme/prototype/data/property_listener.h"
12
13
14namespace user
15{
16
17
18 class CLASS_DECL_ACME text :
19 virtual public ::user::control
20 {
21 public:
22
23
24 //::data::property_will_change m_propertywillchange;
25 //::data::property_changed m_propertychanged;
26 //::comparable_array < check_will_change > m_checkwillchangea;
27 //::comparable_array < check_changed > m_checkchangeda;
28 //void unhook_callbacks();
29 //void hook_callbacks();
30
31 ::user::text_property m_textproperty;
32
33
34 public:
35
36
37 text();
38 ~text() override;
39
40
41 void set_text_property(const ::data::text_property & textproperty);
42
43
44 ::user::text_property text_property() const;
45
46 virtual bool on_text_will_change(::data::text_change & textchange);
47 virtual void on_text_changed(::data::text_change & textchange);
48
49
50 //bool on_property_will_change(::data::property_change & change) override;
51 //void on_property_changed(::data::property_change & change) override;
52
53 virtual ::string as_text() const;
54 virtual ::string get_text() const;
55 virtual ::string get_text(character_count iBegin, character_count iEnd) const;
56 virtual character_count get_text_length() const;
57 virtual ::string get_selection_text() const;
58 virtual void get_text_selection(character_count & iBegin, character_count & iEnd) const;
59 virtual void set_text_selection(character_count iBegin, character_count iEnd, const ::action_context & actioncontext);
60 virtual void set_text(const ::scoped_string & scopedstr, const ::action_context & actioncontext);
61
62
63 };
64
65
66} // namespace user
67
68
69
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition _.h:67
Definition aaa_text_handler.h:25