-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_test_dir_browse_control_8h_source.html
228 lines (226 loc) · 37.2 KB
/
_test_dir_browse_control_8h_source.html
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
217
218
219
220
221
222
223
224
225
226
227
228
<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iPlug 2: TestDirBrowseControl.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 80px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">iPlug2 - C++ Audio Plug-in Framework
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_c70994b0d9919a11b368e677cb7f323c.html">IGraphics</a></li><li class="navelem"><a class="el" href="dir_b13fc9fb79eb1e19d3aa0747e2e621c7.html">Controls</a></li><li class="navelem"><a class="el" href="dir_63c81f22357c66696c5d0f2f825c4b38.html">Test</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">TestDirBrowseControl.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_test_dir_browse_control_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> ==============================================================================</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> See LICENSE.txt for more info.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"></span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> ==============================================================================</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment">*/</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include "<a class="code" href="_i_control_8h.html">IControl.h</a>"</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "<a class="code" href="_i_plug_paths_8h.html">IPlugPaths.h</a>"</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="class_test_dir_browse_control.html"> 23</a></span><span class="keyword">class </span><a class="code hl_class" href="class_test_dir_browse_control.html">TestDirBrowseControl</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_i_dir_browse_control_base.html">IDirBrowseControlBase</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span>{</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_class" href="class_test_dir_browse_control.html">TestDirBrowseControl</a>(<a class="code hl_struct" href="struct_i_r_e_c_t.html">IRECT</a> rect, <span class="keyword">const</span> <span class="keywordtype">char</span>* extension, <span class="keyword">const</span> <span class="keywordtype">char</span>* path)</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> : <a class="code hl_class" href="class_i_dir_browse_control_base.html">IDirBrowseControlBase</a>(rect, extension)</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> mLabel.SetFormatted(32, <span class="stringliteral">"Select a %s file"</span>, extension);</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> SetPath(path);</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_function" href="class_i_control.html#ad9b74810f327007322f12f1110e032a6">SetTooltip</a>(<span class="stringliteral">"TestDirBrowseControl"</span>);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> }</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_test_dir_browse_control.html#ac84cf0759c5e5eeac72679d2c0165339"> 34</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_test_dir_browse_control.html#ac84cf0759c5e5eeac72679d2c0165339">OnResize</a>()<span class="keyword"> override</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> mButtonRect = mRECT.<a class="code hl_function" href="struct_i_r_e_c_t.html#a433e5b91055541b18ea1fa4849874127">GetCentredInside</a>(mRECT.<a class="code hl_function" href="struct_i_r_e_c_t.html#a9d21ea21ff622e370664267c12cc7c24">W</a>()-10.f, 20.f);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> mArrowRect = mButtonRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#a3ae6630740e1aaa741c6edd5a66c0cda">GetFromRight</a>(20.).<a class="code hl_function" href="struct_i_r_e_c_t.html#af020b51247a87c9427041307c53dd6d7">GetPadded</a>(-5.);</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> mUsePlatformMenuTextRect = mRECT.<a class="code hl_function" href="struct_i_r_e_c_t.html#a3efb17b8f8b210201597b04ec7daa05d">GetFromBottom</a>(30).<a class="code hl_function" href="struct_i_r_e_c_t.html#af020b51247a87c9427041307c53dd6d7">GetPadded</a>(-5);</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> mUsePlatformMenuButtonRect = mUsePlatformMenuTextRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#a3ae6630740e1aaa741c6edd5a66c0cda">GetFromRight</a>(20.).<a class="code hl_function" href="struct_i_r_e_c_t.html#af020b51247a87c9427041307c53dd6d7">GetPadded</a>(-5.);</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> }</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="class_test_dir_browse_control.html#a24cd07c44562e038c4339232724f76ec"> 42</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_test_dir_browse_control.html#a24cd07c44562e038c4339232724f76ec">Draw</a>(<a class="code hl_class" href="class_i_graphics.html">IGraphics</a>& g)<span class="keyword"> override</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> g.<a class="code hl_function" href="class_i_graphics.html#a331e896fe3f5a00a111df11c75d8ca3b">DrawDottedRect</a>(COLOR_BLACK, mRECT);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> g.<a class="code hl_function" href="class_i_graphics.html#a7056c9288ed66e21b8c9f424054677b2">FillRect</a>(<a class="code hl_variable" href="class_i_control.html#a3696450db56287d1fe69191856759004">mMouseIsOver</a> ? COLOR_TRANSLUCENT : COLOR_TRANSPARENT, mRECT);</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> g.<a class="code hl_function" href="class_i_graphics.html#a7056c9288ed66e21b8c9f424054677b2">FillRect</a>(COLOR_WHITE, mButtonRect);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> g.<a class="code hl_function" href="class_i_graphics.html#a1af84cb75ed09bae3deac0ec32076ddd">DrawText</a>(mText, mLabel.Get(), mButtonRect);</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> g.<a class="code hl_function" href="class_i_graphics.html#a9d2ed1c8a03d92d1d2421cf8d152123f">FillTriangle</a>(COLOR_GRAY, mArrowRect.L, mArrowRect.T, mArrowRect.R, mArrowRect.T, mArrowRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#ae7ab9b583d33dab5f0da516a9f3a2b17">MW</a>(), mArrowRect.B);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> g.<a class="code hl_function" href="class_i_graphics.html#a1af84cb75ed09bae3deac0ec32076ddd">DrawText</a>(<a class="code hl_struct" href="struct_i_text.html">IText</a>(DEFAULT_TEXT_SIZE, EAlign::Near), <span class="stringliteral">"Use platform menu"</span>, mUsePlatformMenuTextRect);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> g.<a class="code hl_function" href="class_i_graphics.html#a0a7bba668c103968e96fad159173eff3">DrawRect</a>(COLOR_BLACK, mUsePlatformMenuButtonRect);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">if</span> (mUsePlatformMenu)</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> g.<a class="code hl_function" href="class_i_graphics.html#a7056c9288ed66e21b8c9f424054677b2">FillRect</a>(COLOR_BLACK, mUsePlatformMenuButtonRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#af020b51247a87c9427041307c53dd6d7">GetPadded</a>(-2));</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="class_test_dir_browse_control.html#abe9f04a0ecdcefc5e849096e0285c0aa"> 56</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_test_dir_browse_control.html#abe9f04a0ecdcefc5e849096e0285c0aa">OnPopupMenuSelection</a>(<a class="code hl_class" href="class_i_popup_menu.html">IPopupMenu</a>* pMenu, <span class="keywordtype">int</span> valIdx)<span class="keyword"> override</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">if</span> (pMenu)</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> {</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_class" href="class_i_popup_menu_1_1_item.html">IPopupMenu::Item</a>* pItem = pMenu->GetChosenItem();</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> (pItem)</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> mSelectedItemIndex = mItems.Find(pItem);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> mLabel.Set(pItem->GetText());</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_function" href="class_i_dir_browse_control_base.html#a8117b71119ecde29f4246188e1176b00">CheckSelectedItem</a>();</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_function" href="class_i_control.html#af8c805c09b1a89f44aec43026fcb1fe7">SetDirty</a>(<span class="keyword">false</span>);</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="class_test_dir_browse_control.html#ae2456138ca809cb846f0d1064bb2f9b9"> 73</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_test_dir_browse_control.html#ae2456138ca809cb846f0d1064bb2f9b9">OnMouseDown</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keyword">const</span> <a class="code hl_struct" href="struct_i_mouse_mod.html">IMouseMod</a>& mod)<span class="keyword"> override</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="keyword"> </span>{</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">if</span> (mButtonRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#ae9a174b15dfe8e019b91833c1c9faa30">Contains</a>(x, y))</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> {</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_function" href="class_i_control.html#a22b976d26b6670a8b84457a999dc7ce5">GetUI</a>()-><a class="code hl_function" href="class_i_graphics.html#a1e810f7c16d23717ad4e9e546f4f522b">CreatePopupMenu</a>(*<span class="keyword">this</span>, mMainMenu, x, y);</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">else</span> <span class="keywordflow">if</span> (mUsePlatformMenuButtonRect.<a class="code hl_function" href="struct_i_r_e_c_t.html#ae9a174b15dfe8e019b91833c1c9faa30">Contains</a>(x, y))</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> {</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> mUsePlatformMenu = !mUsePlatformMenu;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">if</span> (!mUsePlatformMenu)</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_function" href="class_i_control.html#a22b976d26b6670a8b84457a999dc7ce5">GetUI</a>()-><a class="code hl_function" href="class_i_graphics.html#a11ecdf445769da518b5366ec7e27da36">AttachPopupMenuControl</a>();</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">else</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <a class="code hl_function" href="class_i_control.html#a22b976d26b6670a8b84457a999dc7ce5">GetUI</a>()-><a class="code hl_function" href="class_i_graphics.html#a3fec6ae18bb1c20ef464b3ddeed11fe9">RemovePopupMenuControl</a>();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <a class="code hl_function" href="class_i_control.html#af8c805c09b1a89f44aec43026fcb1fe7">SetDirty</a>(<span class="keyword">false</span>);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">void</span> SetPath(<span class="keyword">const</span> <span class="keywordtype">char</span>* path)</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_function" href="class_i_dir_browse_control_base.html#ae6796cbfed086549f4ab50f57a50d510">AddPath</a>(path, <span class="stringliteral">""</span>);</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_function" href="class_i_dir_browse_control_base.html#abfcd3943d771dee725acd81b0fffda52">SetupMenu</a>();</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> }</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> WDL_String mLabel;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">bool</span> mUsePlatformMenu = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <a class="code hl_struct" href="struct_i_r_e_c_t.html">IRECT</a> mButtonRect;</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <a class="code hl_struct" href="struct_i_r_e_c_t.html">IRECT</a> mArrowRect;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_struct" href="struct_i_r_e_c_t.html">IRECT</a> mUsePlatformMenuTextRect;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_struct" href="struct_i_r_e_c_t.html">IRECT</a> mUsePlatformMenuButtonRect;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span>};</div>
<div class="ttc" id="a_i_control_8h_html"><div class="ttname"><a href="_i_control_8h.html">IControl.h</a></div><div class="ttdoc">This file contains the base IControl implementation, along with some base classes for specific types ...</div></div>
<div class="ttc" id="a_i_plug_paths_8h_html"><div class="ttname"><a href="_i_plug_paths_8h.html">IPlugPaths.h</a></div><div class="ttdoc">Common paths useful for plug-ins.</div></div>
<div class="ttc" id="aclass_i_control_html_a22b976d26b6670a8b84457a999dc7ce5"><div class="ttname"><a href="class_i_control.html#a22b976d26b6670a8b84457a999dc7ce5">IControl::GetUI</a></div><div class="ttdeci">IGraphics * GetUI()</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8h_source.html#l00472">IControl.h:472</a></div></div>
<div class="ttc" id="aclass_i_control_html_a3696450db56287d1fe69191856759004"><div class="ttname"><a href="class_i_control.html#a3696450db56287d1fe69191856759004">IControl::mMouseIsOver</a></div><div class="ttdeci">bool mMouseIsOver</div><div class="ttdoc">if mGraphics::mHandleMouseOver = true, this will be true when the mouse is over control.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8h_source.html#l00565">IControl.h:565</a></div></div>
<div class="ttc" id="aclass_i_control_html_ad9b74810f327007322f12f1110e032a6"><div class="ttname"><a href="class_i_control.html#ad9b74810f327007322f12f1110e032a6">IControl::SetTooltip</a></div><div class="ttdeci">IControl * SetTooltip(const char *str)</div><div class="ttdoc">Set a tooltip for the control.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8h_source.html#l00221">IControl.h:221</a></div></div>
<div class="ttc" id="aclass_i_control_html_af8c805c09b1a89f44aec43026fcb1fe7"><div class="ttname"><a href="class_i_control.html#af8c805c09b1a89f44aec43026fcb1fe7">IControl::SetDirty</a></div><div class="ttdeci">virtual void SetDirty(bool triggerAction=true, int valIdx=kNoValIdx)</div><div class="ttdoc">Mark the control as dirty, i.e.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8cpp_source.html#l00198">IControl.cpp:198</a></div></div>
<div class="ttc" id="aclass_i_dir_browse_control_base_html"><div class="ttname"><a href="class_i_dir_browse_control_base.html">IDirBrowseControlBase</a></div><div class="ttdoc">An abstract IControl base class that you can inherit from in order to make a control that pops up a m...</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8h_source.html#l01904">IControl.h:1905</a></div></div>
<div class="ttc" id="aclass_i_dir_browse_control_base_html_a8117b71119ecde29f4246188e1176b00"><div class="ttname"><a href="class_i_dir_browse_control_base.html#a8117b71119ecde29f4246188e1176b00">IDirBrowseControlBase::CheckSelectedItem</a></div><div class="ttdeci">void CheckSelectedItem()</div><div class="ttdoc">Check the currently selected menu item.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8cpp_source.html#l01122">IControl.cpp:1122</a></div></div>
<div class="ttc" id="aclass_i_dir_browse_control_base_html_abfcd3943d771dee725acd81b0fffda52"><div class="ttname"><a href="class_i_dir_browse_control_base.html#abfcd3943d771dee725acd81b0fffda52">IDirBrowseControlBase::SetupMenu</a></div><div class="ttdeci">void SetupMenu()</div><div class="ttdoc">Call after adding one or more paths, to populate the menu.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8cpp_source.html#l01052">IControl.cpp:1052</a></div></div>
<div class="ttc" id="aclass_i_dir_browse_control_base_html_ae6796cbfed086549f4ab50f57a50d510"><div class="ttname"><a href="class_i_dir_browse_control_base.html#ae6796cbfed086549f4ab50f57a50d510">IDirBrowseControlBase::AddPath</a></div><div class="ttdeci">void AddPath(const char *path, const char *displayText)</div><div class="ttdoc">Used to add a path to scan for files.</div><div class="ttdef"><b>Definition:</b> <a href="_i_control_8cpp_source.html#l01029">IControl.cpp:1029</a></div></div>
<div class="ttc" id="aclass_i_graphics_html"><div class="ttname"><a href="class_i_graphics.html">IGraphics</a></div><div class="ttdoc">The lowest level base class of an IGraphics context.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8h_source.html#l00082">IGraphics.h:86</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a0a7bba668c103968e96fad159173eff3"><div class="ttname"><a href="class_i_graphics.html#a0a7bba668c103968e96fad159173eff3">IGraphics::DrawRect</a></div><div class="ttdeci">virtual void DrawRect(const IColor &color, const IRECT &bounds, const IBlend *pBlend=0, float thickness=1.f)</div><div class="ttdoc">Draw a rectangle to the graphics context.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l02505">IGraphics.cpp:2505</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a11ecdf445769da518b5366ec7e27da36"><div class="ttname"><a href="class_i_graphics.html#a11ecdf445769da518b5366ec7e27da36">IGraphics::AttachPopupMenuControl</a></div><div class="ttdeci">void AttachPopupMenuControl(const IText &text=DEFAULT_TEXT, const IRECT &bounds=IRECT())</div><div class="ttdoc">Attach a control for pop-up menus, to override platform style menus.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l00364">IGraphics.cpp:364</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a1af84cb75ed09bae3deac0ec32076ddd"><div class="ttname"><a href="class_i_graphics.html#a1af84cb75ed09bae3deac0ec32076ddd">IGraphics::DrawText</a></div><div class="ttdeci">void DrawText(const IText &text, const char *str, const IRECT &bounds, const IBlend *pBlend=0)</div><div class="ttdoc">Draw some text to the graphics context in a specific rectangle.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l00678">IGraphics.cpp:678</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a1e810f7c16d23717ad4e9e546f4f522b"><div class="ttname"><a href="class_i_graphics.html#a1e810f7c16d23717ad4e9e546f4f522b">IGraphics::CreatePopupMenu</a></div><div class="ttdeci">void CreatePopupMenu(IControl &control, IPopupMenu &menu, const IRECT &bounds, int valIdx=0)</div><div class="ttdoc">Shows a pop up/contextual menu in relation to a rectangular region of the graphics context.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l01968">IGraphics.cpp:1968</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a331e896fe3f5a00a111df11c75d8ca3b"><div class="ttname"><a href="class_i_graphics.html#a331e896fe3f5a00a111df11c75d8ca3b">IGraphics::DrawDottedRect</a></div><div class="ttdeci">virtual void DrawDottedRect(const IColor &color, const IRECT &bounds, const IBlend *pBlend=0, float thickness=1.f, float dashLen=2.f)</div><div class="ttdoc">Draw a dotted rectangle to the graphics context.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l02547">IGraphics.cpp:2547</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a3fec6ae18bb1c20ef464b3ddeed11fe9"><div class="ttname"><a href="class_i_graphics.html#a3fec6ae18bb1c20ef464b3ddeed11fe9">IGraphics::RemovePopupMenuControl</a></div><div class="ttdeci">void RemovePopupMenuControl()</div><div class="ttdoc">Remove the IGraphics popup menu, use platform popup menu if available.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l00373">IGraphics.cpp:373</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a7056c9288ed66e21b8c9f424054677b2"><div class="ttname"><a href="class_i_graphics.html#a7056c9288ed66e21b8c9f424054677b2">IGraphics::FillRect</a></div><div class="ttdeci">virtual void FillRect(const IColor &color, const IRECT &bounds, const IBlend *pBlend=0)</div><div class="ttdoc">Fill a rectangular region of the graphics context with a color.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l02577">IGraphics.cpp:2577</a></div></div>
<div class="ttc" id="aclass_i_graphics_html_a9d2ed1c8a03d92d1d2421cf8d152123f"><div class="ttname"><a href="class_i_graphics.html#a9d2ed1c8a03d92d1d2421cf8d152123f">IGraphics::FillTriangle</a></div><div class="ttdeci">virtual void FillTriangle(const IColor &color, float x1, float y1, float x2, float y2, float x3, float y3, const IBlend *pBlend=0)</div><div class="ttdoc">Fill a triangle with a color.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_8cpp_source.html#l02570">IGraphics.cpp:2570</a></div></div>
<div class="ttc" id="aclass_i_popup_menu_1_1_item_html"><div class="ttname"><a href="class_i_popup_menu_1_1_item.html">IPopupMenu::Item</a></div><div class="ttdoc">A class to specify an item of a pop up menu.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_popup_menu_8h_source.html#l00044">IGraphicsPopupMenu.h:45</a></div></div>
<div class="ttc" id="aclass_i_popup_menu_html"><div class="ttname"><a href="class_i_popup_menu.html">IPopupMenu</a></div><div class="ttdoc">A class for setting the contents of a pop up menu.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_popup_menu_8h_source.html#l00039">IGraphicsPopupMenu.h:40</a></div></div>
<div class="ttc" id="aclass_test_dir_browse_control_html"><div class="ttname"><a href="class_test_dir_browse_control.html">TestDirBrowseControl</a></div><div class="ttdoc">Control to test IDirBrowseControlBase.</div><div class="ttdef"><b>Definition:</b> <a href="_test_dir_browse_control_8h_source.html#l00023">TestDirBrowseControl.h:24</a></div></div>
<div class="ttc" id="aclass_test_dir_browse_control_html_a24cd07c44562e038c4339232724f76ec"><div class="ttname"><a href="class_test_dir_browse_control.html#a24cd07c44562e038c4339232724f76ec">TestDirBrowseControl::Draw</a></div><div class="ttdeci">void Draw(IGraphics &g) override</div><div class="ttdoc">Draw the control to the graphics context.</div><div class="ttdef"><b>Definition:</b> <a href="_test_dir_browse_control_8h_source.html#l00042">TestDirBrowseControl.h:42</a></div></div>
<div class="ttc" id="aclass_test_dir_browse_control_html_abe9f04a0ecdcefc5e849096e0285c0aa"><div class="ttname"><a href="class_test_dir_browse_control.html#abe9f04a0ecdcefc5e849096e0285c0aa">TestDirBrowseControl::OnPopupMenuSelection</a></div><div class="ttdeci">void OnPopupMenuSelection(IPopupMenu *pMenu, int valIdx) override</div><div class="ttdoc">Implement this method to handle popup menu selection after IGraphics::CreatePopupMenu/IControlPromptU...</div><div class="ttdef"><b>Definition:</b> <a href="_test_dir_browse_control_8h_source.html#l00056">TestDirBrowseControl.h:56</a></div></div>
<div class="ttc" id="aclass_test_dir_browse_control_html_ac84cf0759c5e5eeac72679d2c0165339"><div class="ttname"><a href="class_test_dir_browse_control.html#ac84cf0759c5e5eeac72679d2c0165339">TestDirBrowseControl::OnResize</a></div><div class="ttdeci">void OnResize() override</div><div class="ttdoc">Called when IControl is constructed or resized using SetRect().</div><div class="ttdef"><b>Definition:</b> <a href="_test_dir_browse_control_8h_source.html#l00034">TestDirBrowseControl.h:34</a></div></div>
<div class="ttc" id="aclass_test_dir_browse_control_html_ae2456138ca809cb846f0d1064bb2f9b9"><div class="ttname"><a href="class_test_dir_browse_control.html#ae2456138ca809cb846f0d1064bb2f9b9">TestDirBrowseControl::OnMouseDown</a></div><div class="ttdeci">void OnMouseDown(float x, float y, const IMouseMod &mod) override</div><div class="ttdoc">Implement this method to respond to a mouse down event on this control.</div><div class="ttdef"><b>Definition:</b> <a href="_test_dir_browse_control_8h_source.html#l00073">TestDirBrowseControl.h:73</a></div></div>
<div class="ttc" id="astruct_i_mouse_mod_html"><div class="ttname"><a href="struct_i_mouse_mod.html">IMouseMod</a></div><div class="ttdoc">Used to manage mouse modifiers i.e.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l01695">IGraphicsStructs.h:1696</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html"><div class="ttname"><a href="struct_i_r_e_c_t.html">IRECT</a></div><div class="ttdoc">Used to manage a rectangular area, independent of draw class/platform.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l00748">IGraphicsStructs.h:749</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_a3ae6630740e1aaa741c6edd5a66c0cda"><div class="ttname"><a href="struct_i_r_e_c_t.html#a3ae6630740e1aaa741c6edd5a66c0cda">IRECT::GetFromRight</a></div><div class="ttdeci">IRECT GetFromRight(float amount) const</div><div class="ttdoc">Get a subrect of this IRECT bounded in X by 'amount' and the right edge.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l01060">IGraphicsStructs.h:1060</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_a3efb17b8f8b210201597b04ec7daa05d"><div class="ttname"><a href="struct_i_r_e_c_t.html#a3efb17b8f8b210201597b04ec7daa05d">IRECT::GetFromBottom</a></div><div class="ttdeci">IRECT GetFromBottom(float amount) const</div><div class="ttdoc">Get a subrect of this IRECT bounded in Y by 'amount' and the bottom edge.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l01050">IGraphicsStructs.h:1050</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_a433e5b91055541b18ea1fa4849874127"><div class="ttname"><a href="struct_i_r_e_c_t.html#a433e5b91055541b18ea1fa4849874127">IRECT::GetCentredInside</a></div><div class="ttdeci">IRECT GetCentredInside(const IRECT &sr) const</div><div class="ttdoc">Get a rectangle the size of sr but with the same center point as this rectangle.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l01586">IGraphicsStructs.h:1586</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_a9d21ea21ff622e370664267c12cc7c24"><div class="ttname"><a href="struct_i_r_e_c_t.html#a9d21ea21ff622e370664267c12cc7c24">IRECT::W</a></div><div class="ttdeci">float W() const</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l00824">IGraphicsStructs.h:824</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_ae7ab9b583d33dab5f0da516a9f3a2b17"><div class="ttname"><a href="struct_i_r_e_c_t.html#ae7ab9b583d33dab5f0da516a9f3a2b17">IRECT::MW</a></div><div class="ttdeci">float MW() const</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l00830">IGraphicsStructs.h:830</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_ae9a174b15dfe8e019b91833c1c9faa30"><div class="ttname"><a href="struct_i_r_e_c_t.html#ae9a174b15dfe8e019b91833c1c9faa30">IRECT::Contains</a></div><div class="ttdeci">bool Contains(const IRECT &rhs) const</div><div class="ttdoc">Returns true if this IRECT completely contains rhs.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l00874">IGraphicsStructs.h:874</a></div></div>
<div class="ttc" id="astruct_i_r_e_c_t_html_af020b51247a87c9427041307c53dd6d7"><div class="ttname"><a href="struct_i_r_e_c_t.html#af020b51247a87c9427041307c53dd6d7">IRECT::GetPadded</a></div><div class="ttdeci">IRECT GetPadded(float padding) const</div><div class="ttdoc">Get a copy of this IRECT with each value padded by padding N.B.</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l01340">IGraphicsStructs.h:1340</a></div></div>
<div class="ttc" id="astruct_i_text_html"><div class="ttname"><a href="struct_i_text.html">IText</a></div><div class="ttdoc">IText is used to manage font and text/text entry style for a piece of text on the UI,...</div><div class="ttdef"><b>Definition:</b> <a href="_i_graphics_structs_8h_source.html#l00661">IGraphicsStructs.h:662</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>