source: lgi/trunk/fuentes/docs/html/application_8hpp_source.html @ 79

Last change on this file since 79 was 79, checked in by jrpelegrina, 4 years ago

Imported from trusty

File size: 21.2 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6<meta name="generator" content="Doxygen 1.8.9.1"/>
7<title>LGI: include/lgi-1.0/application.hpp Source File</title>
8<link href="tabs.css" rel="stylesheet" type="text/css"/>
9<script type="text/javascript" src="jquery.js"></script>
10<script type="text/javascript" src="dynsections.js"></script>
11<link href="search/search.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="search/searchdata.js"></script>
13<script type="text/javascript" src="search/search.js"></script>
14<script type="text/javascript">
15  $(document).ready(function() { init_search(); });
16</script>
17<link href="doxygen.css" rel="stylesheet" type="text/css" />
18</head>
19<body>
20<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
21<div id="titlearea">
22<table cellspacing="0" cellpadding="0">
23 <tbody>
24 <tr style="height: 56px;">
25  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
26  <td style="padding-left: 0.5em;">
27   <div id="projectname">LGI
28   &#160;<span id="projectnumber">1.0</span>
29   </div>
30   <div id="projectbrief">Lliurex Graphic Interface</div>
31  </td>
32 </tr>
33 </tbody>
34</table>
35</div>
36<!-- end header part -->
37<!-- Generated by Doxygen 1.8.9.1 -->
38<script type="text/javascript">
39var searchBox = new SearchBox("searchBox", "search",false,'Search');
40</script>
41  <div id="navrow1" class="tabs">
42    <ul class="tablist">
43      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
44      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
45      <li><a href="annotated.html"><span>Classes</span></a></li>
46      <li class="current"><a href="files.html"><span>Files</span></a></li>
47      <li>
48        <div id="MSearchBox" class="MSearchBoxInactive">
49        <span class="left">
50          <img id="MSearchSelect" src="search/mag_sel.png"
51               onmouseover="return searchBox.OnSearchSelectShow()"
52               onmouseout="return searchBox.OnSearchSelectHide()"
53               alt=""/>
54          <input type="text" id="MSearchField" value="Search" accesskey="S"
55               onfocus="searchBox.OnSearchFieldFocus(true)" 
56               onblur="searchBox.OnSearchFieldFocus(false)" 
57               onkeyup="searchBox.OnSearchFieldChange(event)"/>
58          </span><span class="right">
59            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
60          </span>
61        </div>
62      </li>
63    </ul>
64  </div>
65  <div id="navrow2" class="tabs2">
66    <ul class="tablist">
67      <li><a href="files.html"><span>File&#160;List</span></a></li>
68      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
69    </ul>
70  </div>
71<!-- window showing the filter options -->
72<div id="MSearchSelectWindow"
73     onmouseover="return searchBox.OnSearchSelectShow()"
74     onmouseout="return searchBox.OnSearchSelectHide()"
75     onkeydown="return searchBox.OnSearchSelectKey(event)">
76</div>
77
78<!-- iframe showing the search results (closed by default) -->
79<div id="MSearchResultsWindow">
80<iframe src="javascript:void(0)" frameborder="0" 
81        name="MSearchResults" id="MSearchResults">
82</iframe>
83</div>
84
85<div id="nav-path" class="navpath">
86  <ul>
87<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6f91bf8d899f296983d00811718161cb.html">lgi-1.0</a></li>  </ul>
88</div>
89</div><!-- top -->
90<div class="header">
91  <div class="headertitle">
92<div class="title">application.hpp</div>  </div>
93</div><!--header-->
94<div class="contents">
95<a href="application_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
96<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#ifndef _LGI_APPLICATION_</span></div>
97<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#define _LGI_APPLICATION_</span></div>
98<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
99<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="window_8hpp.html">window.hpp</a>&quot;</span></div>
100<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
101<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
102<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
103<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="namespacenet.html">    9</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacenet.html">net</a></div>
104<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;{</div>
105<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="namespacenet_1_1lliurex.html">   11</a></span>&#160;        <span class="keyword">namespace </span>lliurex</div>
106<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        {</div>
107<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespacenet_1_1lliurex_1_1lgi.html">   13</a></span>&#160;                <span class="keyword">namespace </span>lgi</div>
108<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;                {</div>
109<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="classnet_1_1lliurex_1_1lgi_1_1_application.html">   15</a></span>&#160;                        <span class="keyword">class </span><a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html">Application</a></div>
110<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;                        {</div>
111<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;                        </div>
112<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;                                </div>
113<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;                                </div>
114<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;                                </div>
115<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;                                <span class="keyword">protected</span>:</div>
116<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;                                </div>
117<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ad45ad113033c871c23fbc2cee6c96e46">   23</a></span>&#160;                                <span class="keyword">static</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html">Application</a> * <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ad45ad113033c871c23fbc2cee6c96e46">instance</a>;</div>
118<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a0787fd600f31d5f32b27abbc35f894e6">   24</a></span>&#160;                                std::string <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a0787fd600f31d5f32b27abbc35f894e6">name</a>;</div>
119<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a6f6c67dd37f7d0191bececececea3198">   25</a></span>&#160;                                std::vector&lt;BaseWindow *&gt; <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a6f6c67dd37f7d0191bececececea3198">windows</a>;</div>
120<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a5bd329390027020d944687cf2b5512ef">   26</a></span>&#160;                                <span class="keywordtype">bool</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a5bd329390027020d944687cf2b5512ef">quit_request</a>;</div>
121<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;                                </div>
122<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;                                </div>
123<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;                                <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a17ac7645ee674b09289d58c6e80dc309">OnMessage</a>(<a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_base_window.html">BaseWindow</a> * window,</div>
124<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;                                <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_layer.html">Layer</a> * layer, <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_widget.html">Widget</a> * widget,</div>
125<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;                                <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_message_event.html">MessageEvent</a> * event);</div>
126<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                                </div>
127<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                                <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a43243197021a77823907ae0f98421f69">CustomEventsDispatch</a>();</div>
128<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                                </div>
129<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                                <span class="keyword">public</span>:</div>
130<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                                </div>
131<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                                <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#af92b9de087410cfaa77f2833199d4c72">Application</a>(std::string name);</div>
132<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                                </div>
133<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                                <span class="keyword">virtual</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ac6cd711105fe3b49c76f6c2bd6614323">~Application</a>();</div>
134<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                                </div>
135<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                                </div>
136<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                                <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#aee2c4f31e1550493a4652a6e27c14464">Set</a>(<a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html">Application</a> * app);</div>
137<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                                </div>
138<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                                <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a86f5c4e814bf9888ba9d4f279420a563">Quit</a>();</div>
139<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                                </div>
140<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                                <span class="keyword">static</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html">Application</a> * <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ab7dad82a8b691746545615d52f99c4d1">Get</a>();</div>
141<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                                </div>
142<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                                                                </div>
143<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                                <span class="keywordtype">void</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a524bf2f0a1ba6d68473a17b6a84228e5">AddWindow</a>(<a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_base_window.html">BaseWindow</a> * window);</div>
144<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                                </div>
145<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                                </div>
146<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;                                <span class="keywordtype">void</span> <a class="code" href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a73d42f6eb1b0ed1e49fef9699d5e9967">Run</a>(<span class="keywordtype">int</span> mode=<a class="code" href="window_8hpp.html#a5c0c7ae029cc47c00b12cc4cbc4de67f">LGI_DISPATCH_EVENTS_FULL</a>);</div>
147<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                                </div>
148<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                                </div>
149<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                                </div>
150<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;                        };</div>
151<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                }</div>
152<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        }</div>
153<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div>
154<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
155<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">#endif</span></div>
156<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
157<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a86f5c4e814bf9888ba9d4f279420a563"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a86f5c4e814bf9888ba9d4f279420a563">net::lliurex::lgi::Application::Quit</a></div><div class="ttdeci">static void Quit()</div></div>
158<div class="ttc" id="window_8hpp_html"><div class="ttname"><a href="window_8hpp.html">window.hpp</a></div></div>
159<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a5bd329390027020d944687cf2b5512ef"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a5bd329390027020d944687cf2b5512ef">net::lliurex::lgi::Application::quit_request</a></div><div class="ttdeci">bool quit_request</div><div class="ttdef"><b>Definition:</b> application.hpp:26</div></div>
160<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_af92b9de087410cfaa77f2833199d4c72"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#af92b9de087410cfaa77f2833199d4c72">net::lliurex::lgi::Application::Application</a></div><div class="ttdeci">Application(std::string name)</div></div>
161<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_layer_html"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_layer.html">net::lliurex::lgi::Layer</a></div><div class="ttdef"><b>Definition:</b> layer.hpp:23</div></div>
162<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_base_window_html"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_base_window.html">net::lliurex::lgi::BaseWindow</a></div><div class="ttdef"><b>Definition:</b> window.hpp:145</div></div>
163<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_ac6cd711105fe3b49c76f6c2bd6614323"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ac6cd711105fe3b49c76f6c2bd6614323">net::lliurex::lgi::Application::~Application</a></div><div class="ttdeci">virtual ~Application()</div></div>
164<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_ab7dad82a8b691746545615d52f99c4d1"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ab7dad82a8b691746545615d52f99c4d1">net::lliurex::lgi::Application::Get</a></div><div class="ttdeci">static Application * Get()</div></div>
165<div class="ttc" id="window_8hpp_html_a5c0c7ae029cc47c00b12cc4cbc4de67f"><div class="ttname"><a href="window_8hpp.html#a5c0c7ae029cc47c00b12cc4cbc4de67f">LGI_DISPATCH_EVENTS_FULL</a></div><div class="ttdeci">#define LGI_DISPATCH_EVENTS_FULL</div><div class="ttdef"><b>Definition:</b> window.hpp:16</div></div>
166<div class="ttc" id="namespacenet_html"><div class="ttname"><a href="namespacenet.html">net</a></div><div class="ttdef"><b>Definition:</b> application.hpp:9</div></div>
167<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a6f6c67dd37f7d0191bececececea3198"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a6f6c67dd37f7d0191bececececea3198">net::lliurex::lgi::Application::windows</a></div><div class="ttdeci">std::vector&lt; BaseWindow * &gt; windows</div><div class="ttdef"><b>Definition:</b> application.hpp:25</div></div>
168<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a17ac7645ee674b09289d58c6e80dc309"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a17ac7645ee674b09289d58c6e80dc309">net::lliurex::lgi::Application::OnMessage</a></div><div class="ttdeci">virtual void OnMessage(BaseWindow *window, Layer *layer, Widget *widget, MessageEvent *event)</div></div>
169<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a73d42f6eb1b0ed1e49fef9699d5e9967"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a73d42f6eb1b0ed1e49fef9699d5e9967">net::lliurex::lgi::Application::Run</a></div><div class="ttdeci">void Run(int mode=LGI_DISPATCH_EVENTS_FULL)</div></div>
170<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_aee2c4f31e1550493a4652a6e27c14464"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#aee2c4f31e1550493a4652a6e27c14464">net::lliurex::lgi::Application::Set</a></div><div class="ttdeci">static void Set(Application *app)</div></div>
171<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a0787fd600f31d5f32b27abbc35f894e6"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a0787fd600f31d5f32b27abbc35f894e6">net::lliurex::lgi::Application::name</a></div><div class="ttdeci">std::string name</div><div class="ttdef"><b>Definition:</b> application.hpp:24</div></div>
172<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html">net::lliurex::lgi::Application</a></div><div class="ttdef"><b>Definition:</b> application.hpp:15</div></div>
173<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_message_event_html"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_message_event.html">net::lliurex::lgi::MessageEvent</a></div><div class="ttdef"><b>Definition:</b> events.hpp:238</div></div>
174<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a524bf2f0a1ba6d68473a17b6a84228e5"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a524bf2f0a1ba6d68473a17b6a84228e5">net::lliurex::lgi::Application::AddWindow</a></div><div class="ttdeci">void AddWindow(BaseWindow *window)</div></div>
175<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_a43243197021a77823907ae0f98421f69"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#a43243197021a77823907ae0f98421f69">net::lliurex::lgi::Application::CustomEventsDispatch</a></div><div class="ttdeci">virtual int CustomEventsDispatch()</div></div>
176<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_application_html_ad45ad113033c871c23fbc2cee6c96e46"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_application.html#ad45ad113033c871c23fbc2cee6c96e46">net::lliurex::lgi::Application::instance</a></div><div class="ttdeci">static Application * instance</div><div class="ttdef"><b>Definition:</b> application.hpp:23</div></div>
177<div class="ttc" id="classnet_1_1lliurex_1_1lgi_1_1_widget_html"><div class="ttname"><a href="classnet_1_1lliurex_1_1lgi_1_1_widget.html">net::lliurex::lgi::Widget</a></div><div class="ttdef"><b>Definition:</b> widget.hpp:18</div></div>
178</div><!-- fragment --></div><!-- contents -->
179<!-- start footer part -->
180<hr class="footer"/><address class="footer"><small>
181Generated on Fri Jan 29 2016 13:25:45 for LGI by &#160;<a href="http://www.doxygen.org/index.html">
182<img class="footer" src="doxygen.png" alt="doxygen"/>
183</a> 1.8.9.1
184</small></address>
185</body>
186</html>
Note: See TracBrowser for help on using the repository browser.