started woking on figuring out doxygen documentation and added readme
This commit is contained in:
parent
c598f3e106
commit
3f0556341c
1192 changed files with 199462 additions and 29 deletions
240
doc/doxygen/html/d6/d83/packages_2graphics_2sdl_2window_8c.html
Normal file
240
doc/doxygen/html/d6/d83/packages_2graphics_2sdl_2window_8c.html
Normal file
|
|
@ -0,0 +1,240 @@
|
|||
<!-- HTML header for doxygen 1.9.2-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="dark-mode">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Archeus: /home/herbglitch/programs/archeus/arc/packages/graphics/sdl/window.c File Reference</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="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.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>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../doxygen-awesome-darkmode-toggle.js"></script>
|
||||
</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: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Archeus<span id="projectnumber"> 0.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">A C library and game engine that focuses on documentation</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<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">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @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',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d6/d83/packages_2graphics_2sdl_2window_8c.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">window.c File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include "<a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html">arc/graphics/window.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="../../d9/d1a/packages_2graphics_2sdl_2window_8h_source.html">window.h</a>"</code><br />
|
||||
<code>#include "<a class="el" href="../../d8/dc2/errno_8h_source.html">arc/std/errno.h</a>"</code><br />
|
||||
<code>#include <SDL.h></code><br />
|
||||
</div>
|
||||
<p><a href="../../d6/d83/packages_2graphics_2sdl_2window_8c_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ac2943b39d2140ae27cd98d362053f27c" id="r_ac2943b39d2140ae27cd98d362053f27c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#ac2943b39d2140ae27cd98d362053f27c">ARC_Window_Create</a> (<a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> **window, <a class="el" href="../../d1/d1a/structARC__WindowInfo.html">ARC_WindowInfo</a> *info)</td></tr>
|
||||
<tr class="memdesc:ac2943b39d2140ae27cd98d362053f27c"><td class="mdescLeft"> </td><td class="mdescRight">creates ARC_Window type <br /></td></tr>
|
||||
<tr class="separator:ac2943b39d2140ae27cd98d362053f27c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afb68d49b50117b8cec312c7a5999c1a6" id="r_afb68d49b50117b8cec312c7a5999c1a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="#afb68d49b50117b8cec312c7a5999c1a6">ARC_Window_Destroy</a> (<a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> *window)</td></tr>
|
||||
<tr class="memdesc:afb68d49b50117b8cec312c7a5999c1a6"><td class="mdescLeft"> </td><td class="mdescRight">destroys ARC_Window type <br /></td></tr>
|
||||
<tr class="separator:afb68d49b50117b8cec312c7a5999c1a6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="ac2943b39d2140ae27cd98d362053f27c" name="ac2943b39d2140ae27cd98d362053f27c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac2943b39d2140ae27cd98d362053f27c">◆ </a></span>ARC_Window_Create()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void ARC_Window_Create </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> **</td> <td class="paramname"><span class="paramname"><em>window</em></span>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="../../d1/d1a/structARC__WindowInfo.html">ARC_WindowInfo</a> *</td> <td class="paramname"><span class="paramname"><em>info</em></span> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>creates ARC_Window type </p>
|
||||
<dl class="section note"><dt>Note</dt><dd>the parameter data is determined by which graphics library you are using please refer to the graphics library section to see what needs to be passed</dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">window</td><td>ARC_Window to initialize </td></tr>
|
||||
<tr><td class="paramname">info</td><td>Info on how to create ARC_Window </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c_source.html#l00007">7</a> of file <a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c_source.html">window.c</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 7</span> {</div>
|
||||
<div class="line"><span class="lineno"> 8</span> <span class="keywordflow">if</span>(!info){</div>
|
||||
<div class="line"><span class="lineno"> 9</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a>;</div>
|
||||
<div class="line"><span class="lineno"> 10</span> <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ad32a4f194b90c9ede4e393c0d4185590">ARC_DEBUG_LOG_ERROR</a>(<span class="stringliteral">"ARC_Window_Create(**window, NULL)"</span>);</div>
|
||||
<div class="line"><span class="lineno"> 11</span> <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><span class="lineno"> 12</span> }</div>
|
||||
<div class="line"><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><span class="lineno"> 14</span> <span class="keywordflow">if</span>(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0){</div>
|
||||
<div class="line"><span class="lineno"> 15</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#a61385aa4667afd29081519dbf55f4198">ARC_ERRNO_INIT</a>;</div>
|
||||
<div class="line"><span class="lineno"> 16</span> printf(<span class="stringliteral">"Error: initializing SDL\nSDL Error: %s\n"</span>, SDL_GetError());</div>
|
||||
<div class="line"><span class="lineno"> 17</span> <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><span class="lineno"> 18</span> }</div>
|
||||
<div class="line"><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><span class="lineno"> 20</span> *window = (<a class="code hl_typedef" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> *)SDL_CreateWindow((<span class="keyword">const</span> <span class="keywordtype">char</span> *)info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">title</a>, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">w</a>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">h</a>, 0);</div>
|
||||
<div class="line"><span class="lineno"> 21</span> </div>
|
||||
<div class="line"><span class="lineno"> 22</span> <span class="keywordflow">if</span>(!*window){</div>
|
||||
<div class="line"><span class="lineno"> 23</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a>;</div>
|
||||
<div class="line"><span class="lineno"> 24</span> <a class="code hl_define" href="../../d8/dc2/errno_8h.html#a8cbc7f5b6cb9e20d3993284f0f80ec83">ARC_DEBUG_LOG_ERROR_WITH_VARIABLES</a>(<span class="stringliteral">"SDL_CreateWindow(%s, %d, %d, %d, %d, %x);"</span>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">title</a>, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">w</a>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">h</a>, 0);</div>
|
||||
<div class="line"><span class="lineno"> 25</span> free(window);</div>
|
||||
<div class="line"><span class="lineno"> 26</span> }</div>
|
||||
<div class="line"><span class="lineno"> 27</span>}</div>
|
||||
<div class="ttc" id="aerrno_8h_html_a5884aa8cc9b4e733345e49f93b54f75a"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a></div><div class="ttdeci">int32_t arc_errno</div><div class="ttdef"><b>Definition</b> <a href="../../d0/d90/errno_8c_source.html#l00005">errno.c:5</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_a61385aa4667afd29081519dbf55f4198"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a61385aa4667afd29081519dbf55f4198">ARC_ERRNO_INIT</a></div><div class="ttdeci">#define ARC_ERRNO_INIT</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00011">errno.h:11</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_a8cbc7f5b6cb9e20d3993284f0f80ec83"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a8cbc7f5b6cb9e20d3993284f0f80ec83">ARC_DEBUG_LOG_ERROR_WITH_VARIABLES</a></div><div class="ttdeci">#define ARC_DEBUG_LOG_ERROR_WITH_VARIABLES(STR,...)</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00040">errno.h:40</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_ab626cdbbebc1ac9abd1548a5f6f6195b"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a></div><div class="ttdeci">#define ARC_ERRNO_NULL</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00006">errno.h:6</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_ad32a4f194b90c9ede4e393c0d4185590"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#ad32a4f194b90c9ede4e393c0d4185590">ARC_DEBUG_LOG_ERROR</a></div><div class="ttdeci">#define ARC_DEBUG_LOG_ERROR(STR)</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00039">errno.h:39</a></div></div>
|
||||
<div class="ttc" id="ainclude_2arc_2graphics_2window_8h_html_a306a4335069399f41073b7cc14ab7c38"><div class="ttname"><a href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a></div><div class="ttdeci">struct ARC_WindowType ARC_Window</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00013">window.h:13</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_a2e8d943e367f5c64db65e21ef92fcfd8"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">ARC_WindowInfo::h</a></div><div class="ttdeci">int32_t h</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00021">window.h:21</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_adb7dc9a62fd9bc34bb9ee2e1a8fbb812"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">ARC_WindowInfo::title</a></div><div class="ttdeci">char * title</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00019">window.h:19</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_af5b0756e36cd244691c3a883fc7ff820"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">ARC_WindowInfo::w</a></div><div class="ttdeci">int32_t w</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00020">window.h:20</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
<p class="reference">References <a class="el" href="../../d8/dc2/errno_8h_source.html#l00039">ARC_DEBUG_LOG_ERROR</a>, <a class="el" href="../../d8/dc2/errno_8h_source.html#l00040">ARC_DEBUG_LOG_ERROR_WITH_VARIABLES</a>, <a class="el" href="../../d0/d90/errno_8c_source.html#l00005">arc_errno</a>, <a class="el" href="../../d8/dc2/errno_8h_source.html#l00011">ARC_ERRNO_INIT</a>, <a class="el" href="../../d8/dc2/errno_8h_source.html#l00006">ARC_ERRNO_NULL</a>, <a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00021">ARC_WindowInfo::h</a>, <a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00019">ARC_WindowInfo::title</a>, and <a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00020">ARC_WindowInfo::w</a>.</p>
|
||||
|
||||
<p class="reference">Referenced by <a class="el" href="../../dd/d56/engine_8c_source.html#l00017">ARC_EngineData_Create()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="afb68d49b50117b8cec312c7a5999c1a6" name="afb68d49b50117b8cec312c7a5999c1a6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afb68d49b50117b8cec312c7a5999c1a6">◆ </a></span>ARC_Window_Destroy()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void ARC_Window_Destroy </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> *</td> <td class="paramname"><span class="paramname"><em>window</em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>destroys ARC_Window type </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c_source.html#l00029">29</a> of file <a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c_source.html">window.c</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 29</span> {</div>
|
||||
<div class="line"><span class="lineno"> 30</span> SDL_DestroyWindow((SDL_Window *) window);</div>
|
||||
<div class="line"><span class="lineno"> 31</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
<p class="reference">Referenced by <a class="el" href="../../dd/d56/engine_8c_source.html#l00017">ARC_EngineData_Create()</a>, and <a class="el" href="../../dd/d56/engine_8c_source.html#l00051">ARC_EngineData_Destroy()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.9.2-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul><li class="navelem"><a class="el" href="../../dir_93501a11e921083efbd154e0cdff5f10.html">packages</a></li><li class="navelem"><a class="el" href="../../dir_af6e6c3357835c7f766dfcaf351d30ad.html">graphics</a></li><li class="navelem"><a class="el" href="../../dir_384bcd99d3b936f9e95fe1cb5def6f01.html">sdl</a></li><li class="navelem"><a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c.html">window.c</a></li></ul>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
// script for doxygen 1.9.1
|
||||
$(function() {
|
||||
toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle')
|
||||
toggleButton.title = "Toggle Light/Dark Mode"
|
||||
$(document).ready(function(){
|
||||
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||||
})
|
||||
$(window).resize(function(){
|
||||
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
var packages_2graphics_2sdl_2window_8c =
|
||||
[
|
||||
[ "ARC_Window_Create", "d6/d83/packages_2graphics_2sdl_2window_8c.html#ac2943b39d2140ae27cd98d362053f27c", null ],
|
||||
[ "ARC_Window_Destroy", "d6/d83/packages_2graphics_2sdl_2window_8c.html#afb68d49b50117b8cec312c7a5999c1a6", null ]
|
||||
];
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
<!-- HTML header for doxygen 1.9.2-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="dark-mode">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Archeus: /home/herbglitch/programs/archeus/arc/packages/graphics/sdl/window.c 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="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.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>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
||||
<link href="../../doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../doxygen-awesome-darkmode-toggle.js"></script>
|
||||
</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: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">Archeus<span id="projectnumber"> 0.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">A C library and game engine that focuses on documentation</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<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">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @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',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d6/d83/packages_2graphics_2sdl_2window_8c_source.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle"><div class="title">window.c</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d6/d83/packages_2graphics_2sdl_2window_8c.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="preprocessor">#include "<a class="code" href="../../d5/d03/include_2arc_2graphics_2window_8h.html">arc/graphics/window.h</a>"</span></div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span> </div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include "<a class="code" href="../../d9/d1a/packages_2graphics_2sdl_2window_8h.html">window.h</a>"</span></div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "<a class="code" href="../../d8/dc2/errno_8h.html">arc/std/errno.h</a>"</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <SDL.h></span></div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
||||
<div class="foldopen" id="foldopen00007" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#ac2943b39d2140ae27cd98d362053f27c"> 7</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#ac2943b39d2140ae27cd98d362053f27c">ARC_Window_Create</a>(<a class="code hl_typedef" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> **window, <a class="code hl_struct" href="../../d1/d1a/structARC__WindowInfo.html">ARC_WindowInfo</a> *info){</div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> <span class="keywordflow">if</span>(!info){</div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a>;</div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ad32a4f194b90c9ede4e393c0d4185590">ARC_DEBUG_LOG_ERROR</a>(<span class="stringliteral">"ARC_Window_Create(**window, NULL)"</span>);</div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> }</div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordflow">if</span>(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0){</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#a61385aa4667afd29081519dbf55f4198">ARC_ERRNO_INIT</a>;</div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> printf(<span class="stringliteral">"Error: initializing SDL\nSDL Error: %s\n"</span>, SDL_GetError());</div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> <span class="keywordflow">return</span>;</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> }</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> *window = (<a class="code hl_typedef" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> *)SDL_CreateWindow((<span class="keyword">const</span> <span class="keywordtype">char</span> *)info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">title</a>, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">w</a>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">h</a>, 0);</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keywordflow">if</span>(!*window){</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_variable" href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a> = <a class="code hl_define" href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a>;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_define" href="../../d8/dc2/errno_8h.html#a8cbc7f5b6cb9e20d3993284f0f80ec83">ARC_DEBUG_LOG_ERROR_WITH_VARIABLES</a>(<span class="stringliteral">"SDL_CreateWindow(%s, %d, %d, %d, %d, %x);"</span>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">title</a>, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">w</a>, info-><a class="code hl_variable" href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">h</a>, 0);</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> free(window);</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> }</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#afb68d49b50117b8cec312c7a5999c1a6"> 29</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#afb68d49b50117b8cec312c7a5999c1a6">ARC_Window_Destroy</a>(<a class="code hl_typedef" href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a> *window){</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> SDL_DestroyWindow((SDL_Window *) window);</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span>}</div>
|
||||
</div>
|
||||
<div class="ttc" id="aerrno_8h_html"><div class="ttname"><a href="../../d8/dc2/errno_8h.html">errno.h</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_a5884aa8cc9b4e733345e49f93b54f75a"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a5884aa8cc9b4e733345e49f93b54f75a">arc_errno</a></div><div class="ttdeci">int32_t arc_errno</div><div class="ttdef"><b>Definition</b> <a href="../../d0/d90/errno_8c_source.html#l00005">errno.c:5</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_a61385aa4667afd29081519dbf55f4198"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a61385aa4667afd29081519dbf55f4198">ARC_ERRNO_INIT</a></div><div class="ttdeci">#define ARC_ERRNO_INIT</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00011">errno.h:11</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_a8cbc7f5b6cb9e20d3993284f0f80ec83"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#a8cbc7f5b6cb9e20d3993284f0f80ec83">ARC_DEBUG_LOG_ERROR_WITH_VARIABLES</a></div><div class="ttdeci">#define ARC_DEBUG_LOG_ERROR_WITH_VARIABLES(STR,...)</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00040">errno.h:40</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_ab626cdbbebc1ac9abd1548a5f6f6195b"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#ab626cdbbebc1ac9abd1548a5f6f6195b">ARC_ERRNO_NULL</a></div><div class="ttdeci">#define ARC_ERRNO_NULL</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00006">errno.h:6</a></div></div>
|
||||
<div class="ttc" id="aerrno_8h_html_ad32a4f194b90c9ede4e393c0d4185590"><div class="ttname"><a href="../../d8/dc2/errno_8h.html#ad32a4f194b90c9ede4e393c0d4185590">ARC_DEBUG_LOG_ERROR</a></div><div class="ttdeci">#define ARC_DEBUG_LOG_ERROR(STR)</div><div class="ttdef"><b>Definition</b> <a href="../../d8/dc2/errno_8h_source.html#l00039">errno.h:39</a></div></div>
|
||||
<div class="ttc" id="ainclude_2arc_2graphics_2window_8h_html"><div class="ttname"><a href="../../d5/d03/include_2arc_2graphics_2window_8h.html">window.h</a></div></div>
|
||||
<div class="ttc" id="ainclude_2arc_2graphics_2window_8h_html_a306a4335069399f41073b7cc14ab7c38"><div class="ttname"><a href="../../d5/d03/include_2arc_2graphics_2window_8h.html#a306a4335069399f41073b7cc14ab7c38">ARC_Window</a></div><div class="ttdeci">struct ARC_WindowType ARC_Window</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00013">window.h:13</a></div></div>
|
||||
<div class="ttc" id="ainclude_2arc_2graphics_2window_8h_html_ac2943b39d2140ae27cd98d362053f27c"><div class="ttname"><a href="../../d5/d03/include_2arc_2graphics_2window_8h.html#ac2943b39d2140ae27cd98d362053f27c">ARC_Window_Create</a></div><div class="ttdeci">void ARC_Window_Create(ARC_Window **window, ARC_WindowInfo *info)</div><div class="ttdoc">creates ARC_Window type</div><div class="ttdef"><b>Definition</b> <a href="#l00007">window.c:7</a></div></div>
|
||||
<div class="ttc" id="ainclude_2arc_2graphics_2window_8h_html_afb68d49b50117b8cec312c7a5999c1a6"><div class="ttname"><a href="../../d5/d03/include_2arc_2graphics_2window_8h.html#afb68d49b50117b8cec312c7a5999c1a6">ARC_Window_Destroy</a></div><div class="ttdeci">void ARC_Window_Destroy(ARC_Window *window)</div><div class="ttdoc">destroys ARC_Window type</div><div class="ttdef"><b>Definition</b> <a href="#l00029">window.c:29</a></div></div>
|
||||
<div class="ttc" id="apackages_2graphics_2sdl_2window_8h_html"><div class="ttname"><a href="../../d9/d1a/packages_2graphics_2sdl_2window_8h.html">window.h</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html">ARC_WindowInfo</a></div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00018">window.h:18</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_a2e8d943e367f5c64db65e21ef92fcfd8"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#a2e8d943e367f5c64db65e21ef92fcfd8">ARC_WindowInfo::h</a></div><div class="ttdeci">int32_t h</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00021">window.h:21</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_adb7dc9a62fd9bc34bb9ee2e1a8fbb812"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#adb7dc9a62fd9bc34bb9ee2e1a8fbb812">ARC_WindowInfo::title</a></div><div class="ttdeci">char * title</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00019">window.h:19</a></div></div>
|
||||
<div class="ttc" id="astructARC__WindowInfo_html_af5b0756e36cd244691c3a883fc7ff820"><div class="ttname"><a href="../../d1/d1a/structARC__WindowInfo.html#af5b0756e36cd244691c3a883fc7ff820">ARC_WindowInfo::w</a></div><div class="ttdeci">int32_t w</div><div class="ttdef"><b>Definition</b> <a href="../../d5/d03/include_2arc_2graphics_2window_8h_source.html#l00020">window.h:20</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- HTML footer for doxygen 1.9.2-->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul><li class="navelem"><a class="el" href="../../dir_93501a11e921083efbd154e0cdff5f10.html">packages</a></li><li class="navelem"><a class="el" href="../../dir_af6e6c3357835c7f766dfcaf351d30ad.html">graphics</a></li><li class="navelem"><a class="el" href="../../dir_384bcd99d3b936f9e95fe1cb5def6f01.html">sdl</a></li><li class="navelem"><a class="el" href="../../d6/d83/packages_2graphics_2sdl_2window_8c.html">window.c</a></li></ul>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
// script for doxygen 1.9.1
|
||||
$(function() {
|
||||
toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle')
|
||||
toggleButton.title = "Toggle Light/Dark Mode"
|
||||
$(document).ready(function(){
|
||||
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||||
})
|
||||
$(window).resize(function(){
|
||||
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue