acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
text.h
1//Created by camilo on 2021-03-26 00:10 BRT <3ThomasBS_
2#pragma once
3
4
5#include "data.h"
6
7
8namespace text
9{
10
11
12 class CLASS_DECL_ACME text
13 {
14 public:
15
16
17 data * m_pdata;
18
19
20 text();
21 text(text&& text);
22 text(const text& text);
23 text(data * ptextdata);
24 ~text();
25
26 inline string get_text() const { return ::is_set(m_pdata) ? ((m_pdata->m_bPendingUpdate) ? defer_update_text() : m_pdata->m_str) : ::string(); }
27
28 string defer_update_text() const;
29
30 void destroy();
31
32 text& operator = (const text& text);
33
34 protected:
35
36 data * clone_text_data() const;
37
38
39 };
40
41
42} // namespace text
43
44
45
Definition data.h:22