-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCCSegmentedButton.html
More file actions
216 lines (214 loc) · 177 KB
/
Copy pathCCSegmentedButton.html
File metadata and controls
216 lines (214 loc) · 177 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CCSegmentedButton | CCKit2</title><meta name="description" content="Documentation for CCKit2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script><style data-for="languages">.tsd-code-language-bar {background: var(--color-background-active); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; margin-left: -10px; margin-top: -10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; margin-right: -10px; margin-bottom: 5px; border-top-left-radius: 0.8em; border-top-right-radius: 0.8em;} .tsd-code-language {font-weight: bold;} .tsd-language-toggle .settings-label {margin: 0.25rem 0.75rem 0 0;} :root {--tsd-language-ts: none; --tsd-language-lua: none; } pre:has(> .ts):has(+ pre > .lua) {display: var(--tsd-language-ts);} pre:has(> .ts) + pre:has(> .lua) {display: var(--tsd-language-lua);} </style></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">CCKit2</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">CCSegmentedButton</a></li></ul><h1>Class CCSegmentedButton</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>A segmented button displays multiple buttons in a single view, with only one
selected at a time.<br>
<img src="../media/CCSegmentedButton.png" alt="Example image"></p>
</div><div class="tsd-comment tsd-typography"><div class="tsd-tag-example"><h4 class="tsd-anchor-link" id="example-create-a-segmented-button-with-three-choices">Example: Create a segmented button with three choices.<a href="#example-create-a-segmented-button-with-three-choices" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><div class="tsd-code-language-bar"><span class="tsd-code-language">TypeScript</span></div><code class="ts"><span class="hl-4">let</span><span class="hl-1"> </span><span class="hl-5">segmentedButton</span><span class="hl-1"> = </span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-0">CCSegmentedButton</span><span class="hl-1">({</span><span class="hl-5">x:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-5">y:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-5">width:</span><span class="hl-1"> </span><span class="hl-8">25</span><span class="hl-1">, </span><span class="hl-5">height:</span><span class="hl-1"> </span><span class="hl-8">1</span><span class="hl-1">}, [</span><span class="hl-2">"Main"</span><span class="hl-1">, </span><span class="hl-2">"Browse"</span><span class="hl-1">, </span><span class="hl-2">"Options"</span><span class="hl-1">], (</span><span class="hl-5">_</span><span class="hl-1">, </span><span class="hl-5">id</span><span class="hl-1">) </span><span class="hl-4">=></span><span class="hl-1"> </span><span class="hl-4">this</span><span class="hl-1">.</span><span class="hl-0">selectTab</span><span class="hl-1">(</span><span class="hl-5">id</span><span class="hl-1">));</span><br/><span class="hl-4">this</span><span class="hl-1">.</span><span class="hl-5">view</span><span class="hl-1">.</span><span class="hl-0">addSubview</span><span class="hl-1">(</span><span class="hl-5">segmentedButton</span><span class="hl-1">);</span>
</code><button type="button">Copy</button></pre>
<pre><div class="tsd-code-language-bar"><span class="tsd-code-language">Lua</span></div><code class="lua"><span class="hl-4">local</span><span class="hl-1"> </span><span class="hl-5">segmentedButton</span><span class="hl-1"> = </span><span class="hl-5">LuaWrappers</span><span class="hl-1">.</span><span class="hl-0">new</span><span class="hl-1">(</span><span class="hl-5">CCSegmentedButton</span><span class="hl-1">, {</span><span class="hl-5">x</span><span class="hl-1"> = </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-5">y</span><span class="hl-1"> = </span><span class="hl-8">1</span><span class="hl-1">, </span><span class="hl-5">width</span><span class="hl-1"> = </span><span class="hl-8">25</span><span class="hl-1">, </span><span class="hl-5">height</span><span class="hl-1"> = </span><span class="hl-8">1</span><span class="hl-1">}, {</span><span class="hl-2">"Main"</span><span class="hl-1">, </span><span class="hl-2">"Browse"</span><span class="hl-1">, </span><span class="hl-2">"Options"</span><span class="hl-1">}, </span><span class="hl-9">function</span><span class="hl-1">(</span><span class="hl-5">_</span><span class="hl-1">, </span><span class="hl-5">id</span><span class="hl-1">) </span><span class="hl-4">self</span><span class="hl-1">:</span><span class="hl-0">selectTab</span><span class="hl-1">(</span><span class="hl-5">id</span><span class="hl-1">) </span><span class="hl-9">end</span><span class="hl-1">)</span><br/><span class="hl-4">self</span><span class="hl-1">.</span><span class="hl-7">view</span><span class="hl-1">:</span><span class="hl-0">addSubview</span><span class="hl-1">(</span><span class="hl-5">segmentedButton</span><span class="hl-1">)</span>
</code><button type="button">Copy</button></pre>
</div></div></section><section class="tsd-panel tsd-hierarchy" data-refl="3930"><h4>Hierarchy (<a href="../hierarchy.html#CCSegmentedButton">View Summary</a>)</h4><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><ul class="tsd-hierarchy"><li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">CCSegmentedButton</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L23">CCSegmentedButton.ts:23</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h5 class="tsd-index-heading uppercase">Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="#_isenabled" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>is<wbr/>Enabled</span></a>
<a href="#acceptsfirstresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>accepts<wbr/>First<wbr/>Responder</span></a>
<a href="#action" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>action</span></a>
<a href="#isfocused" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>is<wbr/>Focused</span></a>
<a href="#ishidden" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>is<wbr/>Hidden</span></a>
<a href="#needsdraw" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Draw</span></a>
<a href="#needslayout" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Layout</span></a>
<a href="#needsupdateconstraints" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Update<wbr/>Constraints</span></a>
<a href="#nextresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>next<wbr/>Responder?</span></a>
<a href="#subviews" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>subviews</span></a>
<a href="#superview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>superview?</span></a>
<a href="#userinteractionenabled" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>user<wbr/>Interaction<wbr/>Enabled</span></a>
<a href="#window" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>window?</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="#backgroundcolor" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>background<wbr/>Color</span></a>
<a href="#buttonactivecolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Active<wbr/>Color</span></a>
<a href="#buttoncolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Color</span></a>
<a href="#buttoncount" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Count</span></a>
<a href="#buttonselectedcolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Selected<wbr/>Color</span></a>
<a href="#frame" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>frame</span></a>
<a href="#isenabled" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>is<wbr/>Enabled</span></a>
<a href="#selectedbutton" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>selected<wbr/>Button</span></a>
<a href="#textcolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Color</span></a>
<a href="#textdisabledcolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Disabled<wbr/>Color</span></a>
<a href="#textselectedcolor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Selected<wbr/>Color</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="#addbutton" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Button</span></a>
<a href="#addconstraint" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraint</span></a>
<a href="#addconstraints" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraints</span></a>
<a href="#addsubview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Subview</span></a>
<a href="#becomefirstresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>become<wbr/>First<wbr/>Responder</span></a>
<a href="#bringsubviewtofront" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>bring<wbr/>Subview<wbr/>To<wbr/>Front</span></a>
<a href="#converttowindowspace" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>convert<wbr/>To<wbr/>Window<wbr/>Space</span></a>
<a href="#cursorpos" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cursor<wbr/>Pos</span></a>
<a href="#customevent" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>custom<wbr/>Event</span></a>
<a href="#didaddsubview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Add<wbr/>Subview</span></a>
<a href="#didmovetosuperview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Move<wbr/>To<wbr/>Superview</span></a>
<a href="#didremovesubview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Remove<wbr/>Subview</span></a>
<a href="#display" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>display</span></a>
<a href="#draw" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>draw</span></a>
<a href="#getbutton" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Button</span></a>
<a href="#hittest" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hit<wbr/>Test</span></a>
<a href="#horizontalscrollwheel" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>horizontal<wbr/>Scroll<wbr/>Wheel</span></a>
<a href="#interpretkeyevents" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>interpret<wbr/>Key<wbr/>Events</span></a>
<a href="#keydown" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>key<wbr/>Down</span></a>
<a href="#keyup" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>key<wbr/>Up</span></a>
<a href="#layoutsubtree" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>layout<wbr/>Subtree</span></a>
<a href="#menuforevent" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>menu<wbr/>For<wbr/>Event</span></a>
<a href="#mousedown" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Down</span></a>
<a href="#mousedragged" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Dragged</span></a>
<a href="#mouseentered" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Entered</span></a>
<a href="#mouseexited" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Exited</span></a>
<a href="#mousemoved" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Moved</span></a>
<a href="#mouseup" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Up</span></a>
<a href="#noresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>no<wbr/>Responder</span></a>
<a href="#othermousedown" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Down</span></a>
<a href="#othermousedragged" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Dragged</span></a>
<a href="#othermouseup" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Up</span></a>
<a href="#removebutton" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Button</span></a>
<a href="#removeconstraint" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Constraint</span></a>
<a href="#removefromsuperview" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>From<wbr/>Superview</span></a>
<a href="#resignfirstresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resign<wbr/>First<wbr/>Responder</span></a>
<a href="#rightmousedown" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Down</span></a>
<a href="#rightmousedragged" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Dragged</span></a>
<a href="#rightmouseup" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Up</span></a>
<a href="#scrollwheel" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>scroll<wbr/>Wheel</span></a>
<a href="#sendsubviewtoback" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Subview<wbr/>To<wbr/>Back</span></a>
<a href="#setneedsdisplay" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Needs<wbr/>Display</span></a>
<a href="#setneedslayout" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Needs<wbr/>Layout</span></a>
<a href="#textinput" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>text<wbr/>Input</span></a>
<a href="#trytocall" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>try<wbr/>To<wbr/>Call</span></a>
<a href="#validateproposedfirstresponder" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>validate<wbr/>Proposed<wbr/>First<wbr/>Responder</span></a>
<a href="#addconstraintsbycode" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraints<wbr/>By<wbr/>Code</span></a>
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Constructors</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="constructorccsegmentedbutton"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">CCSegmentedButton</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">frame</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">buttons</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">action</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">this</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">sender</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">CCSegmentedButton</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">CCSegmentedButton</a><a href="#constructorccsegmentedbutton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates a new segmented button.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">frame</span>: <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></span><div class="tsd-comment tsd-typography"><p>The frame for the button. This should have a height of 1.</p>
</div></li><li><span><span class="tsd-kind-parameter">buttons</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The text for each button. This must have at least one button.</p>
</div></li><li><span><span class="tsd-kind-parameter">action</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">this</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">sender</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">CCSegmentedButton</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></span><div class="tsd-comment tsd-typography"><p>The action to call when a selection changes</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">CCSegmentedButton</a></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the button text list is empty</p>
</div></div><aside class="tsd-sources"><p>Overrides <a href="CCView.html">CCView</a>.<a href="CCView.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L104">CCSegmentedButton.ts:104</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-protected"><h3 class="tsd-anchor-link" id="_isenabled"><code class="tsd-tag">Protected</code><span>_<wbr/>is<wbr/>Enabled</span><a href="#_isenabled" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">_isEnabled</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L35">CCSegmentedButton.ts:35</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="acceptsfirstresponder"><span>accepts<wbr/>First<wbr/>Responder</span><a href="#acceptsfirstresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">acceptsFirstResponder</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><div class="tsd-comment tsd-typography"><p>Whether the object can become the first responder.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#acceptsfirstresponder">acceptsFirstResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L11">CCResponder.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="action"><span>action</span><a href="#action" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">action</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">this</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">sender</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">CCSegmentedButton</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">selection</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span></div><div class="tsd-comment tsd-typography"><p>The function to call when the selection changes.</p>
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L37">CCSegmentedButton.ts:37</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="isfocused"><span>is<wbr/>Focused</span><a href="#isfocused" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">isFocused</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether the view is currently focused.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#isfocused">isFocused</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L75">CCView.ts:75</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="ishidden"><span>is<wbr/>Hidden</span><a href="#ishidden" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">isHidden</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether the view is hidden.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#ishidden">isHidden</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L50">CCView.ts:50</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="needsdraw"><span>needs<wbr/>Draw</span><a href="#needsdraw" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">needsDraw</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><div class="tsd-comment tsd-typography"><p>Whether the view needs to be redrawn.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#needsdraw">needsDraw</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L77">CCView.ts:77</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="needslayout"><span>needs<wbr/>Layout</span><a href="#needslayout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">needsLayout</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether the view needs to be laid out.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#needslayout">needsLayout</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L79">CCView.ts:79</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="needsupdateconstraints"><span>needs<wbr/>Update<wbr/>Constraints</span><a href="#needsupdateconstraints" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">needsUpdateConstraints</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><div class="tsd-comment tsd-typography"><p>Whether constraints need to be updated.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#needsupdateconstraints">needsUpdateConstraints</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L81">CCView.ts:81</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="nextresponder"><code class="tsd-tag">Optional</code><span>next<wbr/>Responder</span><a href="#nextresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">nextResponder</span><span class="tsd-signature-symbol">?:</span> <a href="CCResponder.html" class="tsd-signature-type tsd-kind-class">CCResponder</a></div><div class="tsd-comment tsd-typography"><p>The next responder in the responder chain.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#nextresponder">nextResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L13">CCResponder.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="subviews"><span>subviews</span><a href="#subviews" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">subviews</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><div class="tsd-comment tsd-typography"><p>The list of subviews inside this view.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#subviews">subviews</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L71">CCView.ts:71</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="superview"><code class="tsd-tag">Optional</code><span>superview</span><a href="#superview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">superview</span><span class="tsd-signature-symbol">?:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></div><div class="tsd-comment tsd-typography"><p>The view that contains this view, if it exists.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#superview">superview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L69">CCView.ts:69</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="userinteractionenabled"><span>user<wbr/>Interaction<wbr/>Enabled</span><a href="#userinteractionenabled" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">userInteractionEnabled</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><div class="tsd-comment tsd-typography"><p>Whether user interaction is enabled for this view.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#userinteractionenabled">userInteractionEnabled</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L52">CCView.ts:52</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="window"><code class="tsd-tag">Optional</code><span>window</span><a href="#window" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">window</span><span class="tsd-signature-symbol">?:</span> <a href="CCWindow.html" class="tsd-signature-type tsd-kind-class">CCWindow</a></div><div class="tsd-comment tsd-typography"><p>The window this view is located inside.</p>
</div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#window">window</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L73">CCView.ts:73</a></li></ul></aside></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Accessors</h2></summary><section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="backgroundcolor"><span>background<wbr/>Color</span><a href="#backgroundcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li><div class="tsd-signature" id="backgroundcolorbackgroundcolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">backgroundColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The background color of the view.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><aside class="tsd-sources"><p>Inherited from CCView.backgroundColor</p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L43">CCView.ts:43</a></li></ul></aside></div></li><li><div class="tsd-signature" id="backgroundcolorbackgroundcolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">backgroundColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from CCView.backgroundColor</p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L44">CCView.ts:44</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="buttonactivecolor"><span>button<wbr/>Active<wbr/>Color</span><a href="#buttonactivecolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="buttonactivecolorbuttonactivecolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">buttonActiveColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the button when clicked.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L46">CCSegmentedButton.ts:46</a></li></ul></aside></div></li><li><div class="tsd-signature" id="buttonactivecolorbuttonactivecolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">buttonActiveColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L47">CCSegmentedButton.ts:47</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="buttoncolor"><span>button<wbr/>Color</span><a href="#buttoncolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="buttoncolorbuttoncolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">buttonColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the button.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L39">CCSegmentedButton.ts:39</a></li></ul></aside></div></li><li><div class="tsd-signature" id="buttoncolorbuttoncolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">buttonColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L40">CCSegmentedButton.ts:40</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="buttoncount"><span>button<wbr/>Count</span><a href="#buttoncount" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="buttoncountbuttoncount"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">buttonCount</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The number of buttons in the segmented button.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L90">CCSegmentedButton.ts:90</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="buttonselectedcolor"><span>button<wbr/>Selected<wbr/>Color</span><a href="#buttonselectedcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="buttonselectedcolorbuttonselectedcolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">buttonSelectedColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the button when in default state.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L53">CCSegmentedButton.ts:53</a></li></ul></aside></div></li><li><div class="tsd-signature" id="buttonselectedcolorbuttonselectedcolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">buttonSelectedColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L54">CCSegmentedButton.ts:54</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="frame"><span>frame</span><a href="#frame" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="frameframe"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">frame</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The position and size of the view.</p>
</div><h4 class="tsd-returns-title">Returns <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></h4><aside class="tsd-sources"><p>Overrides CCView.frame</p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L24">CCSegmentedButton.ts:24</a></li></ul></aside></div></li><li><div class="tsd-signature" id="frameframe-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">frame</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The position and size of the view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides CCView.frame</p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L25">CCSegmentedButton.ts:25</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="isenabled"><span>is<wbr/>Enabled</span><a href="#isenabled" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="isenabledisenabled"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">isEnabled</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Whether the control is enabled.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L30">CCSegmentedButton.ts:30</a></li></ul></aside></div></li><li><div class="tsd-signature" id="isenabledisenabled-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">isEnabled</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">boolean</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L31">CCSegmentedButton.ts:31</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="selectedbutton"><span>selected<wbr/>Button</span><a href="#selectedbutton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="selectedbuttonselectedbutton"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">selectedButton</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The currently selected button.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L81">CCSegmentedButton.ts:81</a></li></ul></aside></div></li><li><div class="tsd-signature" id="selectedbuttonselectedbutton-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">selectedButton</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L82">CCSegmentedButton.ts:82</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="textcolor"><span>text<wbr/>Color</span><a href="#textcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="textcolortextcolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">textColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the text.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L60">CCSegmentedButton.ts:60</a></li></ul></aside></div></li><li><div class="tsd-signature" id="textcolortextcolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">textColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L61">CCSegmentedButton.ts:61</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="textdisabledcolor"><span>text<wbr/>Disabled<wbr/>Color</span><a href="#textdisabledcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="textdisabledcolortextdisabledcolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">textDisabledColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the text when disabled.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L67">CCSegmentedButton.ts:67</a></li></ul></aside></div></li><li><div class="tsd-signature" id="textdisabledcolortextdisabledcolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">textDisabledColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L68">CCSegmentedButton.ts:68</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="textselectedcolor"><span>text<wbr/>Selected<wbr/>Color</span><a href="#textselectedcolor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li><div class="tsd-signature" id="textselectedcolortextselectedcolor"><span class="tsd-signature-keyword">get</span> <span class="tsd-kind-get-signature">textSelectedColor</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The color of the text when selected.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L74">CCSegmentedButton.ts:74</a></li></ul></aside></div></li><li><div class="tsd-signature" id="textselectedcolortextselectedcolor-1"><span class="tsd-signature-keyword">set</span> <span class="tsd-kind-set-signature">textSelectedColor</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">number</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L75">CCSegmentedButton.ts:75</a></li></ul></aside></div></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>Methods</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="addbutton"><span>add<wbr/>Button</span><a href="#addbutton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="addbutton-1"><span class="tsd-kind-call-signature">addButton</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">index</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addbutton-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds a new button to the list of buttons.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">text</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The text for the button</p>
</div></li><li><span><span class="tsd-kind-parameter">index</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = ...</span></span><div class="tsd-comment tsd-typography"><p>The index to place the number after (defaults to the end)</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L127">CCSegmentedButton.ts:127</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="addconstraint"><span>add<wbr/>Constraint</span><a href="#addconstraint" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="addconstraint-1"><span class="tsd-kind-call-signature">addConstraint</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">constraint</span><span class="tsd-signature-symbol">:</span> <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addconstraint-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds a constraint to the view. The first item of the constraint MUST be
this view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">constraint</span>: <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a></span><div class="tsd-comment tsd-typography"><p>The constraint to add</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see">See<a href="#see" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>CCLayoutConstraint.active A safer way to enable a constraint</p>
</div></div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#addconstraint">addConstraint</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L254">CCView.ts:254</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="addconstraints"><span>add<wbr/>Constraints</span><a href="#addconstraints" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="addconstraints-1"><span class="tsd-kind-call-signature">addConstraints</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">constraints</span><span class="tsd-signature-symbol">:</span> <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addconstraints-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds a list of constraints to the view. The first item of the constraints
MUST be this view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">constraints</span>: <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The constraints to add</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see-1">See<a href="#see-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>CCLayoutConstraint.active A safer way to enable a constraint</p>
</div></div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#addconstraints">addConstraints</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L282">CCView.ts:282</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="addsubview"><span>add<wbr/>Subview</span><a href="#addsubview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="addsubview-1"><span class="tsd-kind-call-signature">addSubview</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">view</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addsubview-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds a subview to this view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">view</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view to add</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#addsubview">addSubview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L100">CCView.ts:100</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="becomefirstresponder"><span>become<wbr/>First<wbr/>Responder</span><a href="#becomefirstresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="becomefirstresponder-1"><span class="tsd-kind-call-signature">becomeFirstResponder</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#becomefirstresponder-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Notifies the object that it's about to become the first responder.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>Whether to accept the first responder status</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#becomefirstresponder">becomeFirstResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L19">CCResponder.ts:19</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="bringsubviewtofront"><span>bring<wbr/>Subview<wbr/>To<wbr/>Front</span><a href="#bringsubviewtofront" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="bringsubviewtofront-1"><span class="tsd-kind-call-signature">bringSubviewToFront</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">view</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#bringsubviewtofront-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Moves a subview so it appears on top of its sibling views.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">view</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view to move</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#bringsubviewtofront">bringSubviewToFront</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L115">CCView.ts:115</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="converttowindowspace"><span>convert<wbr/>To<wbr/>Window<wbr/>Space</span><a href="#converttowindowspace" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="converttowindowspace-1"><span class="tsd-kind-call-signature">convertToWindowSpace</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">point</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a><a href="#converttowindowspace-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Returns the window coordinates of the specified point.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">point</span>: <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a></span><div class="tsd-comment tsd-typography"><p>The point to convert</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#converttowindowspace">convertToWindowSpace</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L225">CCView.ts:225</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="cursorpos"><span>cursor<wbr/>Pos</span><a href="#cursorpos" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="cursorpos-1"><span class="tsd-kind-call-signature">cursorPos</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#cursorpos-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>This is used to place a blinking cursor on screen while not drawing.
It's only called on the first responder of a window.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span><a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><p>The position and color of the cursor in window coordinates, or undefined to not place a cursor</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#cursorpos">cursorPos</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L86">CCResponder.ts:86</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="customevent"><span>custom<wbr/>Event</span><a href="#customevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="customevent-1"><span class="tsd-kind-call-signature">customEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#customevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#customevent">customEvent</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L111">CCResponder.ts:111</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="didaddsubview"><span>did<wbr/>Add<wbr/>Subview</span><a href="#didaddsubview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="didaddsubview-1"><span class="tsd-kind-call-signature">didAddSubview</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">view</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#didaddsubview-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Called when a subview was added to this view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">view</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The new view that was added</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#didaddsubview">didAddSubview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L133">CCView.ts:133</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="didmovetosuperview"><span>did<wbr/>Move<wbr/>To<wbr/>Superview</span><a href="#didmovetosuperview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="didmovetosuperview-1"><span class="tsd-kind-call-signature">didMoveToSuperview</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#didmovetosuperview-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Called when the superview of this view changes.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#didmovetosuperview">didMoveToSuperview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L140">CCView.ts:140</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="didremovesubview"><span>did<wbr/>Remove<wbr/>Subview</span><a href="#didremovesubview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="didremovesubview-1"><span class="tsd-kind-call-signature">didRemoveSubview</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">view</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#didremovesubview-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Called when a subview was removed.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">view</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view that was removed</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#didremovesubview">didRemoveSubview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L153">CCView.ts:153</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="display"><span>display</span><a href="#display" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="display-1"><span class="tsd-kind-call-signature">display</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rect</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#display-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Displays a view in the specified rectangle. This should not be called by
other code.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">rect</span>: <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></span><div class="tsd-comment tsd-typography"><p>The rectangle to draw inside</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#display">display</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L192">CCView.ts:192</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="draw"><span>draw</span><a href="#draw" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="draw-1"><span class="tsd-kind-call-signature">draw</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rect</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#draw-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Draws the view inside the specified rectangle. Override this function to
provide custom view types.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">rect</span>: <a href="../types/CCRect.html" class="tsd-signature-type tsd-kind-type-alias">CCRect</a></span><div class="tsd-comment tsd-typography"><p>The rectangle to draw inside</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides <a href="CCView.html">CCView</a>.<a href="CCView.html#draw">draw</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L215">CCSegmentedButton.ts:215</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getbutton"><span>get<wbr/>Button</span><a href="#getbutton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getbutton-1"><span class="tsd-kind-call-signature">getButton</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">index</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#getbutton-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Returns the text for a button by index.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">index</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The index to get</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><p>The text for the button, or undefined if out of range</p>
<aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L118">CCSegmentedButton.ts:118</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="hittest"><span>hit<wbr/>Test</span><a href="#hittest" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="hittest-1"><span class="tsd-kind-call-signature">hitTest</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">point</span><span class="tsd-signature-symbol">:</span> <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#hittest-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Returns the furthest descendant that contains the specified point.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">point</span>: <a href="../types/CCPoint.html" class="tsd-signature-type tsd-kind-type-alias">CCPoint</a></span><div class="tsd-comment tsd-typography"><p>The point to look for</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><p>The deepest view that hit the point, or undefined if none was found</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#hittest">hitTest</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L235">CCView.ts:235</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="horizontalscrollwheel"><span>horizontal<wbr/>Scroll<wbr/>Wheel</span><a href="#horizontalscrollwheel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="horizontalscrollwheel-1"><span class="tsd-kind-call-signature">horizontalScrollWheel</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#horizontalscrollwheel-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#horizontalscrollwheel">horizontalScrollWheel</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L110">CCResponder.ts:110</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="interpretkeyevents"><span>interpret<wbr/>Key<wbr/>Events</span><a href="#interpretkeyevents" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="interpretkeyevents-1"><span class="tsd-kind-call-signature">interpretKeyEvents</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">events</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#interpretkeyevents-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sends a list of key input events to the input manager, which will send
back text input events through <code>insertText(text: string)</code>.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">events</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The input events to send</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#interpretkeyevents">interpretKeyEvents</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L46">CCResponder.ts:46</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="keydown"><span>key<wbr/>Down</span><a href="#keydown" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="keydown-1"><span class="tsd-kind-call-signature">keyDown</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#keydown-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#keydown">keyDown</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L106">CCResponder.ts:106</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="keyup"><span>key<wbr/>Up</span><a href="#keyup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="keyup-1"><span class="tsd-kind-call-signature">keyUp</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#keyup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#keyup">keyUp</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L107">CCResponder.ts:107</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="layoutsubtree"><span>layout<wbr/>Subtree</span><a href="#layoutsubtree" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="layoutsubtree-1"><span class="tsd-kind-call-signature">layoutSubtree</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#layoutsubtree-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Lays out the view hierarchy following constraints.
This should only be called on a superview, which is done automatically.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#layoutsubtree">layoutSubtree</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L638">CCView.ts:638</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="menuforevent"><span>menu<wbr/>For<wbr/>Event</span><a href="#menuforevent" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="menuforevent-1"><span class="tsd-kind-call-signature">menuForEvent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="CCMenu.html" class="tsd-signature-type tsd-kind-class">CCMenu</a> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span><a href="#menuforevent-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Returns a context menu to display on a (usually right-click) event.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span><div class="tsd-comment tsd-typography"><p>The event that triggered the menu</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="CCMenu.html" class="tsd-signature-type tsd-kind-class">CCMenu</a> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><p>A context menu, or <code>nil</code> to not display a menu</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#menuforevent">menuForEvent</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L785">CCView.ts:785</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="mousedown"><span>mouse<wbr/>Down</span><a href="#mousedown" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="mousedown-1"><span class="tsd-kind-call-signature">mouseDown</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mousedown-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides <a href="CCView.html">CCView</a>.<a href="CCView.html#mousedown">mouseDown</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L228">CCSegmentedButton.ts:228</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="mousedragged"><span>mouse<wbr/>Dragged</span><a href="#mousedragged" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="mousedragged-1"><span class="tsd-kind-call-signature">mouseDragged</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mousedragged-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#mousedragged">mouseDragged</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L95">CCResponder.ts:95</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="mouseentered"><span>mouse<wbr/>Entered</span><a href="#mouseentered" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="mouseentered-1"><span class="tsd-kind-call-signature">mouseEntered</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mouseentered-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#mouseentered">mouseEntered</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L98">CCResponder.ts:98</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="mouseexited"><span>mouse<wbr/>Exited</span><a href="#mouseexited" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="mouseexited-1"><span class="tsd-kind-call-signature">mouseExited</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mouseexited-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#mouseexited">mouseExited</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L99">CCResponder.ts:99</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="mousemoved"><span>mouse<wbr/>Moved</span><a href="#mousemoved" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="mousemoved-1"><span class="tsd-kind-call-signature">mouseMoved</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mousemoved-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#mousemoved">mouseMoved</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L97">CCResponder.ts:97</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="mouseup"><span>mouse<wbr/>Up</span><a href="#mouseup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="mouseup-1"><span class="tsd-kind-call-signature">mouseUp</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#mouseup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Overrides <a href="CCView.html">CCView</a>.<a href="CCView.html#mouseup">mouseUp</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L241">CCSegmentedButton.ts:241</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="noresponder"><span>no<wbr/>Responder</span><a href="#noresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="noresponder-1"><span class="tsd-kind-call-signature">noResponder</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#noresponder-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Handles when a method action fails to find a responder.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">method</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The method that was attempted</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#noresponder">noResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L75">CCResponder.ts:75</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="othermousedown"><span>other<wbr/>Mouse<wbr/>Down</span><a href="#othermousedown" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="othermousedown-1"><span class="tsd-kind-call-signature">otherMouseDown</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#othermousedown-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#othermousedown">otherMouseDown</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L103">CCResponder.ts:103</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="othermousedragged"><span>other<wbr/>Mouse<wbr/>Dragged</span><a href="#othermousedragged" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="othermousedragged-1"><span class="tsd-kind-call-signature">otherMouseDragged</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#othermousedragged-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#othermousedragged">otherMouseDragged</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L104">CCResponder.ts:104</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="othermouseup"><span>other<wbr/>Mouse<wbr/>Up</span><a href="#othermouseup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="othermouseup-1"><span class="tsd-kind-call-signature">otherMouseUp</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#othermouseup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#othermouseup">otherMouseUp</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L105">CCResponder.ts:105</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="removebutton"><span>remove<wbr/>Button</span><a href="#removebutton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="removebutton-1"><span class="tsd-kind-call-signature">removeButton</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">text</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#removebutton-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Removes a button from the list.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">text</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The text for the button to remove</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws-1">Throws<a href="#throws-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If this would remove the last remaining button</p>
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L138">CCSegmentedButton.ts:138</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="removebutton-2"><span class="tsd-kind-call-signature">removeButton</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">index</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#removebutton-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Removes a button from the list.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">index</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The index of the button to remove</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-throws"><h4 class="tsd-anchor-link" id="throws-2">Throws<a href="#throws-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>If the index is out of range, or this would remove the last remaining button</p>
</div></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCSegmentedButton.ts#L144">CCSegmentedButton.ts:144</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="removeconstraint"><span>remove<wbr/>Constraint</span><a href="#removeconstraint" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="removeconstraint-1"><span class="tsd-kind-call-signature">removeConstraint</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">constraint</span><span class="tsd-signature-symbol">:</span> <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#removeconstraint-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Removes a constraint from the view. The first item of the constraint MUST
be this view.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">constraint</span>: <a href="CCLayoutConstraint.html" class="tsd-signature-type tsd-kind-class">CCLayoutConstraint</a></span><div class="tsd-comment tsd-typography"><p>The constraint to add</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-see"><h4 class="tsd-anchor-link" id="see-2">See<a href="#see-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>CCLayoutConstraint.active A safer way to enable a constraint</p>
</div></div><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#removeconstraint">removeConstraint</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L267">CCView.ts:267</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="removefromsuperview"><span>remove<wbr/>From<wbr/>Superview</span><a href="#removefromsuperview" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="removefromsuperview-1"><span class="tsd-kind-call-signature">removeFromSuperview</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#removefromsuperview-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Removes this view from its superview.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#removefromsuperview">removeFromSuperview</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L161">CCView.ts:161</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="resignfirstresponder"><span>resign<wbr/>First<wbr/>Responder</span><a href="#resignfirstresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="resignfirstresponder-1"><span class="tsd-kind-call-signature">resignFirstResponder</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#resignfirstresponder-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Notifies the object that it's about to no longer be the first responder.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>Whether to resign first responder status</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#resignfirstresponder">resignFirstResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L25">CCResponder.ts:25</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="rightmousedown"><span>right<wbr/>Mouse<wbr/>Down</span><a href="#rightmousedown" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="rightmousedown-1"><span class="tsd-kind-call-signature">rightMouseDown</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#rightmousedown-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#rightmousedown">rightMouseDown</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L789">CCView.ts:789</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="rightmousedragged"><span>right<wbr/>Mouse<wbr/>Dragged</span><a href="#rightmousedragged" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="rightmousedragged-1"><span class="tsd-kind-call-signature">rightMouseDragged</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#rightmousedragged-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#rightmousedragged">rightMouseDragged</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L101">CCResponder.ts:101</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="rightmouseup"><span>right<wbr/>Mouse<wbr/>Up</span><a href="#rightmouseup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="rightmouseup-1"><span class="tsd-kind-call-signature">rightMouseUp</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#rightmouseup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#rightmouseup">rightMouseUp</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L102">CCResponder.ts:102</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="scrollwheel"><span>scroll<wbr/>Wheel</span><a href="#scrollwheel" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="scrollwheel-1"><span class="tsd-kind-call-signature">scrollWheel</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#scrollwheel-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#scrollwheel">scrollWheel</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L109">CCResponder.ts:109</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="sendsubviewtoback"><span>send<wbr/>Subview<wbr/>To<wbr/>Back</span><a href="#sendsubviewtoback" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="sendsubviewtoback-1"><span class="tsd-kind-call-signature">sendSubviewToBack</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">view</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#sendsubviewtoback-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Moves a subview so it appears under its sibling views.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">view</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view to move</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#sendsubviewtoback">sendSubviewToBack</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L123">CCView.ts:123</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="setneedsdisplay"><span>set<wbr/>Needs<wbr/>Display</span><a href="#setneedsdisplay" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="setneedsdisplay-1"><span class="tsd-kind-call-signature">setNeedsDisplay</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#setneedsdisplay-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the view as requiring a full redraw.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#setneedsdisplay">setNeedsDisplay</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L216">CCView.ts:216</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="setneedslayout"><span>set<wbr/>Needs<wbr/>Layout</span><a href="#setneedslayout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="setneedslayout-1"><span class="tsd-kind-call-signature">setNeedsLayout</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">sender</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">previous</span><span class="tsd-signature-symbol">:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#setneedslayout-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Tells the receiver that the frame or constraints of the sender changed.
This triggers the receiver to update its constraints if any are related
to the sender, and cascades the message up and down throughout the hierarchy.
It will also trigger a cascade on itself if it needs to update constraints.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">sender</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view whose frame and/or constraints changed</p>
</div></li><li><span><span class="tsd-kind-parameter">previous</span>: <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a></span><div class="tsd-comment tsd-typography"><p>The view that called this method, to prevent backtracking</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#setneedslayout">setNeedsLayout</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L468">CCView.ts:468</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="textinput"><span>text<wbr/>Input</span><a href="#textinput" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="textinput-1"><span class="tsd-kind-call-signature">textInput</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#textinput-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#textinput">textInput</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L108">CCResponder.ts:108</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="trytocall"><span>try<wbr/>To<wbr/>Call</span><a href="#trytocall" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="trytocall-1"><span class="tsd-kind-call-signature">tryToCall</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#trytocall-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Attempts to call the specified method on the object, passing the call on
to the next responder if this object doesn't implement it.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">method</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The name of the method to call</p>
</div></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Any parameters to pass to the method</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>Whether a responder was able to respond to the method</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#trytocall">tryToCall</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L57">CCResponder.ts:57</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="validateproposedfirstresponder"><span>validate<wbr/>Proposed<wbr/>First<wbr/>Responder</span><a href="#validateproposedfirstresponder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="validateproposedfirstresponder-1"><span class="tsd-kind-call-signature">validateProposedFirstResponder</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">object</span><span class="tsd-signature-symbol">:</span> <a href="CCResponder.html" class="tsd-signature-type tsd-kind-class">CCResponder</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#validateproposedfirstresponder-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Checks whether the passed object can become the first responder from the
specified event.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">object</span>: <a href="CCResponder.html" class="tsd-signature-type tsd-kind-class">CCResponder</a></span><div class="tsd-comment tsd-typography"><p>The object to check</p>
</div></li><li><span><span class="tsd-kind-parameter">event</span>: <a href="CCEvent.html" class="tsd-signature-type tsd-kind-class">CCEvent</a></span><div class="tsd-comment tsd-typography"><p>The event that was sent</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>Whether the object is allowed to be the first responder</p>
<aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#validateproposedfirstresponder">validateProposedFirstResponder</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCResponder.ts#L35">CCResponder.ts:35</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><h3 class="tsd-anchor-link" id="addconstraintsbycode"><code class="tsd-tag">Static</code><span>add<wbr/>Constraints<wbr/>By<wbr/>Code</span><a href="#addconstraintsbycode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-is-inherited"><div class="tsd-signature tsd-anchor-link" id="addconstraintsbycode-1"><span class="tsd-kind-call-signature">addConstraintsByCode</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">code</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">views</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#addconstraintsbycode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds a number of constraints to views using code. This can simplify
settings constraints by using familiar code syntax instead of lengthy
constraint constructions and activations.</p>
<p>The syntax is fairly simple:</p>
<pre><code><ViewName>.<Attribute> = [<Multiplier> *] <ViewName>.<Attribute> [+|- <Constant>]
<ViewName>.<Attribute> = <Constant>
</code></pre>
<p>The code is processed using Lua as the parser, so it's not strictly
required to be in exactly this format; but mind that operators other than
add/sub/mul/div/unm aren't supported (and division is only valid if the
divisor is a number), and no libraries are available in the environment.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">code</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The constraint code to apply</p>
</div></li><li><span><span class="tsd-kind-parameter">views</span>: <span class="tsd-signature-symbol">{</span> <span class="tsd-signature-symbol">[</span><span class="tsd-kind-index-signature">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]:</span> <a href="CCView.html" class="tsd-signature-type tsd-kind-class">CCView</a> <span class="tsd-signature-symbol">}</span></span><div class="tsd-comment tsd-typography"><p>A key-value map of names of views in the code, to the views they represent</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><p>Inherited from <a href="CCView.html">CCView</a>.<a href="CCView.html#addconstraintsbycode">addConstraintsByCode</a></p><ul><li>Defined in <a href="https://github.com/Phoenix-ComputerCraft/CCKit2/blob/4049cc56d795b8f43442366628194e00848c27ce/src/CCKit2/CCView.ts#L308">CCView.ts:308</a></li></ul></aside></div></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div></div><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-package" name="package"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Package</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div><div class="tsd-language-toggle"><label class="settings-label" for="tsd-language">Language</label><select id="tsd-language"><option value="ts">TypeScript</option><option value="lua">Lua</option></select><script>
let tsdSelectedLanguage = localStorage.getItem("tsd-language") ?? "ts";
let select = document.getElementById("tsd-language");
select.value = tsdSelectedLanguage;
document.documentElement.style.setProperty("--tsd-language-" + tsdSelectedLanguage, "block");
select.onchange = function() {
document.documentElement.style.setProperty("--tsd-language-" + tsdSelectedLanguage, "none");
tsdSelectedLanguage = select.value;
localStorage.setItem("tsd-language", tsdSelectedLanguage);
document.documentElement.style.setProperty("--tsd-language-" + tsdSelectedLanguage, "block");
}
</script></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#_isenabled" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>_<wbr/>is<wbr/>Enabled</span></a><a href="#acceptsfirstresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>accepts<wbr/>First<wbr/>Responder</span></a><a href="#action"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>action</span></a><a href="#isfocused" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>is<wbr/>Focused</span></a><a href="#ishidden" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>is<wbr/>Hidden</span></a><a href="#needsdraw" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Draw</span></a><a href="#needslayout" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Layout</span></a><a href="#needsupdateconstraints" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>needs<wbr/>Update<wbr/>Constraints</span></a><a href="#nextresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>next<wbr/>Responder</span></a><a href="#subviews" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>subviews</span></a><a href="#superview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>superview</span></a><a href="#userinteractionenabled" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>user<wbr/>Interaction<wbr/>Enabled</span></a><a href="#window" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>window</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Accessors</summary><div><a href="#backgroundcolor" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>background<wbr/>Color</span></a><a href="#buttonactivecolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Active<wbr/>Color</span></a><a href="#buttoncolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Color</span></a><a href="#buttoncount"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Count</span></a><a href="#buttonselectedcolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>button<wbr/>Selected<wbr/>Color</span></a><a href="#frame"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>frame</span></a><a href="#isenabled"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>is<wbr/>Enabled</span></a><a href="#selectedbutton"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>selected<wbr/>Button</span></a><a href="#textcolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Color</span></a><a href="#textdisabledcolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Disabled<wbr/>Color</span></a><a href="#textselectedcolor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Accessor"><use href="../assets/icons.svg#icon-262144"></use></svg><span>text<wbr/>Selected<wbr/>Color</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary><div><a href="#addbutton"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Button</span></a><a href="#addconstraint" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraint</span></a><a href="#addconstraints" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraints</span></a><a href="#addsubview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Subview</span></a><a href="#becomefirstresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>become<wbr/>First<wbr/>Responder</span></a><a href="#bringsubviewtofront" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>bring<wbr/>Subview<wbr/>To<wbr/>Front</span></a><a href="#converttowindowspace" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>convert<wbr/>To<wbr/>Window<wbr/>Space</span></a><a href="#cursorpos" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>cursor<wbr/>Pos</span></a><a href="#customevent" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>custom<wbr/>Event</span></a><a href="#didaddsubview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Add<wbr/>Subview</span></a><a href="#didmovetosuperview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Move<wbr/>To<wbr/>Superview</span></a><a href="#didremovesubview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>did<wbr/>Remove<wbr/>Subview</span></a><a href="#display" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>display</span></a><a href="#draw"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>draw</span></a><a href="#getbutton"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Button</span></a><a href="#hittest" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>hit<wbr/>Test</span></a><a href="#horizontalscrollwheel" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>horizontal<wbr/>Scroll<wbr/>Wheel</span></a><a href="#interpretkeyevents" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>interpret<wbr/>Key<wbr/>Events</span></a><a href="#keydown" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>key<wbr/>Down</span></a><a href="#keyup" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>key<wbr/>Up</span></a><a href="#layoutsubtree" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>layout<wbr/>Subtree</span></a><a href="#menuforevent" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>menu<wbr/>For<wbr/>Event</span></a><a href="#mousedown"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Down</span></a><a href="#mousedragged" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Dragged</span></a><a href="#mouseentered" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Entered</span></a><a href="#mouseexited" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Exited</span></a><a href="#mousemoved" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Moved</span></a><a href="#mouseup"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>mouse<wbr/>Up</span></a><a href="#noresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>no<wbr/>Responder</span></a><a href="#othermousedown" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Down</span></a><a href="#othermousedragged" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Dragged</span></a><a href="#othermouseup" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>other<wbr/>Mouse<wbr/>Up</span></a><a href="#removebutton"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Button</span></a><a href="#removeconstraint" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Constraint</span></a><a href="#removefromsuperview" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>From<wbr/>Superview</span></a><a href="#resignfirstresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>resign<wbr/>First<wbr/>Responder</span></a><a href="#rightmousedown" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Down</span></a><a href="#rightmousedragged" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Dragged</span></a><a href="#rightmouseup" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>right<wbr/>Mouse<wbr/>Up</span></a><a href="#scrollwheel" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>scroll<wbr/>Wheel</span></a><a href="#sendsubviewtoback" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Subview<wbr/>To<wbr/>Back</span></a><a href="#setneedsdisplay" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Needs<wbr/>Display</span></a><a href="#setneedslayout" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Needs<wbr/>Layout</span></a><a href="#textinput" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>text<wbr/>Input</span></a><a href="#trytocall" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>try<wbr/>To<wbr/>Call</span></a><a href="#validateproposedfirstresponder" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>validate<wbr/>Proposed<wbr/>First<wbr/>Responder</span></a><a href="#addconstraintsbycode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>add<wbr/>Constraints<wbr/>By<wbr/>Code</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">CCKit2</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>