MCPcopy Create free account
hub / github.com/WheretIB/nullc / AreaLine

Class AreaLine

GUI/RichTextarea.cpp:43–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43struct AreaLine
44{
45 AreaLine()
46 {
47 length = 0;
48 maxLength = DEFAULT_STRING_LENGTH;
49 data = startBuf;
50 prev = next = NULL;
51 lineExtra = lineStyle = 0;
52 }
53
54 AreaChar startBuf[DEFAULT_STRING_LENGTH];
55 AreaChar *data;
56 unsigned int length;
57 unsigned int maxLength;
58
59 unsigned int lineStyle;
60 unsigned int lineExtra;
61
62 AreaLine *prev, *next;
63
64 static ObjectBlockPool<AreaLine, 32> *pool;
65 void* operator new(size_t size)
66 {
67 (void)size;
68 return pool->Create();
69 }
70 void operator delete(void *ptr, size_t size)
71 {
72 (void)size;
73 pool->Destroy((AreaLine*)ptr);
74 }
75};
76
77ObjectBlockPool<AreaLine, 32>* AreaLine::pool = NULL;
78

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected