<ahref="procui_8h.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="preprocessor">#pragma once</span></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga918dbc5c465f8c5f2b9f376cd9354df9"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga918dbc5c465f8c5f2b9f376cd9354df9">ProcUIIsRunning</a></div><divclass="ttdeci">BOOL ProcUIIsRunning()</div><divclass="ttdoc">Determines whether the application is running.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ggade66d5052242731e3eac46278b7a4f2ba71de7c3c1b9407f64cea7bb9036c3d36"><divclass="ttname"><ahref="group__proc__ui__procui.html#ggade66d5052242731e3eac46278b7a4f2ba71de7c3c1b9407f64cea7bb9036c3d36">PROCUI_STATUS_IN_FOREGROUND</a></div><divclass="ttdeci">@ PROCUI_STATUS_IN_FOREGROUND</div><divclass="ttdoc">The application is in the foreground. All resources may be used.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00077">procui.h:77</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8aa4a9e50cd1bb571f73ce31a9dfbe0eeb"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8aa4a9e50cd1bb571f73ce31a9dfbe0eeb">PROCUI_CALLBACK_NET_IO_START</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_NET_IO_START</div><divclass="ttdoc">Application may start using networking.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00067">procui.h:67</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8afe1590ca1394fd33548bc1fc6d5f33c8"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8afe1590ca1394fd33548bc1fc6d5f33c8">PROCUI_CALLBACK_EXIT</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_EXIT</div><divclass="ttdoc">Application must exit.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00065">procui.h:65</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gaad92b1b2283d9e294ca4ee0b4f42fd92"><divclass="ttname"><ahref="group__proc__ui__procui.html#gaad92b1b2283d9e294ca4ee0b4f42fd92">ProcUISaveCallbackEx</a></div><divclass="ttdeci">uint32_t(* ProcUISaveCallbackEx)(void *)</div><divclass="ttdoc">Called when the application needs to save.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00051">procui.h:51</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8a2fa189187f6095d962eccd00231be94e"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8a2fa189187f6095d962eccd00231be94e">PROCUI_CALLBACK_RELEASE</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_RELEASE</div><divclass="ttdoc">Application must release the foreground.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00063">procui.h:63</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gafe451bcd44c4f7b967b2beec38df0517"><divclass="ttname"><ahref="group__proc__ui__procui.html#gafe451bcd44c4f7b967b2beec38df0517">ProcUIRegisterCallback</a></div><divclass="ttdeci">void ProcUIRegisterCallback(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority)</div><divclass="ttdoc">Register a callback for certain ProcUI events.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ggade66d5052242731e3eac46278b7a4f2ba3a9c97294e921391b07c5ead02678030"><divclass="ttname"><ahref="group__proc__ui__procui.html#ggade66d5052242731e3eac46278b7a4f2ba3a9c97294e921391b07c5ead02678030">PROCUI_STATUS_RELEASE_FOREGROUND</a></div><divclass="ttdeci">@ PROCUI_STATUS_RELEASE_FOREGROUND</div><divclass="ttdoc">The application must release the foregound - see ProcUIDrawDoneRelease()</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00081">procui.h:81</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gab32d41d50911feff627b2b2bc535d00f"><divclass="ttname"><ahref="group__proc__ui__procui.html#gab32d41d50911feff627b2b2bc535d00f">ProcUIProcessMessages</a></div><divclass="ttdeci">ProcUIStatus ProcUIProcessMessages(BOOL block)</div><divclass="ttdoc">Main runloop for ProcUI.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga6eee334c8cccc14367c7d972d6d00987"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga6eee334c8cccc14367c7d972d6d00987">ProcUIShutdown</a></div><divclass="ttdeci">void ProcUIShutdown()</div><divclass="ttdoc">Shut down the ProcUI library for the current application.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8a651ffc0a735522261ba2e33ae71e05ed"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8a651ffc0a735522261ba2e33ae71e05ed">PROCUI_CALLBACK_HOME_BUTTON_DENIED</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_HOME_BUTTON_DENIED</div><divclass="ttdoc">The user attempted to press the HOME button but was denied.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00071">procui.h:71</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga32550ec8e2a44fa047ccd0ed0c2af67c"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga32550ec8e2a44fa047ccd0ed0c2af67c">ProcUIInShutdown</a></div><divclass="ttdeci">BOOL ProcUIInShutdown()</div><divclass="ttdoc">Determines whether the application is in shutdown and should quit.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga6509e620feaf54dc2e2f7d23313e2f79"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga6509e620feaf54dc2e2f7d23313e2f79">ProcUIClearCallbacks</a></div><divclass="ttdeci">void ProcUIClearCallbacks()</div><divclass="ttdoc">Unregister all ProcUI callbacks.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ggade66d5052242731e3eac46278b7a4f2baed39f119bca7f219c93a9dd075d71bcf"><divclass="ttname"><ahref="group__proc__ui__procui.html#ggade66d5052242731e3eac46278b7a4f2baed39f119bca7f219c93a9dd075d71bcf">PROCUI_STATUS_EXITING</a></div><divclass="ttdeci">@ PROCUI_STATUS_EXITING</div><divclass="ttdoc">The application must release all resources (including ProcUI) and quit.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00083">procui.h:83</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga1f3302a943ee4921b17d702d5e4c7f59"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga1f3302a943ee4921b17d702d5e4c7f59">ProcUISetSaveCallback</a></div><divclass="ttdeci">void ProcUISetSaveCallback(ProcUISaveCallbackEx saveCallback, void *arg)</div><divclass="ttdoc">Sets the save callback.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga25e6a2ffe24eb8f466869352e619fc3f"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga25e6a2ffe24eb8f466869352e619fc3f">ProcUIInitEx</a></div><divclass="ttdeci">void ProcUIInitEx(ProcUISaveCallbackEx saveCallback, void *arg)</div><divclass="ttdoc">Initialises the ProcUI library for use; using a save callback that takes arguments.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gae08f8396cbc4f5a1fc92eb3d70643078"><divclass="ttname"><ahref="group__proc__ui__procui.html#gae08f8396cbc4f5a1fc92eb3d70643078">ProcUISaveCallback</a></div><divclass="ttdeci">void(* ProcUISaveCallback)(void)</div><divclass="ttdoc">Called when the application needs to save.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00046">procui.h:46</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gaecc3b07dce458491d7c331958ffff701"><divclass="ttname"><ahref="group__proc__ui__procui.html#gaecc3b07dce458491d7c331958ffff701">ProcUIRegisterCallbackCore</a></div><divclass="ttdeci">void ProcUIRegisterCallbackCore(ProcUICallbackType type, ProcUICallback callback, void *param, uint32_t priority, uint32_t core)</div><divclass="ttdoc">Register a callback for certain ProcUI events, executed on the given core.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gabeabd14866cfdea46181526148f25727"><divclass="ttname"><ahref="group__proc__ui__procui.html#gabeabd14866cfdea46181526148f25727">ProcUIInForeground</a></div><divclass="ttdeci">BOOL ProcUIInForeground()</div><divclass="ttdoc">Determines whether the application is in the foreground.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8a577edd8076d43ce61ce10f140ca136af"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8a577edd8076d43ce61ce10f140ca136af">PROCUI_CALLBACK_NET_IO_STOP</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_NET_IO_STOP</div><divclass="ttdoc">Application must stop using networking.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00069">procui.h:69</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ggade66d5052242731e3eac46278b7a4f2ba7cb4dd11068823c46ebd543f51d3844b"><divclass="ttname"><ahref="group__proc__ui__procui.html#ggade66d5052242731e3eac46278b7a4f2ba7cb4dd11068823c46ebd543f51d3844b">PROCUI_STATUS_IN_BACKGROUND</a></div><divclass="ttdeci">@ PROCUI_STATUS_IN_BACKGROUND</div><divclass="ttdoc">The application is in the background, only limited resources are usable.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00079">procui.h:79</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gae02b06d5d7a51f364abbfde02cfa14ef"><divclass="ttname"><ahref="group__proc__ui__procui.html#gae02b06d5d7a51f364abbfde02cfa14ef">ProcUIInit</a></div><divclass="ttdeci">void ProcUIInit(ProcUISaveCallback saveCallback)</div><divclass="ttdoc">Initialises the ProcUI library for use.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gga9eba9de3b8f84c2482c358a1493ecda8a14172ef5b73cf100d2d87f90ff63af94"><divclass="ttname"><ahref="group__proc__ui__procui.html#gga9eba9de3b8f84c2482c358a1493ecda8a14172ef5b73cf100d2d87f90ff63af94">PROCUI_CALLBACK_ACQUIRE</a></div><divclass="ttdeci">@ PROCUI_CALLBACK_ACQUIRE</div><divclass="ttdoc">Application acquires the foreground.</div><divclass="ttdef"><b>Definition:</b><ahref="procui_8h_source.html#l00061">procui.h:61</a></div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_ga93dbed34ef225ecf734045b191b51375"><divclass="ttname"><ahref="group__proc__ui__procui.html#ga93dbed34ef225ecf734045b191b51375">ProcUISubProcessMessages</a></div><divclass="ttdeci">ProcUIStatus ProcUISubProcessMessages(BOOL block)</div><divclass="ttdoc">ProcUIProcessMessages(), but for secondary cores.</div></div>
<divclass="ttc"id="agroup__proc__ui__procui_html_gae89a764a7dedc01cfa80ec3a6733c229"><divclass="ttname"><ahref="group__proc__ui__procui.html#gae89a764a7dedc01cfa80ec3a6733c229">ProcUIDrawDoneRelease</a></div><divclass="ttdeci">void ProcUIDrawDoneRelease()</div><divclass="ttdoc">Signifies to ProcUI that the current application has released all foreground resources,...</div></div>