diff options
Diffstat (limited to 'contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__window.html')
-rw-r--r-- | contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__window.html | 3425 |
1 files changed, 3425 insertions, 0 deletions
diff --git a/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__window.html b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__window.html new file mode 100644 index 0000000..91ccfca --- /dev/null +++ b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__window.html | |||
@@ -0,0 +1,3425 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
6 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> | ||
7 | <meta name="generator" content="Doxygen 1.9.2"/> | ||
8 | <title>GLFW: Window reference</title> | ||
9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="dynsections.js"></script> | ||
12 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
13 | <script type="text/javascript" src="search/searchdata.js"></script> | ||
14 | <script type="text/javascript" src="search/search.js"></script> | ||
15 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
16 | <link href="extra.css" rel="stylesheet" type="text/css"/> | ||
17 | </head> | ||
18 | <body> | ||
19 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
20 | <div id="titlearea"> | ||
21 | <div class="glfwheader"> | ||
22 | <a href="https://www.glfw.org/" id="glfwhome">GLFW</a> | ||
23 | <ul class="glfwnavbar"> | ||
24 | <li><a href="https://www.glfw.org/documentation.html">Documentation</a></li> | ||
25 | <li><a href="https://www.glfw.org/download.html">Download</a></li> | ||
26 | <li><a href="https://www.glfw.org/community.html">Community</a></li> | ||
27 | </ul> | ||
28 | </div> | ||
29 | </div> | ||
30 | <!-- end header part --> | ||
31 | <!-- Generated by Doxygen 1.9.2 --> | ||
32 | <script type="text/javascript"> | ||
33 | /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
34 | var searchBox = new SearchBox("searchBox", "search",'Search','.html'); | ||
35 | /* @license-end */ | ||
36 | </script> | ||
37 | <script type="text/javascript" src="menudata.js"></script> | ||
38 | <script type="text/javascript" src="menu.js"></script> | ||
39 | <script type="text/javascript"> | ||
40 | /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
41 | $(function() { | ||
42 | initMenu('',true,false,'search.php','Search'); | ||
43 | $(document).ready(function() { init_search(); }); | ||
44 | }); | ||
45 | /* @license-end */ | ||
46 | </script> | ||
47 | <div id="main-nav"></div> | ||
48 | </div><!-- top --> | ||
49 | <!-- window showing the filter options --> | ||
50 | <div id="MSearchSelectWindow" | ||
51 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
52 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
53 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
54 | </div> | ||
55 | |||
56 | <!-- iframe showing the search results (closed by default) --> | ||
57 | <div id="MSearchResultsWindow"> | ||
58 | <iframe src="javascript:void(0)" frameborder="0" | ||
59 | name="MSearchResults" id="MSearchResults"> | ||
60 | </iframe> | ||
61 | </div> | ||
62 | |||
63 | <div class="header"> | ||
64 | <div class="summary"> | ||
65 | <a href="#define-members">Macros</a> | | ||
66 | <a href="#typedef-members">Typedefs</a> | | ||
67 | <a href="#func-members">Functions</a> </div> | ||
68 | <div class="headertitle"><div class="title">Window reference</div></div> | ||
69 | </div><!--header--> | ||
70 | <div class="contents"> | ||
71 | <a name="details" id="details"></a><h2 class="groupheader">Description</h2> | ||
72 | <p >This is the reference documentation for window related functions and types, including creation, deletion and event polling. For more task-oriented information, see the <a class="el" href="window_guide.html">Window guide</a>. </p> | ||
73 | <table class="memberdecls"> | ||
74 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a> | ||
75 | Macros</h2></td></tr> | ||
76 | <tr class="memitem:ga54ddb14825a1541a56e22afb5f832a9e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga54ddb14825a1541a56e22afb5f832a9e">GLFW_FOCUSED</a>   0x00020001</td></tr> | ||
77 | <tr class="memdesc:ga54ddb14825a1541a56e22afb5f832a9e"><td class="mdescLeft"> </td><td class="mdescRight">Input focus window hint and attribute. <a href="group__window.html#ga54ddb14825a1541a56e22afb5f832a9e">More...</a><br /></td></tr> | ||
78 | <tr class="separator:ga54ddb14825a1541a56e22afb5f832a9e"><td class="memSeparator" colspan="2"> </td></tr> | ||
79 | <tr class="memitem:ga39d44b7c056e55e581355a92d240b58a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga39d44b7c056e55e581355a92d240b58a">GLFW_ICONIFIED</a>   0x00020002</td></tr> | ||
80 | <tr class="memdesc:ga39d44b7c056e55e581355a92d240b58a"><td class="mdescLeft"> </td><td class="mdescRight">Window iconification window attribute. <a href="group__window.html#ga39d44b7c056e55e581355a92d240b58a">More...</a><br /></td></tr> | ||
81 | <tr class="separator:ga39d44b7c056e55e581355a92d240b58a"><td class="memSeparator" colspan="2"> </td></tr> | ||
82 | <tr class="memitem:gadba13c7a1b3aa40831eb2beedbd5bd1d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gadba13c7a1b3aa40831eb2beedbd5bd1d">GLFW_RESIZABLE</a>   0x00020003</td></tr> | ||
83 | <tr class="memdesc:gadba13c7a1b3aa40831eb2beedbd5bd1d"><td class="mdescLeft"> </td><td class="mdescRight">Window resize-ability window hint and attribute. <a href="group__window.html#gadba13c7a1b3aa40831eb2beedbd5bd1d">More...</a><br /></td></tr> | ||
84 | <tr class="separator:gadba13c7a1b3aa40831eb2beedbd5bd1d"><td class="memSeparator" colspan="2"> </td></tr> | ||
85 | <tr class="memitem:gafb3cdc45297e06d8f1eb13adc69ca6c4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafb3cdc45297e06d8f1eb13adc69ca6c4">GLFW_VISIBLE</a>   0x00020004</td></tr> | ||
86 | <tr class="memdesc:gafb3cdc45297e06d8f1eb13adc69ca6c4"><td class="mdescLeft"> </td><td class="mdescRight">Window visibility window hint and attribute. <a href="group__window.html#gafb3cdc45297e06d8f1eb13adc69ca6c4">More...</a><br /></td></tr> | ||
87 | <tr class="separator:gafb3cdc45297e06d8f1eb13adc69ca6c4"><td class="memSeparator" colspan="2"> </td></tr> | ||
88 | <tr class="memitem:ga21b854d36314c94d65aed84405b2f25e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga21b854d36314c94d65aed84405b2f25e">GLFW_DECORATED</a>   0x00020005</td></tr> | ||
89 | <tr class="memdesc:ga21b854d36314c94d65aed84405b2f25e"><td class="mdescLeft"> </td><td class="mdescRight">Window decoration window hint and attribute. <a href="group__window.html#ga21b854d36314c94d65aed84405b2f25e">More...</a><br /></td></tr> | ||
90 | <tr class="separator:ga21b854d36314c94d65aed84405b2f25e"><td class="memSeparator" colspan="2"> </td></tr> | ||
91 | <tr class="memitem:ga9d9874fc928200136a6dcdad726aa252"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga9d9874fc928200136a6dcdad726aa252">GLFW_AUTO_ICONIFY</a>   0x00020006</td></tr> | ||
92 | <tr class="memdesc:ga9d9874fc928200136a6dcdad726aa252"><td class="mdescLeft"> </td><td class="mdescRight">Window auto-iconification window hint and attribute. <a href="group__window.html#ga9d9874fc928200136a6dcdad726aa252">More...</a><br /></td></tr> | ||
93 | <tr class="separator:ga9d9874fc928200136a6dcdad726aa252"><td class="memSeparator" colspan="2"> </td></tr> | ||
94 | <tr class="memitem:ga7fb0be51407783b41adbf5bec0b09d80"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga7fb0be51407783b41adbf5bec0b09d80">GLFW_FLOATING</a>   0x00020007</td></tr> | ||
95 | <tr class="memdesc:ga7fb0be51407783b41adbf5bec0b09d80"><td class="mdescLeft"> </td><td class="mdescRight">Window decoration window hint and attribute. <a href="group__window.html#ga7fb0be51407783b41adbf5bec0b09d80">More...</a><br /></td></tr> | ||
96 | <tr class="separator:ga7fb0be51407783b41adbf5bec0b09d80"><td class="memSeparator" colspan="2"> </td></tr> | ||
97 | <tr class="memitem:gad8ccb396253ad0b72c6d4c917eb38a03"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gad8ccb396253ad0b72c6d4c917eb38a03">GLFW_MAXIMIZED</a>   0x00020008</td></tr> | ||
98 | <tr class="memdesc:gad8ccb396253ad0b72c6d4c917eb38a03"><td class="mdescLeft"> </td><td class="mdescRight">Window maximization window hint and attribute. <a href="group__window.html#gad8ccb396253ad0b72c6d4c917eb38a03">More...</a><br /></td></tr> | ||
99 | <tr class="separator:gad8ccb396253ad0b72c6d4c917eb38a03"><td class="memSeparator" colspan="2"> </td></tr> | ||
100 | <tr class="memitem:ga5ac0847c0aa0b3619f2855707b8a7a77"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga5ac0847c0aa0b3619f2855707b8a7a77">GLFW_CENTER_CURSOR</a>   0x00020009</td></tr> | ||
101 | <tr class="memdesc:ga5ac0847c0aa0b3619f2855707b8a7a77"><td class="mdescLeft"> </td><td class="mdescRight">Cursor centering window hint. <a href="group__window.html#ga5ac0847c0aa0b3619f2855707b8a7a77">More...</a><br /></td></tr> | ||
102 | <tr class="separator:ga5ac0847c0aa0b3619f2855707b8a7a77"><td class="memSeparator" colspan="2"> </td></tr> | ||
103 | <tr class="memitem:ga60a0578c3b9449027d683a9c6abb9f14"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga60a0578c3b9449027d683a9c6abb9f14">GLFW_TRANSPARENT_FRAMEBUFFER</a>   0x0002000A</td></tr> | ||
104 | <tr class="memdesc:ga60a0578c3b9449027d683a9c6abb9f14"><td class="mdescLeft"> </td><td class="mdescRight">Window framebuffer transparency hint and attribute. <a href="group__window.html#ga60a0578c3b9449027d683a9c6abb9f14">More...</a><br /></td></tr> | ||
105 | <tr class="separator:ga60a0578c3b9449027d683a9c6abb9f14"><td class="memSeparator" colspan="2"> </td></tr> | ||
106 | <tr class="memitem:ga8665c71c6fa3d22425c6a0e8a3f89d8a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga8665c71c6fa3d22425c6a0e8a3f89d8a">GLFW_HOVERED</a>   0x0002000B</td></tr> | ||
107 | <tr class="memdesc:ga8665c71c6fa3d22425c6a0e8a3f89d8a"><td class="mdescLeft"> </td><td class="mdescRight">Mouse cursor hover window attribute. <a href="group__window.html#ga8665c71c6fa3d22425c6a0e8a3f89d8a">More...</a><br /></td></tr> | ||
108 | <tr class="separator:ga8665c71c6fa3d22425c6a0e8a3f89d8a"><td class="memSeparator" colspan="2"> </td></tr> | ||
109 | <tr class="memitem:gafa94b1da34bfd6488c0d709761504dfc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafa94b1da34bfd6488c0d709761504dfc">GLFW_FOCUS_ON_SHOW</a>   0x0002000C</td></tr> | ||
110 | <tr class="memdesc:gafa94b1da34bfd6488c0d709761504dfc"><td class="mdescLeft"> </td><td class="mdescRight">Input focus on calling show window hint and attribute. <a href="group__window.html#gafa94b1da34bfd6488c0d709761504dfc">More...</a><br /></td></tr> | ||
111 | <tr class="separator:gafa94b1da34bfd6488c0d709761504dfc"><td class="memSeparator" colspan="2"> </td></tr> | ||
112 | <tr class="memitem:gaf78ed8e417dbcc1e354906cc2708c982"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaf78ed8e417dbcc1e354906cc2708c982">GLFW_RED_BITS</a>   0x00021001</td></tr> | ||
113 | <tr class="memdesc:gaf78ed8e417dbcc1e354906cc2708c982"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gaf78ed8e417dbcc1e354906cc2708c982">More...</a><br /></td></tr> | ||
114 | <tr class="separator:gaf78ed8e417dbcc1e354906cc2708c982"><td class="memSeparator" colspan="2"> </td></tr> | ||
115 | <tr class="memitem:gafba3b72638c914e5fb8a237dd4c50d4d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafba3b72638c914e5fb8a237dd4c50d4d">GLFW_GREEN_BITS</a>   0x00021002</td></tr> | ||
116 | <tr class="memdesc:gafba3b72638c914e5fb8a237dd4c50d4d"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gafba3b72638c914e5fb8a237dd4c50d4d">More...</a><br /></td></tr> | ||
117 | <tr class="separator:gafba3b72638c914e5fb8a237dd4c50d4d"><td class="memSeparator" colspan="2"> </td></tr> | ||
118 | <tr class="memitem:gab292ea403db6d514537b515311bf9ae3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gab292ea403db6d514537b515311bf9ae3">GLFW_BLUE_BITS</a>   0x00021003</td></tr> | ||
119 | <tr class="memdesc:gab292ea403db6d514537b515311bf9ae3"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gab292ea403db6d514537b515311bf9ae3">More...</a><br /></td></tr> | ||
120 | <tr class="separator:gab292ea403db6d514537b515311bf9ae3"><td class="memSeparator" colspan="2"> </td></tr> | ||
121 | <tr class="memitem:gafed79a3f468997877da86c449bd43e8c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafed79a3f468997877da86c449bd43e8c">GLFW_ALPHA_BITS</a>   0x00021004</td></tr> | ||
122 | <tr class="memdesc:gafed79a3f468997877da86c449bd43e8c"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gafed79a3f468997877da86c449bd43e8c">More...</a><br /></td></tr> | ||
123 | <tr class="separator:gafed79a3f468997877da86c449bd43e8c"><td class="memSeparator" colspan="2"> </td></tr> | ||
124 | <tr class="memitem:ga318a55eac1fee57dfe593b6d38149d07"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga318a55eac1fee57dfe593b6d38149d07">GLFW_DEPTH_BITS</a>   0x00021005</td></tr> | ||
125 | <tr class="memdesc:ga318a55eac1fee57dfe593b6d38149d07"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#ga318a55eac1fee57dfe593b6d38149d07">More...</a><br /></td></tr> | ||
126 | <tr class="separator:ga318a55eac1fee57dfe593b6d38149d07"><td class="memSeparator" colspan="2"> </td></tr> | ||
127 | <tr class="memitem:ga5339890a45a1fb38e93cb9fcc5fd069d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga5339890a45a1fb38e93cb9fcc5fd069d">GLFW_STENCIL_BITS</a>   0x00021006</td></tr> | ||
128 | <tr class="memdesc:ga5339890a45a1fb38e93cb9fcc5fd069d"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#ga5339890a45a1fb38e93cb9fcc5fd069d">More...</a><br /></td></tr> | ||
129 | <tr class="separator:ga5339890a45a1fb38e93cb9fcc5fd069d"><td class="memSeparator" colspan="2"> </td></tr> | ||
130 | <tr class="memitem:gaead34a9a683b2bc20eecf30ba738bfc6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaead34a9a683b2bc20eecf30ba738bfc6">GLFW_ACCUM_RED_BITS</a>   0x00021007</td></tr> | ||
131 | <tr class="memdesc:gaead34a9a683b2bc20eecf30ba738bfc6"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gaead34a9a683b2bc20eecf30ba738bfc6">More...</a><br /></td></tr> | ||
132 | <tr class="separator:gaead34a9a683b2bc20eecf30ba738bfc6"><td class="memSeparator" colspan="2"> </td></tr> | ||
133 | <tr class="memitem:ga65713cee1326f8e9d806fdf93187b471"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga65713cee1326f8e9d806fdf93187b471">GLFW_ACCUM_GREEN_BITS</a>   0x00021008</td></tr> | ||
134 | <tr class="memdesc:ga65713cee1326f8e9d806fdf93187b471"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#ga65713cee1326f8e9d806fdf93187b471">More...</a><br /></td></tr> | ||
135 | <tr class="separator:ga65713cee1326f8e9d806fdf93187b471"><td class="memSeparator" colspan="2"> </td></tr> | ||
136 | <tr class="memitem:ga22bbe9104a8ce1f8b88fb4f186aa36ce"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga22bbe9104a8ce1f8b88fb4f186aa36ce">GLFW_ACCUM_BLUE_BITS</a>   0x00021009</td></tr> | ||
137 | <tr class="memdesc:ga22bbe9104a8ce1f8b88fb4f186aa36ce"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#ga22bbe9104a8ce1f8b88fb4f186aa36ce">More...</a><br /></td></tr> | ||
138 | <tr class="separator:ga22bbe9104a8ce1f8b88fb4f186aa36ce"><td class="memSeparator" colspan="2"> </td></tr> | ||
139 | <tr class="memitem:gae829b55591c18169a40ab4067a041b1f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gae829b55591c18169a40ab4067a041b1f">GLFW_ACCUM_ALPHA_BITS</a>   0x0002100A</td></tr> | ||
140 | <tr class="memdesc:gae829b55591c18169a40ab4067a041b1f"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer bit depth hint. <a href="group__window.html#gae829b55591c18169a40ab4067a041b1f">More...</a><br /></td></tr> | ||
141 | <tr class="separator:gae829b55591c18169a40ab4067a041b1f"><td class="memSeparator" colspan="2"> </td></tr> | ||
142 | <tr class="memitem:gab05108c5029443b371112b031d1fa174"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gab05108c5029443b371112b031d1fa174">GLFW_AUX_BUFFERS</a>   0x0002100B</td></tr> | ||
143 | <tr class="memdesc:gab05108c5029443b371112b031d1fa174"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer auxiliary buffer hint. <a href="group__window.html#gab05108c5029443b371112b031d1fa174">More...</a><br /></td></tr> | ||
144 | <tr class="separator:gab05108c5029443b371112b031d1fa174"><td class="memSeparator" colspan="2"> </td></tr> | ||
145 | <tr class="memitem:ga83d991efca02537e2d69969135b77b03"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga83d991efca02537e2d69969135b77b03">GLFW_STEREO</a>   0x0002100C</td></tr> | ||
146 | <tr class="memdesc:ga83d991efca02537e2d69969135b77b03"><td class="mdescLeft"> </td><td class="mdescRight">OpenGL stereoscopic rendering hint. <a href="group__window.html#ga83d991efca02537e2d69969135b77b03">More...</a><br /></td></tr> | ||
147 | <tr class="separator:ga83d991efca02537e2d69969135b77b03"><td class="memSeparator" colspan="2"> </td></tr> | ||
148 | <tr class="memitem:ga2cdf86fdcb7722fb8829c4e201607535"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga2cdf86fdcb7722fb8829c4e201607535">GLFW_SAMPLES</a>   0x0002100D</td></tr> | ||
149 | <tr class="memdesc:ga2cdf86fdcb7722fb8829c4e201607535"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer MSAA samples hint. <a href="group__window.html#ga2cdf86fdcb7722fb8829c4e201607535">More...</a><br /></td></tr> | ||
150 | <tr class="separator:ga2cdf86fdcb7722fb8829c4e201607535"><td class="memSeparator" colspan="2"> </td></tr> | ||
151 | <tr class="memitem:ga444a8f00414a63220591f9fdb7b5642b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga444a8f00414a63220591f9fdb7b5642b">GLFW_SRGB_CAPABLE</a>   0x0002100E</td></tr> | ||
152 | <tr class="memdesc:ga444a8f00414a63220591f9fdb7b5642b"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer sRGB hint. <a href="group__window.html#ga444a8f00414a63220591f9fdb7b5642b">More...</a><br /></td></tr> | ||
153 | <tr class="separator:ga444a8f00414a63220591f9fdb7b5642b"><td class="memSeparator" colspan="2"> </td></tr> | ||
154 | <tr class="memitem:ga0f20825e6e47ee8ba389024519682212"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga0f20825e6e47ee8ba389024519682212">GLFW_REFRESH_RATE</a>   0x0002100F</td></tr> | ||
155 | <tr class="memdesc:ga0f20825e6e47ee8ba389024519682212"><td class="mdescLeft"> </td><td class="mdescRight">Monitor refresh rate hint. <a href="group__window.html#ga0f20825e6e47ee8ba389024519682212">More...</a><br /></td></tr> | ||
156 | <tr class="separator:ga0f20825e6e47ee8ba389024519682212"><td class="memSeparator" colspan="2"> </td></tr> | ||
157 | <tr class="memitem:ga714a5d569e8a274ea58fdfa020955339"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga714a5d569e8a274ea58fdfa020955339">GLFW_DOUBLEBUFFER</a>   0x00021010</td></tr> | ||
158 | <tr class="memdesc:ga714a5d569e8a274ea58fdfa020955339"><td class="mdescLeft"> </td><td class="mdescRight">Framebuffer double buffering hint. <a href="group__window.html#ga714a5d569e8a274ea58fdfa020955339">More...</a><br /></td></tr> | ||
159 | <tr class="separator:ga714a5d569e8a274ea58fdfa020955339"><td class="memSeparator" colspan="2"> </td></tr> | ||
160 | <tr class="memitem:ga649309cf72a3d3de5b1348ca7936c95b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga649309cf72a3d3de5b1348ca7936c95b">GLFW_CLIENT_API</a>   0x00022001</td></tr> | ||
161 | <tr class="memdesc:ga649309cf72a3d3de5b1348ca7936c95b"><td class="mdescLeft"> </td><td class="mdescRight">Context client API hint and attribute. <a href="group__window.html#ga649309cf72a3d3de5b1348ca7936c95b">More...</a><br /></td></tr> | ||
162 | <tr class="separator:ga649309cf72a3d3de5b1348ca7936c95b"><td class="memSeparator" colspan="2"> </td></tr> | ||
163 | <tr class="memitem:gafe5e4922de1f9932d7e9849bb053b0c0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0">GLFW_CONTEXT_VERSION_MAJOR</a>   0x00022002</td></tr> | ||
164 | <tr class="memdesc:gafe5e4922de1f9932d7e9849bb053b0c0"><td class="mdescLeft"> </td><td class="mdescRight">Context client API major version hint and attribute. <a href="group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0">More...</a><br /></td></tr> | ||
165 | <tr class="separator:gafe5e4922de1f9932d7e9849bb053b0c0"><td class="memSeparator" colspan="2"> </td></tr> | ||
166 | <tr class="memitem:ga31aca791e4b538c4e4a771eb95cc2d07"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07">GLFW_CONTEXT_VERSION_MINOR</a>   0x00022003</td></tr> | ||
167 | <tr class="memdesc:ga31aca791e4b538c4e4a771eb95cc2d07"><td class="mdescLeft"> </td><td class="mdescRight">Context client API minor version hint and attribute. <a href="group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07">More...</a><br /></td></tr> | ||
168 | <tr class="separator:ga31aca791e4b538c4e4a771eb95cc2d07"><td class="memSeparator" colspan="2"> </td></tr> | ||
169 | <tr class="memitem:gafb9475071aa77c6fb05ca5a5c8678a08"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gafb9475071aa77c6fb05ca5a5c8678a08">GLFW_CONTEXT_REVISION</a>   0x00022004</td></tr> | ||
170 | <tr class="memdesc:gafb9475071aa77c6fb05ca5a5c8678a08"><td class="mdescLeft"> </td><td class="mdescRight">Context client API revision number hint and attribute. <a href="group__window.html#gafb9475071aa77c6fb05ca5a5c8678a08">More...</a><br /></td></tr> | ||
171 | <tr class="separator:gafb9475071aa77c6fb05ca5a5c8678a08"><td class="memSeparator" colspan="2"> </td></tr> | ||
172 | <tr class="memitem:gade3593916b4c507900aa2d6844810e00"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gade3593916b4c507900aa2d6844810e00">GLFW_CONTEXT_ROBUSTNESS</a>   0x00022005</td></tr> | ||
173 | <tr class="memdesc:gade3593916b4c507900aa2d6844810e00"><td class="mdescLeft"> </td><td class="mdescRight">Context robustness hint and attribute. <a href="group__window.html#gade3593916b4c507900aa2d6844810e00">More...</a><br /></td></tr> | ||
174 | <tr class="separator:gade3593916b4c507900aa2d6844810e00"><td class="memSeparator" colspan="2"> </td></tr> | ||
175 | <tr class="memitem:ga13d24b12465da8b28985f46c8557925b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga13d24b12465da8b28985f46c8557925b">GLFW_OPENGL_FORWARD_COMPAT</a>   0x00022006</td></tr> | ||
176 | <tr class="memdesc:ga13d24b12465da8b28985f46c8557925b"><td class="mdescLeft"> </td><td class="mdescRight">OpenGL forward-compatibility hint and attribute. <a href="group__window.html#ga13d24b12465da8b28985f46c8557925b">More...</a><br /></td></tr> | ||
177 | <tr class="separator:ga13d24b12465da8b28985f46c8557925b"><td class="memSeparator" colspan="2"> </td></tr> | ||
178 | <tr class="memitem:ga87ec2df0b915201e950ca42d5d0831e1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga87ec2df0b915201e950ca42d5d0831e1">GLFW_OPENGL_DEBUG_CONTEXT</a>   0x00022007</td></tr> | ||
179 | <tr class="memdesc:ga87ec2df0b915201e950ca42d5d0831e1"><td class="mdescLeft"> </td><td class="mdescRight">Debug mode context hint and attribute. <a href="group__window.html#ga87ec2df0b915201e950ca42d5d0831e1">More...</a><br /></td></tr> | ||
180 | <tr class="separator:ga87ec2df0b915201e950ca42d5d0831e1"><td class="memSeparator" colspan="2"> </td></tr> | ||
181 | <tr class="memitem:ga44f3a6b4261fbe351e0b950b0f372e12"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga44f3a6b4261fbe351e0b950b0f372e12">GLFW_OPENGL_PROFILE</a>   0x00022008</td></tr> | ||
182 | <tr class="memdesc:ga44f3a6b4261fbe351e0b950b0f372e12"><td class="mdescLeft"> </td><td class="mdescRight">OpenGL profile hint and attribute. <a href="group__window.html#ga44f3a6b4261fbe351e0b950b0f372e12">More...</a><br /></td></tr> | ||
183 | <tr class="separator:ga44f3a6b4261fbe351e0b950b0f372e12"><td class="memSeparator" colspan="2"> </td></tr> | ||
184 | <tr class="memitem:ga72b648a8378fe3310c7c7bbecc0f7be6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga72b648a8378fe3310c7c7bbecc0f7be6">GLFW_CONTEXT_RELEASE_BEHAVIOR</a>   0x00022009</td></tr> | ||
185 | <tr class="memdesc:ga72b648a8378fe3310c7c7bbecc0f7be6"><td class="mdescLeft"> </td><td class="mdescRight">Context flush-on-release hint and attribute. <a href="group__window.html#ga72b648a8378fe3310c7c7bbecc0f7be6">More...</a><br /></td></tr> | ||
186 | <tr class="separator:ga72b648a8378fe3310c7c7bbecc0f7be6"><td class="memSeparator" colspan="2"> </td></tr> | ||
187 | <tr class="memitem:ga5a52fdfd46d8249c211f923675728082"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga5a52fdfd46d8249c211f923675728082">GLFW_CONTEXT_NO_ERROR</a>   0x0002200A</td></tr> | ||
188 | <tr class="memdesc:ga5a52fdfd46d8249c211f923675728082"><td class="mdescLeft"> </td><td class="mdescRight">Context error suppression hint and attribute. <a href="group__window.html#ga5a52fdfd46d8249c211f923675728082">More...</a><br /></td></tr> | ||
189 | <tr class="separator:ga5a52fdfd46d8249c211f923675728082"><td class="memSeparator" colspan="2"> </td></tr> | ||
190 | <tr class="memitem:ga5154cebfcd831c1cc63a4d5ac9bb4486"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga5154cebfcd831c1cc63a4d5ac9bb4486">GLFW_CONTEXT_CREATION_API</a>   0x0002200B</td></tr> | ||
191 | <tr class="memdesc:ga5154cebfcd831c1cc63a4d5ac9bb4486"><td class="mdescLeft"> </td><td class="mdescRight">Context creation API hint and attribute. <a href="group__window.html#ga5154cebfcd831c1cc63a4d5ac9bb4486">More...</a><br /></td></tr> | ||
192 | <tr class="separator:ga5154cebfcd831c1cc63a4d5ac9bb4486"><td class="memSeparator" colspan="2"> </td></tr> | ||
193 | <tr class="memitem:ga620bc4280c7eab81ac9f02204500ed47"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga620bc4280c7eab81ac9f02204500ed47">GLFW_SCALE_TO_MONITOR</a>   0x0002200C</td></tr> | ||
194 | <tr class="memdesc:ga620bc4280c7eab81ac9f02204500ed47"><td class="mdescLeft"> </td><td class="mdescRight">Window content area scaling window <a class="el" href="window_guide.html#GLFW_SCALE_TO_MONITOR">window hint</a>. <a href="group__window.html#ga620bc4280c7eab81ac9f02204500ed47">More...</a><br /></td></tr> | ||
195 | <tr class="separator:ga620bc4280c7eab81ac9f02204500ed47"><td class="memSeparator" colspan="2"> </td></tr> | ||
196 | <tr class="memitem:gab6ef2d02eb55800d249ccf1af253c35e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gab6ef2d02eb55800d249ccf1af253c35e">GLFW_COCOA_RETINA_FRAMEBUFFER</a>   0x00023001</td></tr> | ||
197 | <tr class="memdesc:gab6ef2d02eb55800d249ccf1af253c35e"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific <a class="el" href="window_guide.html#GLFW_COCOA_RETINA_FRAMEBUFFER_hint">window hint</a>. <a href="group__window.html#gab6ef2d02eb55800d249ccf1af253c35e">More...</a><br /></td></tr> | ||
198 | <tr class="separator:gab6ef2d02eb55800d249ccf1af253c35e"><td class="memSeparator" colspan="2"> </td></tr> | ||
199 | <tr class="memitem:ga70fa0fbc745de6aa824df79a580e84b5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga70fa0fbc745de6aa824df79a580e84b5">GLFW_COCOA_FRAME_NAME</a>   0x00023002</td></tr> | ||
200 | <tr class="memdesc:ga70fa0fbc745de6aa824df79a580e84b5"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific <a class="el" href="window_guide.html#GLFW_COCOA_FRAME_NAME_hint">window hint</a>. <a href="group__window.html#ga70fa0fbc745de6aa824df79a580e84b5">More...</a><br /></td></tr> | ||
201 | <tr class="separator:ga70fa0fbc745de6aa824df79a580e84b5"><td class="memSeparator" colspan="2"> </td></tr> | ||
202 | <tr class="memitem:ga53c84ed2ddd94e15bbd44b1f6f7feafc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga53c84ed2ddd94e15bbd44b1f6f7feafc">GLFW_COCOA_GRAPHICS_SWITCHING</a>   0x00023003</td></tr> | ||
203 | <tr class="memdesc:ga53c84ed2ddd94e15bbd44b1f6f7feafc"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific <a class="el" href="window_guide.html#GLFW_COCOA_GRAPHICS_SWITCHING_hint">window hint</a>. <a href="group__window.html#ga53c84ed2ddd94e15bbd44b1f6f7feafc">More...</a><br /></td></tr> | ||
204 | <tr class="separator:ga53c84ed2ddd94e15bbd44b1f6f7feafc"><td class="memSeparator" colspan="2"> </td></tr> | ||
205 | <tr class="memitem:gae5a9ea2fccccd92edbd343fc56461114"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gae5a9ea2fccccd92edbd343fc56461114">GLFW_X11_CLASS_NAME</a>   0x00024001</td></tr> | ||
206 | <tr class="memdesc:gae5a9ea2fccccd92edbd343fc56461114"><td class="mdescLeft"> </td><td class="mdescRight">X11 specific <a class="el" href="window_guide.html#GLFW_X11_CLASS_NAME_hint">window hint</a>. <a href="group__window.html#gae5a9ea2fccccd92edbd343fc56461114">More...</a><br /></td></tr> | ||
207 | <tr class="separator:gae5a9ea2fccccd92edbd343fc56461114"><td class="memSeparator" colspan="2"> </td></tr> | ||
208 | <tr class="memitem:ga494c3c0d911e4b860b946530a3e389e8"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga494c3c0d911e4b860b946530a3e389e8">GLFW_X11_INSTANCE_NAME</a>   0x00024002</td></tr> | ||
209 | <tr class="memdesc:ga494c3c0d911e4b860b946530a3e389e8"><td class="mdescLeft"> </td><td class="mdescRight">X11 specific <a class="el" href="window_guide.html#GLFW_X11_CLASS_NAME_hint">window hint</a>. <a href="group__window.html#ga494c3c0d911e4b860b946530a3e389e8">More...</a><br /></td></tr> | ||
210 | <tr class="separator:ga494c3c0d911e4b860b946530a3e389e8"><td class="memSeparator" colspan="2"> </td></tr> | ||
211 | </table><table class="memberdecls"> | ||
212 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a> | ||
213 | Typedefs</h2></td></tr> | ||
214 | <tr class="memitem:ga3c96d80d363e67d13a41b5d1821f3242"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></td></tr> | ||
215 | <tr class="memdesc:ga3c96d80d363e67d13a41b5d1821f3242"><td class="mdescLeft"> </td><td class="mdescRight">Opaque window object. <a href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">More...</a><br /></td></tr> | ||
216 | <tr class="separator:ga3c96d80d363e67d13a41b5d1821f3242"><td class="memSeparator" colspan="2"> </td></tr> | ||
217 | <tr class="memitem:gabe287973a21a8f927cde4db06b8dcbe9"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">GLFWwindowposfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int xpos, int ypos)</td></tr> | ||
218 | <tr class="memdesc:gabe287973a21a8f927cde4db06b8dcbe9"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window position callbacks. <a href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">More...</a><br /></td></tr> | ||
219 | <tr class="separator:gabe287973a21a8f927cde4db06b8dcbe9"><td class="memSeparator" colspan="2"> </td></tr> | ||
220 | <tr class="memitem:gaec0282944bb810f6f3163ec02da90350"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">GLFWwindowsizefun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int width, int height)</td></tr> | ||
221 | <tr class="memdesc:gaec0282944bb810f6f3163ec02da90350"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window size callbacks. <a href="group__window.html#gaec0282944bb810f6f3163ec02da90350">More...</a><br /></td></tr> | ||
222 | <tr class="separator:gaec0282944bb810f6f3163ec02da90350"><td class="memSeparator" colspan="2"> </td></tr> | ||
223 | <tr class="memitem:gabf859b936d80961b7d39013a9694cc3e"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">GLFWwindowclosefun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
224 | <tr class="memdesc:gabf859b936d80961b7d39013a9694cc3e"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window close callbacks. <a href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">More...</a><br /></td></tr> | ||
225 | <tr class="separator:gabf859b936d80961b7d39013a9694cc3e"><td class="memSeparator" colspan="2"> </td></tr> | ||
226 | <tr class="memitem:ga431663a1427d2eb3a273bc398b6737b5"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">GLFWwindowrefreshfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
227 | <tr class="memdesc:ga431663a1427d2eb3a273bc398b6737b5"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window content refresh callbacks. <a href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">More...</a><br /></td></tr> | ||
228 | <tr class="separator:ga431663a1427d2eb3a273bc398b6737b5"><td class="memSeparator" colspan="2"> </td></tr> | ||
229 | <tr class="memitem:gabc58c47e9d93f6eb1862d615c3680f46"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">GLFWwindowfocusfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int focused)</td></tr> | ||
230 | <tr class="memdesc:gabc58c47e9d93f6eb1862d615c3680f46"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window focus callbacks. <a href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">More...</a><br /></td></tr> | ||
231 | <tr class="separator:gabc58c47e9d93f6eb1862d615c3680f46"><td class="memSeparator" colspan="2"> </td></tr> | ||
232 | <tr class="memitem:ga35c658cccba236f26e7adee0e25f6a4f"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">GLFWwindowiconifyfun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int iconified)</td></tr> | ||
233 | <tr class="memdesc:ga35c658cccba236f26e7adee0e25f6a4f"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window iconify callbacks. <a href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">More...</a><br /></td></tr> | ||
234 | <tr class="separator:ga35c658cccba236f26e7adee0e25f6a4f"><td class="memSeparator" colspan="2"> </td></tr> | ||
235 | <tr class="memitem:ga3017196fdaec33ac3e095765176c2a90"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">GLFWwindowmaximizefun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int maximized)</td></tr> | ||
236 | <tr class="memdesc:ga3017196fdaec33ac3e095765176c2a90"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window maximize callbacks. <a href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">More...</a><br /></td></tr> | ||
237 | <tr class="separator:ga3017196fdaec33ac3e095765176c2a90"><td class="memSeparator" colspan="2"> </td></tr> | ||
238 | <tr class="memitem:gae18026e294dde685ed2e5f759533144d"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">GLFWframebuffersizefun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int width, int height)</td></tr> | ||
239 | <tr class="memdesc:gae18026e294dde685ed2e5f759533144d"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for framebuffer size callbacks. <a href="group__window.html#gae18026e294dde685ed2e5f759533144d">More...</a><br /></td></tr> | ||
240 | <tr class="separator:gae18026e294dde685ed2e5f759533144d"><td class="memSeparator" colspan="2"> </td></tr> | ||
241 | <tr class="memitem:ga77f288a2d04bb3c77c7d9615d08cf70e"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">GLFWwindowcontentscalefun</a>) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, float xscale, float yscale)</td></tr> | ||
242 | <tr class="memdesc:ga77f288a2d04bb3c77c7d9615d08cf70e"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for window content scale callbacks. <a href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">More...</a><br /></td></tr> | ||
243 | <tr class="separator:ga77f288a2d04bb3c77c7d9615d08cf70e"><td class="memSeparator" colspan="2"> </td></tr> | ||
244 | <tr class="memitem:ga7cc0a09de172fa7250872046f8c4d2ca"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structGLFWimage.html">GLFWimage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga7cc0a09de172fa7250872046f8c4d2ca">GLFWimage</a></td></tr> | ||
245 | <tr class="memdesc:ga7cc0a09de172fa7250872046f8c4d2ca"><td class="mdescLeft"> </td><td class="mdescRight">Image data. <a href="group__window.html#ga7cc0a09de172fa7250872046f8c4d2ca">More...</a><br /></td></tr> | ||
246 | <tr class="separator:ga7cc0a09de172fa7250872046f8c4d2ca"><td class="memSeparator" colspan="2"> </td></tr> | ||
247 | </table><table class="memberdecls"> | ||
248 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> | ||
249 | Functions</h2></td></tr> | ||
250 | <tr class="memitem:gaa77c4898dfb83344a6b4f76aa16b9a4a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a> (void)</td></tr> | ||
251 | <tr class="memdesc:gaa77c4898dfb83344a6b4f76aa16b9a4a"><td class="mdescLeft"> </td><td class="mdescRight">Resets all window hints to their default values. <a href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">More...</a><br /></td></tr> | ||
252 | <tr class="separator:gaa77c4898dfb83344a6b4f76aa16b9a4a"><td class="memSeparator" colspan="2"> </td></tr> | ||
253 | <tr class="memitem:ga7d9c8c62384b1e2821c4dc48952d2033"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a> (int hint, int value)</td></tr> | ||
254 | <tr class="memdesc:ga7d9c8c62384b1e2821c4dc48952d2033"><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified window hint to the desired value. <a href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">More...</a><br /></td></tr> | ||
255 | <tr class="separator:ga7d9c8c62384b1e2821c4dc48952d2033"><td class="memSeparator" colspan="2"> </td></tr> | ||
256 | <tr class="memitem:ga8cb2782861c9d997bcf2dea97f363e5f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f">glfwWindowHintString</a> (int hint, const char *value)</td></tr> | ||
257 | <tr class="memdesc:ga8cb2782861c9d997bcf2dea97f363e5f"><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified window hint to the desired value. <a href="group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f">More...</a><br /></td></tr> | ||
258 | <tr class="separator:ga8cb2782861c9d997bcf2dea97f363e5f"><td class="memSeparator" colspan="2"> </td></tr> | ||
259 | <tr class="memitem:ga3555a418df92ad53f917597fe2f64aeb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a> (int width, int height, const char *title, <a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> *monitor, <a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *share)</td></tr> | ||
260 | <tr class="memdesc:ga3555a418df92ad53f917597fe2f64aeb"><td class="mdescLeft"> </td><td class="mdescRight">Creates a window and its associated context. <a href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">More...</a><br /></td></tr> | ||
261 | <tr class="separator:ga3555a418df92ad53f917597fe2f64aeb"><td class="memSeparator" colspan="2"> </td></tr> | ||
262 | <tr class="memitem:gacdf43e51376051d2c091662e9fe3d7b2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
263 | <tr class="memdesc:gacdf43e51376051d2c091662e9fe3d7b2"><td class="mdescLeft"> </td><td class="mdescRight">Destroys the specified window and its context. <a href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">More...</a><br /></td></tr> | ||
264 | <tr class="separator:gacdf43e51376051d2c091662e9fe3d7b2"><td class="memSeparator" colspan="2"> </td></tr> | ||
265 | <tr class="memitem:ga24e02fbfefbb81fc45320989f8140ab5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
266 | <tr class="memdesc:ga24e02fbfefbb81fc45320989f8140ab5"><td class="mdescLeft"> </td><td class="mdescRight">Checks the close flag of the specified window. <a href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">More...</a><br /></td></tr> | ||
267 | <tr class="separator:ga24e02fbfefbb81fc45320989f8140ab5"><td class="memSeparator" colspan="2"> </td></tr> | ||
268 | <tr class="memitem:ga49c449dde2a6f87d996f4daaa09d6708"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int value)</td></tr> | ||
269 | <tr class="memdesc:ga49c449dde2a6f87d996f4daaa09d6708"><td class="mdescLeft"> </td><td class="mdescRight">Sets the close flag of the specified window. <a href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">More...</a><br /></td></tr> | ||
270 | <tr class="separator:ga49c449dde2a6f87d996f4daaa09d6708"><td class="memSeparator" colspan="2"> </td></tr> | ||
271 | <tr class="memitem:ga5d877f09e968cef7a360b513306f17ff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga5d877f09e968cef7a360b513306f17ff">glfwSetWindowTitle</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, const char *title)</td></tr> | ||
272 | <tr class="memdesc:ga5d877f09e968cef7a360b513306f17ff"><td class="mdescLeft"> </td><td class="mdescRight">Sets the title of the specified window. <a href="group__window.html#ga5d877f09e968cef7a360b513306f17ff">More...</a><br /></td></tr> | ||
273 | <tr class="separator:ga5d877f09e968cef7a360b513306f17ff"><td class="memSeparator" colspan="2"> </td></tr> | ||
274 | <tr class="memitem:gadd7ccd39fe7a7d1f0904666ae5932dc5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5">glfwSetWindowIcon</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int count, const <a class="el" href="structGLFWimage.html">GLFWimage</a> *images)</td></tr> | ||
275 | <tr class="memdesc:gadd7ccd39fe7a7d1f0904666ae5932dc5"><td class="mdescLeft"> </td><td class="mdescRight">Sets the icon for the specified window. <a href="group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5">More...</a><br /></td></tr> | ||
276 | <tr class="separator:gadd7ccd39fe7a7d1f0904666ae5932dc5"><td class="memSeparator" colspan="2"> </td></tr> | ||
277 | <tr class="memitem:ga73cb526c000876fd8ddf571570fdb634"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga73cb526c000876fd8ddf571570fdb634">glfwGetWindowPos</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int *xpos, int *ypos)</td></tr> | ||
278 | <tr class="memdesc:ga73cb526c000876fd8ddf571570fdb634"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the position of the content area of the specified window. <a href="group__window.html#ga73cb526c000876fd8ddf571570fdb634">More...</a><br /></td></tr> | ||
279 | <tr class="separator:ga73cb526c000876fd8ddf571570fdb634"><td class="memSeparator" colspan="2"> </td></tr> | ||
280 | <tr class="memitem:ga1abb6d690e8c88e0c8cd1751356dbca8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8">glfwSetWindowPos</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int xpos, int ypos)</td></tr> | ||
281 | <tr class="memdesc:ga1abb6d690e8c88e0c8cd1751356dbca8"><td class="mdescLeft"> </td><td class="mdescRight">Sets the position of the content area of the specified window. <a href="group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8">More...</a><br /></td></tr> | ||
282 | <tr class="separator:ga1abb6d690e8c88e0c8cd1751356dbca8"><td class="memSeparator" colspan="2"> </td></tr> | ||
283 | <tr class="memitem:gaeea7cbc03373a41fb51cfbf9f2a5d4c6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int *width, int *height)</td></tr> | ||
284 | <tr class="memdesc:gaeea7cbc03373a41fb51cfbf9f2a5d4c6"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the size of the content area of the specified window. <a href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">More...</a><br /></td></tr> | ||
285 | <tr class="separator:gaeea7cbc03373a41fb51cfbf9f2a5d4c6"><td class="memSeparator" colspan="2"> </td></tr> | ||
286 | <tr class="memitem:gac314fa6cec7d2d307be9963e2709cc90"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gac314fa6cec7d2d307be9963e2709cc90">glfwSetWindowSizeLimits</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int minwidth, int minheight, int maxwidth, int maxheight)</td></tr> | ||
287 | <tr class="memdesc:gac314fa6cec7d2d307be9963e2709cc90"><td class="mdescLeft"> </td><td class="mdescRight">Sets the size limits of the specified window. <a href="group__window.html#gac314fa6cec7d2d307be9963e2709cc90">More...</a><br /></td></tr> | ||
288 | <tr class="separator:gac314fa6cec7d2d307be9963e2709cc90"><td class="memSeparator" colspan="2"> </td></tr> | ||
289 | <tr class="memitem:ga72ac8cb1ee2e312a878b55153d81b937"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga72ac8cb1ee2e312a878b55153d81b937">glfwSetWindowAspectRatio</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int numer, int denom)</td></tr> | ||
290 | <tr class="memdesc:ga72ac8cb1ee2e312a878b55153d81b937"><td class="mdescLeft"> </td><td class="mdescRight">Sets the aspect ratio of the specified window. <a href="group__window.html#ga72ac8cb1ee2e312a878b55153d81b937">More...</a><br /></td></tr> | ||
291 | <tr class="separator:ga72ac8cb1ee2e312a878b55153d81b937"><td class="memSeparator" colspan="2"> </td></tr> | ||
292 | <tr class="memitem:ga371911f12c74c504dd8d47d832d095cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga371911f12c74c504dd8d47d832d095cb">glfwSetWindowSize</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int width, int height)</td></tr> | ||
293 | <tr class="memdesc:ga371911f12c74c504dd8d47d832d095cb"><td class="mdescLeft"> </td><td class="mdescRight">Sets the size of the content area of the specified window. <a href="group__window.html#ga371911f12c74c504dd8d47d832d095cb">More...</a><br /></td></tr> | ||
294 | <tr class="separator:ga371911f12c74c504dd8d47d832d095cb"><td class="memSeparator" colspan="2"> </td></tr> | ||
295 | <tr class="memitem:ga0e2637a4161afb283f5300c7f94785c9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int *width, int *height)</td></tr> | ||
296 | <tr class="memdesc:ga0e2637a4161afb283f5300c7f94785c9"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the size of the framebuffer of the specified window. <a href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">More...</a><br /></td></tr> | ||
297 | <tr class="separator:ga0e2637a4161afb283f5300c7f94785c9"><td class="memSeparator" colspan="2"> </td></tr> | ||
298 | <tr class="memitem:ga1a9fd382058c53101b21cf211898f1f1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga1a9fd382058c53101b21cf211898f1f1">glfwGetWindowFrameSize</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int *left, int *top, int *right, int *bottom)</td></tr> | ||
299 | <tr class="memdesc:ga1a9fd382058c53101b21cf211898f1f1"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the size of the frame of the window. <a href="group__window.html#ga1a9fd382058c53101b21cf211898f1f1">More...</a><br /></td></tr> | ||
300 | <tr class="separator:ga1a9fd382058c53101b21cf211898f1f1"><td class="memSeparator" colspan="2"> </td></tr> | ||
301 | <tr class="memitem:gaf5d31de9c19c4f994facea64d2b3106c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaf5d31de9c19c4f994facea64d2b3106c">glfwGetWindowContentScale</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, float *xscale, float *yscale)</td></tr> | ||
302 | <tr class="memdesc:gaf5d31de9c19c4f994facea64d2b3106c"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the content scale for the specified window. <a href="group__window.html#gaf5d31de9c19c4f994facea64d2b3106c">More...</a><br /></td></tr> | ||
303 | <tr class="separator:gaf5d31de9c19c4f994facea64d2b3106c"><td class="memSeparator" colspan="2"> </td></tr> | ||
304 | <tr class="memitem:gad09f0bd7a6307c4533b7061828480a84"><td class="memItemLeft" align="right" valign="top">float </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gad09f0bd7a6307c4533b7061828480a84">glfwGetWindowOpacity</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
305 | <tr class="memdesc:gad09f0bd7a6307c4533b7061828480a84"><td class="mdescLeft"> </td><td class="mdescRight">Returns the opacity of the whole window. <a href="group__window.html#gad09f0bd7a6307c4533b7061828480a84">More...</a><br /></td></tr> | ||
306 | <tr class="separator:gad09f0bd7a6307c4533b7061828480a84"><td class="memSeparator" colspan="2"> </td></tr> | ||
307 | <tr class="memitem:gac31caeb3d1088831b13d2c8a156802e9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gac31caeb3d1088831b13d2c8a156802e9">glfwSetWindowOpacity</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, float opacity)</td></tr> | ||
308 | <tr class="memdesc:gac31caeb3d1088831b13d2c8a156802e9"><td class="mdescLeft"> </td><td class="mdescRight">Sets the opacity of the whole window. <a href="group__window.html#gac31caeb3d1088831b13d2c8a156802e9">More...</a><br /></td></tr> | ||
309 | <tr class="separator:gac31caeb3d1088831b13d2c8a156802e9"><td class="memSeparator" colspan="2"> </td></tr> | ||
310 | <tr class="memitem:ga1bb559c0ebaad63c5c05ad2a066779c4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4">glfwIconifyWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
311 | <tr class="memdesc:ga1bb559c0ebaad63c5c05ad2a066779c4"><td class="mdescLeft"> </td><td class="mdescRight">Iconifies the specified window. <a href="group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4">More...</a><br /></td></tr> | ||
312 | <tr class="separator:ga1bb559c0ebaad63c5c05ad2a066779c4"><td class="memSeparator" colspan="2"> </td></tr> | ||
313 | <tr class="memitem:ga52527a5904b47d802b6b4bb519cdebc7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga52527a5904b47d802b6b4bb519cdebc7">glfwRestoreWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
314 | <tr class="memdesc:ga52527a5904b47d802b6b4bb519cdebc7"><td class="mdescLeft"> </td><td class="mdescRight">Restores the specified window. <a href="group__window.html#ga52527a5904b47d802b6b4bb519cdebc7">More...</a><br /></td></tr> | ||
315 | <tr class="separator:ga52527a5904b47d802b6b4bb519cdebc7"><td class="memSeparator" colspan="2"> </td></tr> | ||
316 | <tr class="memitem:ga3f541387449d911274324ae7f17ec56b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga3f541387449d911274324ae7f17ec56b">glfwMaximizeWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
317 | <tr class="memdesc:ga3f541387449d911274324ae7f17ec56b"><td class="mdescLeft"> </td><td class="mdescRight">Maximizes the specified window. <a href="group__window.html#ga3f541387449d911274324ae7f17ec56b">More...</a><br /></td></tr> | ||
318 | <tr class="separator:ga3f541387449d911274324ae7f17ec56b"><td class="memSeparator" colspan="2"> </td></tr> | ||
319 | <tr class="memitem:ga61be47917b72536a148300f46494fc66"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga61be47917b72536a148300f46494fc66">glfwShowWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
320 | <tr class="memdesc:ga61be47917b72536a148300f46494fc66"><td class="mdescLeft"> </td><td class="mdescRight">Makes the specified window visible. <a href="group__window.html#ga61be47917b72536a148300f46494fc66">More...</a><br /></td></tr> | ||
321 | <tr class="separator:ga61be47917b72536a148300f46494fc66"><td class="memSeparator" colspan="2"> </td></tr> | ||
322 | <tr class="memitem:ga49401f82a1ba5f15db5590728314d47c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga49401f82a1ba5f15db5590728314d47c">glfwHideWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
323 | <tr class="memdesc:ga49401f82a1ba5f15db5590728314d47c"><td class="mdescLeft"> </td><td class="mdescRight">Hides the specified window. <a href="group__window.html#ga49401f82a1ba5f15db5590728314d47c">More...</a><br /></td></tr> | ||
324 | <tr class="separator:ga49401f82a1ba5f15db5590728314d47c"><td class="memSeparator" colspan="2"> </td></tr> | ||
325 | <tr class="memitem:ga873780357abd3f3a081d71a40aae45a1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga873780357abd3f3a081d71a40aae45a1">glfwFocusWindow</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
326 | <tr class="memdesc:ga873780357abd3f3a081d71a40aae45a1"><td class="mdescLeft"> </td><td class="mdescRight">Brings the specified window to front and sets input focus. <a href="group__window.html#ga873780357abd3f3a081d71a40aae45a1">More...</a><br /></td></tr> | ||
327 | <tr class="separator:ga873780357abd3f3a081d71a40aae45a1"><td class="memSeparator" colspan="2"> </td></tr> | ||
328 | <tr class="memitem:ga2f8d59323fc4692c1d54ba08c863a703"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga2f8d59323fc4692c1d54ba08c863a703">glfwRequestWindowAttention</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
329 | <tr class="memdesc:ga2f8d59323fc4692c1d54ba08c863a703"><td class="mdescLeft"> </td><td class="mdescRight">Requests user attention to the specified window. <a href="group__window.html#ga2f8d59323fc4692c1d54ba08c863a703">More...</a><br /></td></tr> | ||
330 | <tr class="separator:ga2f8d59323fc4692c1d54ba08c863a703"><td class="memSeparator" colspan="2"> </td></tr> | ||
331 | <tr class="memitem:ga4d766499ac02c60f02221a9dfab87299"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga4d766499ac02c60f02221a9dfab87299">glfwGetWindowMonitor</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
332 | <tr class="memdesc:ga4d766499ac02c60f02221a9dfab87299"><td class="mdescLeft"> </td><td class="mdescRight">Returns the monitor that the window uses for full screen mode. <a href="group__window.html#ga4d766499ac02c60f02221a9dfab87299">More...</a><br /></td></tr> | ||
333 | <tr class="separator:ga4d766499ac02c60f02221a9dfab87299"><td class="memSeparator" colspan="2"> </td></tr> | ||
334 | <tr class="memitem:ga81c76c418af80a1cce7055bccb0ae0a7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> *monitor, int xpos, int ypos, int width, int height, int refreshRate)</td></tr> | ||
335 | <tr class="memdesc:ga81c76c418af80a1cce7055bccb0ae0a7"><td class="mdescLeft"> </td><td class="mdescRight">Sets the mode, monitor, video mode and placement of a window. <a href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">More...</a><br /></td></tr> | ||
336 | <tr class="separator:ga81c76c418af80a1cce7055bccb0ae0a7"><td class="memSeparator" colspan="2"> </td></tr> | ||
337 | <tr class="memitem:gacccb29947ea4b16860ebef42c2cb9337"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int attrib)</td></tr> | ||
338 | <tr class="memdesc:gacccb29947ea4b16860ebef42c2cb9337"><td class="mdescLeft"> </td><td class="mdescRight">Returns an attribute of the specified window. <a href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">More...</a><br /></td></tr> | ||
339 | <tr class="separator:gacccb29947ea4b16860ebef42c2cb9337"><td class="memSeparator" colspan="2"> </td></tr> | ||
340 | <tr class="memitem:gace2afda29b4116ec012e410a6819033e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gace2afda29b4116ec012e410a6819033e">glfwSetWindowAttrib</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int attrib, int value)</td></tr> | ||
341 | <tr class="memdesc:gace2afda29b4116ec012e410a6819033e"><td class="mdescLeft"> </td><td class="mdescRight">Sets an attribute of the specified window. <a href="group__window.html#gace2afda29b4116ec012e410a6819033e">More...</a><br /></td></tr> | ||
342 | <tr class="separator:gace2afda29b4116ec012e410a6819033e"><td class="memSeparator" colspan="2"> </td></tr> | ||
343 | <tr class="memitem:ga3d2fc6026e690ab31a13f78bc9fd3651"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651">glfwSetWindowUserPointer</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, void *pointer)</td></tr> | ||
344 | <tr class="memdesc:ga3d2fc6026e690ab31a13f78bc9fd3651"><td class="mdescLeft"> </td><td class="mdescRight">Sets the user pointer of the specified window. <a href="group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651">More...</a><br /></td></tr> | ||
345 | <tr class="separator:ga3d2fc6026e690ab31a13f78bc9fd3651"><td class="memSeparator" colspan="2"> </td></tr> | ||
346 | <tr class="memitem:gae77a4add0d2023ca21ff1443ced01653"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gae77a4add0d2023ca21ff1443ced01653">glfwGetWindowUserPointer</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
347 | <tr class="memdesc:gae77a4add0d2023ca21ff1443ced01653"><td class="mdescLeft"> </td><td class="mdescRight">Returns the user pointer of the specified window. <a href="group__window.html#gae77a4add0d2023ca21ff1443ced01653">More...</a><br /></td></tr> | ||
348 | <tr class="separator:gae77a4add0d2023ca21ff1443ced01653"><td class="memSeparator" colspan="2"> </td></tr> | ||
349 | <tr class="memitem:ga08bdfbba88934f9c4f92fd757979ac74"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">GLFWwindowposfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga08bdfbba88934f9c4f92fd757979ac74">glfwSetWindowPosCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">GLFWwindowposfun</a> callback)</td></tr> | ||
350 | <tr class="memdesc:ga08bdfbba88934f9c4f92fd757979ac74"><td class="mdescLeft"> </td><td class="mdescRight">Sets the position callback for the specified window. <a href="group__window.html#ga08bdfbba88934f9c4f92fd757979ac74">More...</a><br /></td></tr> | ||
351 | <tr class="separator:ga08bdfbba88934f9c4f92fd757979ac74"><td class="memSeparator" colspan="2"> </td></tr> | ||
352 | <tr class="memitem:gad91b8b047a0c4c6033c38853864c34f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">GLFWwindowsizefun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gad91b8b047a0c4c6033c38853864c34f8">glfwSetWindowSizeCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">GLFWwindowsizefun</a> callback)</td></tr> | ||
353 | <tr class="memdesc:gad91b8b047a0c4c6033c38853864c34f8"><td class="mdescLeft"> </td><td class="mdescRight">Sets the size callback for the specified window. <a href="group__window.html#gad91b8b047a0c4c6033c38853864c34f8">More...</a><br /></td></tr> | ||
354 | <tr class="separator:gad91b8b047a0c4c6033c38853864c34f8"><td class="memSeparator" colspan="2"> </td></tr> | ||
355 | <tr class="memitem:gada646d775a7776a95ac000cfc1885331"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">GLFWwindowclosefun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gada646d775a7776a95ac000cfc1885331">glfwSetWindowCloseCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">GLFWwindowclosefun</a> callback)</td></tr> | ||
356 | <tr class="memdesc:gada646d775a7776a95ac000cfc1885331"><td class="mdescLeft"> </td><td class="mdescRight">Sets the close callback for the specified window. <a href="group__window.html#gada646d775a7776a95ac000cfc1885331">More...</a><br /></td></tr> | ||
357 | <tr class="separator:gada646d775a7776a95ac000cfc1885331"><td class="memSeparator" colspan="2"> </td></tr> | ||
358 | <tr class="memitem:ga1c5c7eb889c33c7f4d10dd35b327654e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">GLFWwindowrefreshfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga1c5c7eb889c33c7f4d10dd35b327654e">glfwSetWindowRefreshCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">GLFWwindowrefreshfun</a> callback)</td></tr> | ||
359 | <tr class="memdesc:ga1c5c7eb889c33c7f4d10dd35b327654e"><td class="mdescLeft"> </td><td class="mdescRight">Sets the refresh callback for the specified window. <a href="group__window.html#ga1c5c7eb889c33c7f4d10dd35b327654e">More...</a><br /></td></tr> | ||
360 | <tr class="separator:ga1c5c7eb889c33c7f4d10dd35b327654e"><td class="memSeparator" colspan="2"> </td></tr> | ||
361 | <tr class="memitem:gac2d83c4a10f071baf841f6730528e66c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">GLFWwindowfocusfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gac2d83c4a10f071baf841f6730528e66c">glfwSetWindowFocusCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">GLFWwindowfocusfun</a> callback)</td></tr> | ||
362 | <tr class="memdesc:gac2d83c4a10f071baf841f6730528e66c"><td class="mdescLeft"> </td><td class="mdescRight">Sets the focus callback for the specified window. <a href="group__window.html#gac2d83c4a10f071baf841f6730528e66c">More...</a><br /></td></tr> | ||
363 | <tr class="separator:gac2d83c4a10f071baf841f6730528e66c"><td class="memSeparator" colspan="2"> </td></tr> | ||
364 | <tr class="memitem:gac793e9efd255567b5fb8b445052cfd3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">GLFWwindowiconifyfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gac793e9efd255567b5fb8b445052cfd3e">glfwSetWindowIconifyCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">GLFWwindowiconifyfun</a> callback)</td></tr> | ||
365 | <tr class="memdesc:gac793e9efd255567b5fb8b445052cfd3e"><td class="mdescLeft"> </td><td class="mdescRight">Sets the iconify callback for the specified window. <a href="group__window.html#gac793e9efd255567b5fb8b445052cfd3e">More...</a><br /></td></tr> | ||
366 | <tr class="separator:gac793e9efd255567b5fb8b445052cfd3e"><td class="memSeparator" colspan="2"> </td></tr> | ||
367 | <tr class="memitem:gacbe64c339fbd94885e62145563b6dc93"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">GLFWwindowmaximizefun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gacbe64c339fbd94885e62145563b6dc93">glfwSetWindowMaximizeCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">GLFWwindowmaximizefun</a> callback)</td></tr> | ||
368 | <tr class="memdesc:gacbe64c339fbd94885e62145563b6dc93"><td class="mdescLeft"> </td><td class="mdescRight">Sets the maximize callback for the specified window. <a href="group__window.html#gacbe64c339fbd94885e62145563b6dc93">More...</a><br /></td></tr> | ||
369 | <tr class="separator:gacbe64c339fbd94885e62145563b6dc93"><td class="memSeparator" colspan="2"> </td></tr> | ||
370 | <tr class="memitem:gab3fb7c3366577daef18c0023e2a8591f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">GLFWframebuffersizefun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">glfwSetFramebufferSizeCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">GLFWframebuffersizefun</a> callback)</td></tr> | ||
371 | <tr class="memdesc:gab3fb7c3366577daef18c0023e2a8591f"><td class="mdescLeft"> </td><td class="mdescRight">Sets the framebuffer resize callback for the specified window. <a href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">More...</a><br /></td></tr> | ||
372 | <tr class="separator:gab3fb7c3366577daef18c0023e2a8591f"><td class="memSeparator" colspan="2"> </td></tr> | ||
373 | <tr class="memitem:gaf2832ebb5aa6c252a2d261de002c92d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">GLFWwindowcontentscalefun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6">glfwSetWindowContentScaleCallback</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, <a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">GLFWwindowcontentscalefun</a> callback)</td></tr> | ||
374 | <tr class="memdesc:gaf2832ebb5aa6c252a2d261de002c92d6"><td class="mdescLeft"> </td><td class="mdescRight">Sets the window content scale callback for the specified window. <a href="group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6">More...</a><br /></td></tr> | ||
375 | <tr class="separator:gaf2832ebb5aa6c252a2d261de002c92d6"><td class="memSeparator" colspan="2"> </td></tr> | ||
376 | <tr class="memitem:ga37bd57223967b4211d60ca1a0bf3c832"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a> (void)</td></tr> | ||
377 | <tr class="memdesc:ga37bd57223967b4211d60ca1a0bf3c832"><td class="mdescLeft"> </td><td class="mdescRight">Processes all pending events. <a href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">More...</a><br /></td></tr> | ||
378 | <tr class="separator:ga37bd57223967b4211d60ca1a0bf3c832"><td class="memSeparator" colspan="2"> </td></tr> | ||
379 | <tr class="memitem:ga554e37d781f0a997656c26b2c56c835e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> (void)</td></tr> | ||
380 | <tr class="memdesc:ga554e37d781f0a997656c26b2c56c835e"><td class="mdescLeft"> </td><td class="mdescRight">Waits until events are queued and processes them. <a href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">More...</a><br /></td></tr> | ||
381 | <tr class="separator:ga554e37d781f0a997656c26b2c56c835e"><td class="memSeparator" colspan="2"> </td></tr> | ||
382 | <tr class="memitem:ga605a178db92f1a7f1a925563ef3ea2cf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a> (double timeout)</td></tr> | ||
383 | <tr class="memdesc:ga605a178db92f1a7f1a925563ef3ea2cf"><td class="mdescLeft"> </td><td class="mdescRight">Waits with timeout until events are queued and processes them. <a href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">More...</a><br /></td></tr> | ||
384 | <tr class="separator:ga605a178db92f1a7f1a925563ef3ea2cf"><td class="memSeparator" colspan="2"> </td></tr> | ||
385 | <tr class="memitem:gab5997a25187e9fd5c6f2ecbbc8dfd7e9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9">glfwPostEmptyEvent</a> (void)</td></tr> | ||
386 | <tr class="memdesc:gab5997a25187e9fd5c6f2ecbbc8dfd7e9"><td class="mdescLeft"> </td><td class="mdescRight">Posts an empty event to the event queue. <a href="group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9">More...</a><br /></td></tr> | ||
387 | <tr class="separator:gab5997a25187e9fd5c6f2ecbbc8dfd7e9"><td class="memSeparator" colspan="2"> </td></tr> | ||
388 | <tr class="memitem:ga15a5a1ee5b3c2ca6b15ca209a12efd14"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
389 | <tr class="memdesc:ga15a5a1ee5b3c2ca6b15ca209a12efd14"><td class="mdescLeft"> </td><td class="mdescRight">Swaps the front and back buffers of the specified window. <a href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">More...</a><br /></td></tr> | ||
390 | <tr class="separator:ga15a5a1ee5b3c2ca6b15ca209a12efd14"><td class="memSeparator" colspan="2"> </td></tr> | ||
391 | </table> | ||
392 | <h2 class="groupheader">Macro Definition Documentation</h2> | ||
393 | <a id="ga54ddb14825a1541a56e22afb5f832a9e" name="ga54ddb14825a1541a56e22afb5f832a9e"></a> | ||
394 | <h2 class="memtitle"><span class="permalink"><a href="#ga54ddb14825a1541a56e22afb5f832a9e">◆ </a></span>GLFW_FOCUSED</h2> | ||
395 | |||
396 | <div class="memitem"> | ||
397 | <div class="memproto"> | ||
398 | <table class="memname"> | ||
399 | <tr> | ||
400 | <td class="memname">#define GLFW_FOCUSED   0x00020001</td> | ||
401 | </tr> | ||
402 | </table> | ||
403 | </div><div class="memdoc"> | ||
404 | <p >Input focus <a class="el" href="window_guide.html#GLFW_FOCUSED_hint">window hint</a> or <a class="el" href="window_guide.html#GLFW_FOCUSED_attrib">window attribute</a>. </p> | ||
405 | |||
406 | </div> | ||
407 | </div> | ||
408 | <a id="ga39d44b7c056e55e581355a92d240b58a" name="ga39d44b7c056e55e581355a92d240b58a"></a> | ||
409 | <h2 class="memtitle"><span class="permalink"><a href="#ga39d44b7c056e55e581355a92d240b58a">◆ </a></span>GLFW_ICONIFIED</h2> | ||
410 | |||
411 | <div class="memitem"> | ||
412 | <div class="memproto"> | ||
413 | <table class="memname"> | ||
414 | <tr> | ||
415 | <td class="memname">#define GLFW_ICONIFIED   0x00020002</td> | ||
416 | </tr> | ||
417 | </table> | ||
418 | </div><div class="memdoc"> | ||
419 | <p >Window iconification <a class="el" href="window_guide.html#GLFW_ICONIFIED_attrib">window attribute</a>. </p> | ||
420 | |||
421 | </div> | ||
422 | </div> | ||
423 | <a id="gadba13c7a1b3aa40831eb2beedbd5bd1d" name="gadba13c7a1b3aa40831eb2beedbd5bd1d"></a> | ||
424 | <h2 class="memtitle"><span class="permalink"><a href="#gadba13c7a1b3aa40831eb2beedbd5bd1d">◆ </a></span>GLFW_RESIZABLE</h2> | ||
425 | |||
426 | <div class="memitem"> | ||
427 | <div class="memproto"> | ||
428 | <table class="memname"> | ||
429 | <tr> | ||
430 | <td class="memname">#define GLFW_RESIZABLE   0x00020003</td> | ||
431 | </tr> | ||
432 | </table> | ||
433 | </div><div class="memdoc"> | ||
434 | <p >Window resize-ability <a class="el" href="window_guide.html#GLFW_RESIZABLE_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_RESIZABLE_attrib">window attribute</a>. </p> | ||
435 | |||
436 | </div> | ||
437 | </div> | ||
438 | <a id="gafb3cdc45297e06d8f1eb13adc69ca6c4" name="gafb3cdc45297e06d8f1eb13adc69ca6c4"></a> | ||
439 | <h2 class="memtitle"><span class="permalink"><a href="#gafb3cdc45297e06d8f1eb13adc69ca6c4">◆ </a></span>GLFW_VISIBLE</h2> | ||
440 | |||
441 | <div class="memitem"> | ||
442 | <div class="memproto"> | ||
443 | <table class="memname"> | ||
444 | <tr> | ||
445 | <td class="memname">#define GLFW_VISIBLE   0x00020004</td> | ||
446 | </tr> | ||
447 | </table> | ||
448 | </div><div class="memdoc"> | ||
449 | <p >Window visibility <a class="el" href="window_guide.html#GLFW_VISIBLE_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_VISIBLE_attrib">window attribute</a>. </p> | ||
450 | |||
451 | </div> | ||
452 | </div> | ||
453 | <a id="ga21b854d36314c94d65aed84405b2f25e" name="ga21b854d36314c94d65aed84405b2f25e"></a> | ||
454 | <h2 class="memtitle"><span class="permalink"><a href="#ga21b854d36314c94d65aed84405b2f25e">◆ </a></span>GLFW_DECORATED</h2> | ||
455 | |||
456 | <div class="memitem"> | ||
457 | <div class="memproto"> | ||
458 | <table class="memname"> | ||
459 | <tr> | ||
460 | <td class="memname">#define GLFW_DECORATED   0x00020005</td> | ||
461 | </tr> | ||
462 | </table> | ||
463 | </div><div class="memdoc"> | ||
464 | <p >Window decoration <a class="el" href="window_guide.html#GLFW_DECORATED_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_DECORATED_attrib">window attribute</a>. </p> | ||
465 | |||
466 | </div> | ||
467 | </div> | ||
468 | <a id="ga9d9874fc928200136a6dcdad726aa252" name="ga9d9874fc928200136a6dcdad726aa252"></a> | ||
469 | <h2 class="memtitle"><span class="permalink"><a href="#ga9d9874fc928200136a6dcdad726aa252">◆ </a></span>GLFW_AUTO_ICONIFY</h2> | ||
470 | |||
471 | <div class="memitem"> | ||
472 | <div class="memproto"> | ||
473 | <table class="memname"> | ||
474 | <tr> | ||
475 | <td class="memname">#define GLFW_AUTO_ICONIFY   0x00020006</td> | ||
476 | </tr> | ||
477 | </table> | ||
478 | </div><div class="memdoc"> | ||
479 | <p >Window auto-iconification <a class="el" href="window_guide.html#GLFW_AUTO_ICONIFY_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_AUTO_ICONIFY_attrib">window attribute</a>. </p> | ||
480 | |||
481 | </div> | ||
482 | </div> | ||
483 | <a id="ga7fb0be51407783b41adbf5bec0b09d80" name="ga7fb0be51407783b41adbf5bec0b09d80"></a> | ||
484 | <h2 class="memtitle"><span class="permalink"><a href="#ga7fb0be51407783b41adbf5bec0b09d80">◆ </a></span>GLFW_FLOATING</h2> | ||
485 | |||
486 | <div class="memitem"> | ||
487 | <div class="memproto"> | ||
488 | <table class="memname"> | ||
489 | <tr> | ||
490 | <td class="memname">#define GLFW_FLOATING   0x00020007</td> | ||
491 | </tr> | ||
492 | </table> | ||
493 | </div><div class="memdoc"> | ||
494 | <p >Window decoration <a class="el" href="window_guide.html#GLFW_FLOATING_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_FLOATING_attrib">window attribute</a>. </p> | ||
495 | |||
496 | </div> | ||
497 | </div> | ||
498 | <a id="gad8ccb396253ad0b72c6d4c917eb38a03" name="gad8ccb396253ad0b72c6d4c917eb38a03"></a> | ||
499 | <h2 class="memtitle"><span class="permalink"><a href="#gad8ccb396253ad0b72c6d4c917eb38a03">◆ </a></span>GLFW_MAXIMIZED</h2> | ||
500 | |||
501 | <div class="memitem"> | ||
502 | <div class="memproto"> | ||
503 | <table class="memname"> | ||
504 | <tr> | ||
505 | <td class="memname">#define GLFW_MAXIMIZED   0x00020008</td> | ||
506 | </tr> | ||
507 | </table> | ||
508 | </div><div class="memdoc"> | ||
509 | <p >Window maximization <a class="el" href="window_guide.html#GLFW_MAXIMIZED_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_MAXIMIZED_attrib">window attribute</a>. </p> | ||
510 | |||
511 | </div> | ||
512 | </div> | ||
513 | <a id="ga5ac0847c0aa0b3619f2855707b8a7a77" name="ga5ac0847c0aa0b3619f2855707b8a7a77"></a> | ||
514 | <h2 class="memtitle"><span class="permalink"><a href="#ga5ac0847c0aa0b3619f2855707b8a7a77">◆ </a></span>GLFW_CENTER_CURSOR</h2> | ||
515 | |||
516 | <div class="memitem"> | ||
517 | <div class="memproto"> | ||
518 | <table class="memname"> | ||
519 | <tr> | ||
520 | <td class="memname">#define GLFW_CENTER_CURSOR   0x00020009</td> | ||
521 | </tr> | ||
522 | </table> | ||
523 | </div><div class="memdoc"> | ||
524 | <p >Cursor centering <a class="el" href="window_guide.html#GLFW_CENTER_CURSOR_hint">window hint</a>. </p> | ||
525 | |||
526 | </div> | ||
527 | </div> | ||
528 | <a id="ga60a0578c3b9449027d683a9c6abb9f14" name="ga60a0578c3b9449027d683a9c6abb9f14"></a> | ||
529 | <h2 class="memtitle"><span class="permalink"><a href="#ga60a0578c3b9449027d683a9c6abb9f14">◆ </a></span>GLFW_TRANSPARENT_FRAMEBUFFER</h2> | ||
530 | |||
531 | <div class="memitem"> | ||
532 | <div class="memproto"> | ||
533 | <table class="memname"> | ||
534 | <tr> | ||
535 | <td class="memname">#define GLFW_TRANSPARENT_FRAMEBUFFER   0x0002000A</td> | ||
536 | </tr> | ||
537 | </table> | ||
538 | </div><div class="memdoc"> | ||
539 | <p >Window framebuffer transparency <a class="el" href="window_guide.html#GLFW_TRANSPARENT_FRAMEBUFFER_hint">window hint</a> and <a class="el" href="window_guide.html#GLFW_TRANSPARENT_FRAMEBUFFER_attrib">window attribute</a>. </p> | ||
540 | |||
541 | </div> | ||
542 | </div> | ||
543 | <a id="ga8665c71c6fa3d22425c6a0e8a3f89d8a" name="ga8665c71c6fa3d22425c6a0e8a3f89d8a"></a> | ||
544 | <h2 class="memtitle"><span class="permalink"><a href="#ga8665c71c6fa3d22425c6a0e8a3f89d8a">◆ </a></span>GLFW_HOVERED</h2> | ||
545 | |||
546 | <div class="memitem"> | ||
547 | <div class="memproto"> | ||
548 | <table class="memname"> | ||
549 | <tr> | ||
550 | <td class="memname">#define GLFW_HOVERED   0x0002000B</td> | ||
551 | </tr> | ||
552 | </table> | ||
553 | </div><div class="memdoc"> | ||
554 | <p >Mouse cursor hover <a class="el" href="window_guide.html#GLFW_HOVERED_attrib">window attribute</a>. </p> | ||
555 | |||
556 | </div> | ||
557 | </div> | ||
558 | <a id="gafa94b1da34bfd6488c0d709761504dfc" name="gafa94b1da34bfd6488c0d709761504dfc"></a> | ||
559 | <h2 class="memtitle"><span class="permalink"><a href="#gafa94b1da34bfd6488c0d709761504dfc">◆ </a></span>GLFW_FOCUS_ON_SHOW</h2> | ||
560 | |||
561 | <div class="memitem"> | ||
562 | <div class="memproto"> | ||
563 | <table class="memname"> | ||
564 | <tr> | ||
565 | <td class="memname">#define GLFW_FOCUS_ON_SHOW   0x0002000C</td> | ||
566 | </tr> | ||
567 | </table> | ||
568 | </div><div class="memdoc"> | ||
569 | <p >Input focus <a class="el" href="window_guide.html#GLFW_FOCUS_ON_SHOW_hint">window hint</a> or <a class="el" href="window_guide.html#GLFW_FOCUS_ON_SHOW_attrib">window attribute</a>. </p> | ||
570 | |||
571 | </div> | ||
572 | </div> | ||
573 | <a id="gaf78ed8e417dbcc1e354906cc2708c982" name="gaf78ed8e417dbcc1e354906cc2708c982"></a> | ||
574 | <h2 class="memtitle"><span class="permalink"><a href="#gaf78ed8e417dbcc1e354906cc2708c982">◆ </a></span>GLFW_RED_BITS</h2> | ||
575 | |||
576 | <div class="memitem"> | ||
577 | <div class="memproto"> | ||
578 | <table class="memname"> | ||
579 | <tr> | ||
580 | <td class="memname">#define GLFW_RED_BITS   0x00021001</td> | ||
581 | </tr> | ||
582 | </table> | ||
583 | </div><div class="memdoc"> | ||
584 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_RED_BITS">hint</a>. </p> | ||
585 | |||
586 | </div> | ||
587 | </div> | ||
588 | <a id="gafba3b72638c914e5fb8a237dd4c50d4d" name="gafba3b72638c914e5fb8a237dd4c50d4d"></a> | ||
589 | <h2 class="memtitle"><span class="permalink"><a href="#gafba3b72638c914e5fb8a237dd4c50d4d">◆ </a></span>GLFW_GREEN_BITS</h2> | ||
590 | |||
591 | <div class="memitem"> | ||
592 | <div class="memproto"> | ||
593 | <table class="memname"> | ||
594 | <tr> | ||
595 | <td class="memname">#define GLFW_GREEN_BITS   0x00021002</td> | ||
596 | </tr> | ||
597 | </table> | ||
598 | </div><div class="memdoc"> | ||
599 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_GREEN_BITS">hint</a>. </p> | ||
600 | |||
601 | </div> | ||
602 | </div> | ||
603 | <a id="gab292ea403db6d514537b515311bf9ae3" name="gab292ea403db6d514537b515311bf9ae3"></a> | ||
604 | <h2 class="memtitle"><span class="permalink"><a href="#gab292ea403db6d514537b515311bf9ae3">◆ </a></span>GLFW_BLUE_BITS</h2> | ||
605 | |||
606 | <div class="memitem"> | ||
607 | <div class="memproto"> | ||
608 | <table class="memname"> | ||
609 | <tr> | ||
610 | <td class="memname">#define GLFW_BLUE_BITS   0x00021003</td> | ||
611 | </tr> | ||
612 | </table> | ||
613 | </div><div class="memdoc"> | ||
614 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_BLUE_BITS">hint</a>. </p> | ||
615 | |||
616 | </div> | ||
617 | </div> | ||
618 | <a id="gafed79a3f468997877da86c449bd43e8c" name="gafed79a3f468997877da86c449bd43e8c"></a> | ||
619 | <h2 class="memtitle"><span class="permalink"><a href="#gafed79a3f468997877da86c449bd43e8c">◆ </a></span>GLFW_ALPHA_BITS</h2> | ||
620 | |||
621 | <div class="memitem"> | ||
622 | <div class="memproto"> | ||
623 | <table class="memname"> | ||
624 | <tr> | ||
625 | <td class="memname">#define GLFW_ALPHA_BITS   0x00021004</td> | ||
626 | </tr> | ||
627 | </table> | ||
628 | </div><div class="memdoc"> | ||
629 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_ALPHA_BITS">hint</a>. </p> | ||
630 | |||
631 | </div> | ||
632 | </div> | ||
633 | <a id="ga318a55eac1fee57dfe593b6d38149d07" name="ga318a55eac1fee57dfe593b6d38149d07"></a> | ||
634 | <h2 class="memtitle"><span class="permalink"><a href="#ga318a55eac1fee57dfe593b6d38149d07">◆ </a></span>GLFW_DEPTH_BITS</h2> | ||
635 | |||
636 | <div class="memitem"> | ||
637 | <div class="memproto"> | ||
638 | <table class="memname"> | ||
639 | <tr> | ||
640 | <td class="memname">#define GLFW_DEPTH_BITS   0x00021005</td> | ||
641 | </tr> | ||
642 | </table> | ||
643 | </div><div class="memdoc"> | ||
644 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_DEPTH_BITS">hint</a>. </p> | ||
645 | |||
646 | </div> | ||
647 | </div> | ||
648 | <a id="ga5339890a45a1fb38e93cb9fcc5fd069d" name="ga5339890a45a1fb38e93cb9fcc5fd069d"></a> | ||
649 | <h2 class="memtitle"><span class="permalink"><a href="#ga5339890a45a1fb38e93cb9fcc5fd069d">◆ </a></span>GLFW_STENCIL_BITS</h2> | ||
650 | |||
651 | <div class="memitem"> | ||
652 | <div class="memproto"> | ||
653 | <table class="memname"> | ||
654 | <tr> | ||
655 | <td class="memname">#define GLFW_STENCIL_BITS   0x00021006</td> | ||
656 | </tr> | ||
657 | </table> | ||
658 | </div><div class="memdoc"> | ||
659 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_STENCIL_BITS">hint</a>. </p> | ||
660 | |||
661 | </div> | ||
662 | </div> | ||
663 | <a id="gaead34a9a683b2bc20eecf30ba738bfc6" name="gaead34a9a683b2bc20eecf30ba738bfc6"></a> | ||
664 | <h2 class="memtitle"><span class="permalink"><a href="#gaead34a9a683b2bc20eecf30ba738bfc6">◆ </a></span>GLFW_ACCUM_RED_BITS</h2> | ||
665 | |||
666 | <div class="memitem"> | ||
667 | <div class="memproto"> | ||
668 | <table class="memname"> | ||
669 | <tr> | ||
670 | <td class="memname">#define GLFW_ACCUM_RED_BITS   0x00021007</td> | ||
671 | </tr> | ||
672 | </table> | ||
673 | </div><div class="memdoc"> | ||
674 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_ACCUM_RED_BITS">hint</a>. </p> | ||
675 | |||
676 | </div> | ||
677 | </div> | ||
678 | <a id="ga65713cee1326f8e9d806fdf93187b471" name="ga65713cee1326f8e9d806fdf93187b471"></a> | ||
679 | <h2 class="memtitle"><span class="permalink"><a href="#ga65713cee1326f8e9d806fdf93187b471">◆ </a></span>GLFW_ACCUM_GREEN_BITS</h2> | ||
680 | |||
681 | <div class="memitem"> | ||
682 | <div class="memproto"> | ||
683 | <table class="memname"> | ||
684 | <tr> | ||
685 | <td class="memname">#define GLFW_ACCUM_GREEN_BITS   0x00021008</td> | ||
686 | </tr> | ||
687 | </table> | ||
688 | </div><div class="memdoc"> | ||
689 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_ACCUM_GREEN_BITS">hint</a>. </p> | ||
690 | |||
691 | </div> | ||
692 | </div> | ||
693 | <a id="ga22bbe9104a8ce1f8b88fb4f186aa36ce" name="ga22bbe9104a8ce1f8b88fb4f186aa36ce"></a> | ||
694 | <h2 class="memtitle"><span class="permalink"><a href="#ga22bbe9104a8ce1f8b88fb4f186aa36ce">◆ </a></span>GLFW_ACCUM_BLUE_BITS</h2> | ||
695 | |||
696 | <div class="memitem"> | ||
697 | <div class="memproto"> | ||
698 | <table class="memname"> | ||
699 | <tr> | ||
700 | <td class="memname">#define GLFW_ACCUM_BLUE_BITS   0x00021009</td> | ||
701 | </tr> | ||
702 | </table> | ||
703 | </div><div class="memdoc"> | ||
704 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_ACCUM_BLUE_BITS">hint</a>. </p> | ||
705 | |||
706 | </div> | ||
707 | </div> | ||
708 | <a id="gae829b55591c18169a40ab4067a041b1f" name="gae829b55591c18169a40ab4067a041b1f"></a> | ||
709 | <h2 class="memtitle"><span class="permalink"><a href="#gae829b55591c18169a40ab4067a041b1f">◆ </a></span>GLFW_ACCUM_ALPHA_BITS</h2> | ||
710 | |||
711 | <div class="memitem"> | ||
712 | <div class="memproto"> | ||
713 | <table class="memname"> | ||
714 | <tr> | ||
715 | <td class="memname">#define GLFW_ACCUM_ALPHA_BITS   0x0002100A</td> | ||
716 | </tr> | ||
717 | </table> | ||
718 | </div><div class="memdoc"> | ||
719 | <p >Framebuffer bit depth <a class="el" href="window_guide.html#GLFW_ACCUM_ALPHA_BITS">hint</a>. </p> | ||
720 | |||
721 | </div> | ||
722 | </div> | ||
723 | <a id="gab05108c5029443b371112b031d1fa174" name="gab05108c5029443b371112b031d1fa174"></a> | ||
724 | <h2 class="memtitle"><span class="permalink"><a href="#gab05108c5029443b371112b031d1fa174">◆ </a></span>GLFW_AUX_BUFFERS</h2> | ||
725 | |||
726 | <div class="memitem"> | ||
727 | <div class="memproto"> | ||
728 | <table class="memname"> | ||
729 | <tr> | ||
730 | <td class="memname">#define GLFW_AUX_BUFFERS   0x0002100B</td> | ||
731 | </tr> | ||
732 | </table> | ||
733 | </div><div class="memdoc"> | ||
734 | <p >Framebuffer auxiliary buffer <a class="el" href="window_guide.html#GLFW_AUX_BUFFERS">hint</a>. </p> | ||
735 | |||
736 | </div> | ||
737 | </div> | ||
738 | <a id="ga83d991efca02537e2d69969135b77b03" name="ga83d991efca02537e2d69969135b77b03"></a> | ||
739 | <h2 class="memtitle"><span class="permalink"><a href="#ga83d991efca02537e2d69969135b77b03">◆ </a></span>GLFW_STEREO</h2> | ||
740 | |||
741 | <div class="memitem"> | ||
742 | <div class="memproto"> | ||
743 | <table class="memname"> | ||
744 | <tr> | ||
745 | <td class="memname">#define GLFW_STEREO   0x0002100C</td> | ||
746 | </tr> | ||
747 | </table> | ||
748 | </div><div class="memdoc"> | ||
749 | <p >OpenGL stereoscopic rendering <a class="el" href="window_guide.html#GLFW_STEREO">hint</a>. </p> | ||
750 | |||
751 | </div> | ||
752 | </div> | ||
753 | <a id="ga2cdf86fdcb7722fb8829c4e201607535" name="ga2cdf86fdcb7722fb8829c4e201607535"></a> | ||
754 | <h2 class="memtitle"><span class="permalink"><a href="#ga2cdf86fdcb7722fb8829c4e201607535">◆ </a></span>GLFW_SAMPLES</h2> | ||
755 | |||
756 | <div class="memitem"> | ||
757 | <div class="memproto"> | ||
758 | <table class="memname"> | ||
759 | <tr> | ||
760 | <td class="memname">#define GLFW_SAMPLES   0x0002100D</td> | ||
761 | </tr> | ||
762 | </table> | ||
763 | </div><div class="memdoc"> | ||
764 | <p >Framebuffer MSAA samples <a class="el" href="window_guide.html#GLFW_SAMPLES">hint</a>. </p> | ||
765 | |||
766 | </div> | ||
767 | </div> | ||
768 | <a id="ga444a8f00414a63220591f9fdb7b5642b" name="ga444a8f00414a63220591f9fdb7b5642b"></a> | ||
769 | <h2 class="memtitle"><span class="permalink"><a href="#ga444a8f00414a63220591f9fdb7b5642b">◆ </a></span>GLFW_SRGB_CAPABLE</h2> | ||
770 | |||
771 | <div class="memitem"> | ||
772 | <div class="memproto"> | ||
773 | <table class="memname"> | ||
774 | <tr> | ||
775 | <td class="memname">#define GLFW_SRGB_CAPABLE   0x0002100E</td> | ||
776 | </tr> | ||
777 | </table> | ||
778 | </div><div class="memdoc"> | ||
779 | <p >Framebuffer sRGB <a class="el" href="window_guide.html#GLFW_SRGB_CAPABLE">hint</a>. </p> | ||
780 | |||
781 | </div> | ||
782 | </div> | ||
783 | <a id="ga0f20825e6e47ee8ba389024519682212" name="ga0f20825e6e47ee8ba389024519682212"></a> | ||
784 | <h2 class="memtitle"><span class="permalink"><a href="#ga0f20825e6e47ee8ba389024519682212">◆ </a></span>GLFW_REFRESH_RATE</h2> | ||
785 | |||
786 | <div class="memitem"> | ||
787 | <div class="memproto"> | ||
788 | <table class="memname"> | ||
789 | <tr> | ||
790 | <td class="memname">#define GLFW_REFRESH_RATE   0x0002100F</td> | ||
791 | </tr> | ||
792 | </table> | ||
793 | </div><div class="memdoc"> | ||
794 | <p >Monitor refresh rate <a class="el" href="window_guide.html#GLFW_REFRESH_RATE">hint</a>. </p> | ||
795 | |||
796 | </div> | ||
797 | </div> | ||
798 | <a id="ga714a5d569e8a274ea58fdfa020955339" name="ga714a5d569e8a274ea58fdfa020955339"></a> | ||
799 | <h2 class="memtitle"><span class="permalink"><a href="#ga714a5d569e8a274ea58fdfa020955339">◆ </a></span>GLFW_DOUBLEBUFFER</h2> | ||
800 | |||
801 | <div class="memitem"> | ||
802 | <div class="memproto"> | ||
803 | <table class="memname"> | ||
804 | <tr> | ||
805 | <td class="memname">#define GLFW_DOUBLEBUFFER   0x00021010</td> | ||
806 | </tr> | ||
807 | </table> | ||
808 | </div><div class="memdoc"> | ||
809 | <p >Framebuffer double buffering <a class="el" href="window_guide.html#GLFW_DOUBLEBUFFER">hint</a>. </p> | ||
810 | |||
811 | </div> | ||
812 | </div> | ||
813 | <a id="ga649309cf72a3d3de5b1348ca7936c95b" name="ga649309cf72a3d3de5b1348ca7936c95b"></a> | ||
814 | <h2 class="memtitle"><span class="permalink"><a href="#ga649309cf72a3d3de5b1348ca7936c95b">◆ </a></span>GLFW_CLIENT_API</h2> | ||
815 | |||
816 | <div class="memitem"> | ||
817 | <div class="memproto"> | ||
818 | <table class="memname"> | ||
819 | <tr> | ||
820 | <td class="memname">#define GLFW_CLIENT_API   0x00022001</td> | ||
821 | </tr> | ||
822 | </table> | ||
823 | </div><div class="memdoc"> | ||
824 | <p >Context client API <a class="el" href="window_guide.html#GLFW_CLIENT_API_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CLIENT_API_attrib">attribute</a>. </p> | ||
825 | |||
826 | </div> | ||
827 | </div> | ||
828 | <a id="gafe5e4922de1f9932d7e9849bb053b0c0" name="gafe5e4922de1f9932d7e9849bb053b0c0"></a> | ||
829 | <h2 class="memtitle"><span class="permalink"><a href="#gafe5e4922de1f9932d7e9849bb053b0c0">◆ </a></span>GLFW_CONTEXT_VERSION_MAJOR</h2> | ||
830 | |||
831 | <div class="memitem"> | ||
832 | <div class="memproto"> | ||
833 | <table class="memname"> | ||
834 | <tr> | ||
835 | <td class="memname">#define GLFW_CONTEXT_VERSION_MAJOR   0x00022002</td> | ||
836 | </tr> | ||
837 | </table> | ||
838 | </div><div class="memdoc"> | ||
839 | <p >Context client API major version <a class="el" href="window_guide.html#GLFW_CONTEXT_VERSION_MAJOR_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_VERSION_MAJOR_attrib">attribute</a>. </p> | ||
840 | |||
841 | </div> | ||
842 | </div> | ||
843 | <a id="ga31aca791e4b538c4e4a771eb95cc2d07" name="ga31aca791e4b538c4e4a771eb95cc2d07"></a> | ||
844 | <h2 class="memtitle"><span class="permalink"><a href="#ga31aca791e4b538c4e4a771eb95cc2d07">◆ </a></span>GLFW_CONTEXT_VERSION_MINOR</h2> | ||
845 | |||
846 | <div class="memitem"> | ||
847 | <div class="memproto"> | ||
848 | <table class="memname"> | ||
849 | <tr> | ||
850 | <td class="memname">#define GLFW_CONTEXT_VERSION_MINOR   0x00022003</td> | ||
851 | </tr> | ||
852 | </table> | ||
853 | </div><div class="memdoc"> | ||
854 | <p >Context client API minor version <a class="el" href="window_guide.html#GLFW_CONTEXT_VERSION_MINOR_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_VERSION_MINOR_attrib">attribute</a>. </p> | ||
855 | |||
856 | </div> | ||
857 | </div> | ||
858 | <a id="gafb9475071aa77c6fb05ca5a5c8678a08" name="gafb9475071aa77c6fb05ca5a5c8678a08"></a> | ||
859 | <h2 class="memtitle"><span class="permalink"><a href="#gafb9475071aa77c6fb05ca5a5c8678a08">◆ </a></span>GLFW_CONTEXT_REVISION</h2> | ||
860 | |||
861 | <div class="memitem"> | ||
862 | <div class="memproto"> | ||
863 | <table class="memname"> | ||
864 | <tr> | ||
865 | <td class="memname">#define GLFW_CONTEXT_REVISION   0x00022004</td> | ||
866 | </tr> | ||
867 | </table> | ||
868 | </div><div class="memdoc"> | ||
869 | <p >Context client API revision number <a class="el" href="window_guide.html#GLFW_CONTEXT_REVISION_attrib">attribute</a>. </p> | ||
870 | |||
871 | </div> | ||
872 | </div> | ||
873 | <a id="gade3593916b4c507900aa2d6844810e00" name="gade3593916b4c507900aa2d6844810e00"></a> | ||
874 | <h2 class="memtitle"><span class="permalink"><a href="#gade3593916b4c507900aa2d6844810e00">◆ </a></span>GLFW_CONTEXT_ROBUSTNESS</h2> | ||
875 | |||
876 | <div class="memitem"> | ||
877 | <div class="memproto"> | ||
878 | <table class="memname"> | ||
879 | <tr> | ||
880 | <td class="memname">#define GLFW_CONTEXT_ROBUSTNESS   0x00022005</td> | ||
881 | </tr> | ||
882 | </table> | ||
883 | </div><div class="memdoc"> | ||
884 | <p >Context client API revision number <a class="el" href="window_guide.html#GLFW_CONTEXT_ROBUSTNESS_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_ROBUSTNESS_attrib">attribute</a>. </p> | ||
885 | |||
886 | </div> | ||
887 | </div> | ||
888 | <a id="ga13d24b12465da8b28985f46c8557925b" name="ga13d24b12465da8b28985f46c8557925b"></a> | ||
889 | <h2 class="memtitle"><span class="permalink"><a href="#ga13d24b12465da8b28985f46c8557925b">◆ </a></span>GLFW_OPENGL_FORWARD_COMPAT</h2> | ||
890 | |||
891 | <div class="memitem"> | ||
892 | <div class="memproto"> | ||
893 | <table class="memname"> | ||
894 | <tr> | ||
895 | <td class="memname">#define GLFW_OPENGL_FORWARD_COMPAT   0x00022006</td> | ||
896 | </tr> | ||
897 | </table> | ||
898 | </div><div class="memdoc"> | ||
899 | <p >OpenGL forward-compatibility <a class="el" href="window_guide.html#GLFW_OPENGL_FORWARD_COMPAT_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_OPENGL_FORWARD_COMPAT_attrib">attribute</a>. </p> | ||
900 | |||
901 | </div> | ||
902 | </div> | ||
903 | <a id="ga87ec2df0b915201e950ca42d5d0831e1" name="ga87ec2df0b915201e950ca42d5d0831e1"></a> | ||
904 | <h2 class="memtitle"><span class="permalink"><a href="#ga87ec2df0b915201e950ca42d5d0831e1">◆ </a></span>GLFW_OPENGL_DEBUG_CONTEXT</h2> | ||
905 | |||
906 | <div class="memitem"> | ||
907 | <div class="memproto"> | ||
908 | <table class="memname"> | ||
909 | <tr> | ||
910 | <td class="memname">#define GLFW_OPENGL_DEBUG_CONTEXT   0x00022007</td> | ||
911 | </tr> | ||
912 | </table> | ||
913 | </div><div class="memdoc"> | ||
914 | <p >Debug mode context <a class="el" href="window_guide.html#GLFW_OPENGL_DEBUG_CONTEXT_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_OPENGL_DEBUG_CONTEXT_attrib">attribute</a>. </p> | ||
915 | |||
916 | </div> | ||
917 | </div> | ||
918 | <a id="ga44f3a6b4261fbe351e0b950b0f372e12" name="ga44f3a6b4261fbe351e0b950b0f372e12"></a> | ||
919 | <h2 class="memtitle"><span class="permalink"><a href="#ga44f3a6b4261fbe351e0b950b0f372e12">◆ </a></span>GLFW_OPENGL_PROFILE</h2> | ||
920 | |||
921 | <div class="memitem"> | ||
922 | <div class="memproto"> | ||
923 | <table class="memname"> | ||
924 | <tr> | ||
925 | <td class="memname">#define GLFW_OPENGL_PROFILE   0x00022008</td> | ||
926 | </tr> | ||
927 | </table> | ||
928 | </div><div class="memdoc"> | ||
929 | <p >OpenGL profile <a class="el" href="window_guide.html#GLFW_OPENGL_PROFILE_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_OPENGL_PROFILE_attrib">attribute</a>. </p> | ||
930 | |||
931 | </div> | ||
932 | </div> | ||
933 | <a id="ga72b648a8378fe3310c7c7bbecc0f7be6" name="ga72b648a8378fe3310c7c7bbecc0f7be6"></a> | ||
934 | <h2 class="memtitle"><span class="permalink"><a href="#ga72b648a8378fe3310c7c7bbecc0f7be6">◆ </a></span>GLFW_CONTEXT_RELEASE_BEHAVIOR</h2> | ||
935 | |||
936 | <div class="memitem"> | ||
937 | <div class="memproto"> | ||
938 | <table class="memname"> | ||
939 | <tr> | ||
940 | <td class="memname">#define GLFW_CONTEXT_RELEASE_BEHAVIOR   0x00022009</td> | ||
941 | </tr> | ||
942 | </table> | ||
943 | </div><div class="memdoc"> | ||
944 | <p >Context flush-on-release <a class="el" href="window_guide.html#GLFW_CONTEXT_RELEASE_BEHAVIOR_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_RELEASE_BEHAVIOR_attrib">attribute</a>. </p> | ||
945 | |||
946 | </div> | ||
947 | </div> | ||
948 | <a id="ga5a52fdfd46d8249c211f923675728082" name="ga5a52fdfd46d8249c211f923675728082"></a> | ||
949 | <h2 class="memtitle"><span class="permalink"><a href="#ga5a52fdfd46d8249c211f923675728082">◆ </a></span>GLFW_CONTEXT_NO_ERROR</h2> | ||
950 | |||
951 | <div class="memitem"> | ||
952 | <div class="memproto"> | ||
953 | <table class="memname"> | ||
954 | <tr> | ||
955 | <td class="memname">#define GLFW_CONTEXT_NO_ERROR   0x0002200A</td> | ||
956 | </tr> | ||
957 | </table> | ||
958 | </div><div class="memdoc"> | ||
959 | <p >Context error suppression <a class="el" href="window_guide.html#GLFW_CONTEXT_NO_ERROR_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_NO_ERROR_attrib">attribute</a>. </p> | ||
960 | |||
961 | </div> | ||
962 | </div> | ||
963 | <a id="ga5154cebfcd831c1cc63a4d5ac9bb4486" name="ga5154cebfcd831c1cc63a4d5ac9bb4486"></a> | ||
964 | <h2 class="memtitle"><span class="permalink"><a href="#ga5154cebfcd831c1cc63a4d5ac9bb4486">◆ </a></span>GLFW_CONTEXT_CREATION_API</h2> | ||
965 | |||
966 | <div class="memitem"> | ||
967 | <div class="memproto"> | ||
968 | <table class="memname"> | ||
969 | <tr> | ||
970 | <td class="memname">#define GLFW_CONTEXT_CREATION_API   0x0002200B</td> | ||
971 | </tr> | ||
972 | </table> | ||
973 | </div><div class="memdoc"> | ||
974 | <p >Context creation API <a class="el" href="window_guide.html#GLFW_CONTEXT_CREATION_API_hint">hint</a> and <a class="el" href="window_guide.html#GLFW_CONTEXT_CREATION_API_attrib">attribute</a>. </p> | ||
975 | |||
976 | </div> | ||
977 | </div> | ||
978 | <a id="ga620bc4280c7eab81ac9f02204500ed47" name="ga620bc4280c7eab81ac9f02204500ed47"></a> | ||
979 | <h2 class="memtitle"><span class="permalink"><a href="#ga620bc4280c7eab81ac9f02204500ed47">◆ </a></span>GLFW_SCALE_TO_MONITOR</h2> | ||
980 | |||
981 | <div class="memitem"> | ||
982 | <div class="memproto"> | ||
983 | <table class="memname"> | ||
984 | <tr> | ||
985 | <td class="memname">#define GLFW_SCALE_TO_MONITOR   0x0002200C</td> | ||
986 | </tr> | ||
987 | </table> | ||
988 | </div><div class="memdoc"> | ||
989 | |||
990 | </div> | ||
991 | </div> | ||
992 | <a id="gab6ef2d02eb55800d249ccf1af253c35e" name="gab6ef2d02eb55800d249ccf1af253c35e"></a> | ||
993 | <h2 class="memtitle"><span class="permalink"><a href="#gab6ef2d02eb55800d249ccf1af253c35e">◆ </a></span>GLFW_COCOA_RETINA_FRAMEBUFFER</h2> | ||
994 | |||
995 | <div class="memitem"> | ||
996 | <div class="memproto"> | ||
997 | <table class="memname"> | ||
998 | <tr> | ||
999 | <td class="memname">#define GLFW_COCOA_RETINA_FRAMEBUFFER   0x00023001</td> | ||
1000 | </tr> | ||
1001 | </table> | ||
1002 | </div><div class="memdoc"> | ||
1003 | |||
1004 | </div> | ||
1005 | </div> | ||
1006 | <a id="ga70fa0fbc745de6aa824df79a580e84b5" name="ga70fa0fbc745de6aa824df79a580e84b5"></a> | ||
1007 | <h2 class="memtitle"><span class="permalink"><a href="#ga70fa0fbc745de6aa824df79a580e84b5">◆ </a></span>GLFW_COCOA_FRAME_NAME</h2> | ||
1008 | |||
1009 | <div class="memitem"> | ||
1010 | <div class="memproto"> | ||
1011 | <table class="memname"> | ||
1012 | <tr> | ||
1013 | <td class="memname">#define GLFW_COCOA_FRAME_NAME   0x00023002</td> | ||
1014 | </tr> | ||
1015 | </table> | ||
1016 | </div><div class="memdoc"> | ||
1017 | |||
1018 | </div> | ||
1019 | </div> | ||
1020 | <a id="ga53c84ed2ddd94e15bbd44b1f6f7feafc" name="ga53c84ed2ddd94e15bbd44b1f6f7feafc"></a> | ||
1021 | <h2 class="memtitle"><span class="permalink"><a href="#ga53c84ed2ddd94e15bbd44b1f6f7feafc">◆ </a></span>GLFW_COCOA_GRAPHICS_SWITCHING</h2> | ||
1022 | |||
1023 | <div class="memitem"> | ||
1024 | <div class="memproto"> | ||
1025 | <table class="memname"> | ||
1026 | <tr> | ||
1027 | <td class="memname">#define GLFW_COCOA_GRAPHICS_SWITCHING   0x00023003</td> | ||
1028 | </tr> | ||
1029 | </table> | ||
1030 | </div><div class="memdoc"> | ||
1031 | |||
1032 | </div> | ||
1033 | </div> | ||
1034 | <a id="gae5a9ea2fccccd92edbd343fc56461114" name="gae5a9ea2fccccd92edbd343fc56461114"></a> | ||
1035 | <h2 class="memtitle"><span class="permalink"><a href="#gae5a9ea2fccccd92edbd343fc56461114">◆ </a></span>GLFW_X11_CLASS_NAME</h2> | ||
1036 | |||
1037 | <div class="memitem"> | ||
1038 | <div class="memproto"> | ||
1039 | <table class="memname"> | ||
1040 | <tr> | ||
1041 | <td class="memname">#define GLFW_X11_CLASS_NAME   0x00024001</td> | ||
1042 | </tr> | ||
1043 | </table> | ||
1044 | </div><div class="memdoc"> | ||
1045 | |||
1046 | </div> | ||
1047 | </div> | ||
1048 | <a id="ga494c3c0d911e4b860b946530a3e389e8" name="ga494c3c0d911e4b860b946530a3e389e8"></a> | ||
1049 | <h2 class="memtitle"><span class="permalink"><a href="#ga494c3c0d911e4b860b946530a3e389e8">◆ </a></span>GLFW_X11_INSTANCE_NAME</h2> | ||
1050 | |||
1051 | <div class="memitem"> | ||
1052 | <div class="memproto"> | ||
1053 | <table class="memname"> | ||
1054 | <tr> | ||
1055 | <td class="memname">#define GLFW_X11_INSTANCE_NAME   0x00024002</td> | ||
1056 | </tr> | ||
1057 | </table> | ||
1058 | </div><div class="memdoc"> | ||
1059 | |||
1060 | </div> | ||
1061 | </div> | ||
1062 | <h2 class="groupheader">Typedef Documentation</h2> | ||
1063 | <a id="ga3c96d80d363e67d13a41b5d1821f3242" name="ga3c96d80d363e67d13a41b5d1821f3242"></a> | ||
1064 | <h2 class="memtitle"><span class="permalink"><a href="#ga3c96d80d363e67d13a41b5d1821f3242">◆ </a></span>GLFWwindow</h2> | ||
1065 | |||
1066 | <div class="memitem"> | ||
1067 | <div class="memproto"> | ||
1068 | <table class="memname"> | ||
1069 | <tr> | ||
1070 | <td class="memname">typedef struct <a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> <a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></td> | ||
1071 | </tr> | ||
1072 | </table> | ||
1073 | </div><div class="memdoc"> | ||
1074 | <p >Opaque window object.</p> | ||
1075 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_object">Window objects</a></dd></dl> | ||
1076 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1077 | |||
1078 | </div> | ||
1079 | </div> | ||
1080 | <a id="gabe287973a21a8f927cde4db06b8dcbe9" name="gabe287973a21a8f927cde4db06b8dcbe9"></a> | ||
1081 | <h2 class="memtitle"><span class="permalink"><a href="#gabe287973a21a8f927cde4db06b8dcbe9">◆ </a></span>GLFWwindowposfun</h2> | ||
1082 | |||
1083 | <div class="memitem"> | ||
1084 | <div class="memproto"> | ||
1085 | <table class="memname"> | ||
1086 | <tr> | ||
1087 | <td class="memname">typedef void(* GLFWwindowposfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int xpos, int ypos)</td> | ||
1088 | </tr> | ||
1089 | </table> | ||
1090 | </div><div class="memdoc"> | ||
1091 | <p >This is the function pointer type for window position callbacks. A window position callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> xpos, <span class="keywordtype">int</span> ypos)</div> | ||
1092 | <div class="ttc" id="agroup__window_html_ga3c96d80d363e67d13a41b5d1821f3242"><div class="ttname"><a href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></div><div class="ttdeci">struct GLFWwindow GLFWwindow</div><div class="ttdoc">Opaque window object.</div><div class="ttdef"><b>Definition:</b> glfw3.h:1186</div></div> | ||
1093 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1094 | <table class="params"> | ||
1095 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that was moved. </td></tr> | ||
1096 | <tr><td class="paramdir">[in]</td><td class="paramname">xpos</td><td>The new x-coordinate, in screen coordinates, of the upper-left corner of the content area of the window. </td></tr> | ||
1097 | <tr><td class="paramdir">[in]</td><td class="paramname">ypos</td><td>The new y-coordinate, in screen coordinates, of the upper-left corner of the content area of the window.</td></tr> | ||
1098 | </table> | ||
1099 | </dd> | ||
1100 | </dl> | ||
1101 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_pos">Window position</a> </dd> | ||
1102 | <dd> | ||
1103 | <a class="el" href="group__window.html#ga08bdfbba88934f9c4f92fd757979ac74">glfwSetWindowPosCallback</a></dd></dl> | ||
1104 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1105 | |||
1106 | </div> | ||
1107 | </div> | ||
1108 | <a id="gaec0282944bb810f6f3163ec02da90350" name="gaec0282944bb810f6f3163ec02da90350"></a> | ||
1109 | <h2 class="memtitle"><span class="permalink"><a href="#gaec0282944bb810f6f3163ec02da90350">◆ </a></span>GLFWwindowsizefun</h2> | ||
1110 | |||
1111 | <div class="memitem"> | ||
1112 | <div class="memproto"> | ||
1113 | <table class="memname"> | ||
1114 | <tr> | ||
1115 | <td class="memname">typedef void(* GLFWwindowsizefun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int width, int height)</td> | ||
1116 | </tr> | ||
1117 | </table> | ||
1118 | </div><div class="memdoc"> | ||
1119 | <p >This is the function pointer type for window size callbacks. A window size callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height)</div> | ||
1120 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1121 | <table class="params"> | ||
1122 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that was resized. </td></tr> | ||
1123 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The new width, in screen coordinates, of the window. </td></tr> | ||
1124 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The new height, in screen coordinates, of the window.</td></tr> | ||
1125 | </table> | ||
1126 | </dd> | ||
1127 | </dl> | ||
1128 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a> </dd> | ||
1129 | <dd> | ||
1130 | <a class="el" href="group__window.html#gad91b8b047a0c4c6033c38853864c34f8">glfwSetWindowSizeCallback</a></dd></dl> | ||
1131 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1132 | |||
1133 | </div> | ||
1134 | </div> | ||
1135 | <a id="gabf859b936d80961b7d39013a9694cc3e" name="gabf859b936d80961b7d39013a9694cc3e"></a> | ||
1136 | <h2 class="memtitle"><span class="permalink"><a href="#gabf859b936d80961b7d39013a9694cc3e">◆ </a></span>GLFWwindowclosefun</h2> | ||
1137 | |||
1138 | <div class="memitem"> | ||
1139 | <div class="memproto"> | ||
1140 | <table class="memname"> | ||
1141 | <tr> | ||
1142 | <td class="memname">typedef void(* GLFWwindowclosefun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td> | ||
1143 | </tr> | ||
1144 | </table> | ||
1145 | </div><div class="memdoc"> | ||
1146 | <p >This is the function pointer type for window close callbacks. A window close callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window)</div> | ||
1147 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1148 | <table class="params"> | ||
1149 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that the user attempted to close.</td></tr> | ||
1150 | </table> | ||
1151 | </dd> | ||
1152 | </dl> | ||
1153 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_close">Window closing and close flag</a> </dd> | ||
1154 | <dd> | ||
1155 | <a class="el" href="group__window.html#gada646d775a7776a95ac000cfc1885331">glfwSetWindowCloseCallback</a></dd></dl> | ||
1156 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.5. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1157 | |||
1158 | </div> | ||
1159 | </div> | ||
1160 | <a id="ga431663a1427d2eb3a273bc398b6737b5" name="ga431663a1427d2eb3a273bc398b6737b5"></a> | ||
1161 | <h2 class="memtitle"><span class="permalink"><a href="#ga431663a1427d2eb3a273bc398b6737b5">◆ </a></span>GLFWwindowrefreshfun</h2> | ||
1162 | |||
1163 | <div class="memitem"> | ||
1164 | <div class="memproto"> | ||
1165 | <table class="memname"> | ||
1166 | <tr> | ||
1167 | <td class="memname">typedef void(* GLFWwindowrefreshfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td> | ||
1168 | </tr> | ||
1169 | </table> | ||
1170 | </div><div class="memdoc"> | ||
1171 | <p >This is the function pointer type for window content refresh callbacks. A window content refresh callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window);</div> | ||
1172 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1173 | <table class="params"> | ||
1174 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose content needs to be refreshed.</td></tr> | ||
1175 | </table> | ||
1176 | </dd> | ||
1177 | </dl> | ||
1178 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_refresh">Window damage and refresh</a> </dd> | ||
1179 | <dd> | ||
1180 | <a class="el" href="group__window.html#ga1c5c7eb889c33c7f4d10dd35b327654e">glfwSetWindowRefreshCallback</a></dd></dl> | ||
1181 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.5. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1182 | |||
1183 | </div> | ||
1184 | </div> | ||
1185 | <a id="gabc58c47e9d93f6eb1862d615c3680f46" name="gabc58c47e9d93f6eb1862d615c3680f46"></a> | ||
1186 | <h2 class="memtitle"><span class="permalink"><a href="#gabc58c47e9d93f6eb1862d615c3680f46">◆ </a></span>GLFWwindowfocusfun</h2> | ||
1187 | |||
1188 | <div class="memitem"> | ||
1189 | <div class="memproto"> | ||
1190 | <table class="memname"> | ||
1191 | <tr> | ||
1192 | <td class="memname">typedef void(* GLFWwindowfocusfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int focused)</td> | ||
1193 | </tr> | ||
1194 | </table> | ||
1195 | </div><div class="memdoc"> | ||
1196 | <p >This is the function pointer type for window focus callbacks. A window focus callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> focused)</div> | ||
1197 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1198 | <table class="params"> | ||
1199 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that gained or lost input focus. </td></tr> | ||
1200 | <tr><td class="paramdir">[in]</td><td class="paramname">focused</td><td><code>GLFW_TRUE</code> if the window was given input focus, or <code>GLFW_FALSE</code> if it lost it.</td></tr> | ||
1201 | </table> | ||
1202 | </dd> | ||
1203 | </dl> | ||
1204 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_focus">Window input focus</a> </dd> | ||
1205 | <dd> | ||
1206 | <a class="el" href="group__window.html#gac2d83c4a10f071baf841f6730528e66c">glfwSetWindowFocusCallback</a></dd></dl> | ||
1207 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1208 | |||
1209 | </div> | ||
1210 | </div> | ||
1211 | <a id="ga35c658cccba236f26e7adee0e25f6a4f" name="ga35c658cccba236f26e7adee0e25f6a4f"></a> | ||
1212 | <h2 class="memtitle"><span class="permalink"><a href="#ga35c658cccba236f26e7adee0e25f6a4f">◆ </a></span>GLFWwindowiconifyfun</h2> | ||
1213 | |||
1214 | <div class="memitem"> | ||
1215 | <div class="memproto"> | ||
1216 | <table class="memname"> | ||
1217 | <tr> | ||
1218 | <td class="memname">typedef void(* GLFWwindowiconifyfun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int iconified)</td> | ||
1219 | </tr> | ||
1220 | </table> | ||
1221 | </div><div class="memdoc"> | ||
1222 | <p >This is the function pointer type for window iconify callbacks. A window iconify callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> iconified)</div> | ||
1223 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1224 | <table class="params"> | ||
1225 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that was iconified or restored. </td></tr> | ||
1226 | <tr><td class="paramdir">[in]</td><td class="paramname">iconified</td><td><code>GLFW_TRUE</code> if the window was iconified, or <code>GLFW_FALSE</code> if it was restored.</td></tr> | ||
1227 | </table> | ||
1228 | </dd> | ||
1229 | </dl> | ||
1230 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_iconify">Window iconification</a> </dd> | ||
1231 | <dd> | ||
1232 | <a class="el" href="group__window.html#gac793e9efd255567b5fb8b445052cfd3e">glfwSetWindowIconifyCallback</a></dd></dl> | ||
1233 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1234 | |||
1235 | </div> | ||
1236 | </div> | ||
1237 | <a id="ga3017196fdaec33ac3e095765176c2a90" name="ga3017196fdaec33ac3e095765176c2a90"></a> | ||
1238 | <h2 class="memtitle"><span class="permalink"><a href="#ga3017196fdaec33ac3e095765176c2a90">◆ </a></span>GLFWwindowmaximizefun</h2> | ||
1239 | |||
1240 | <div class="memitem"> | ||
1241 | <div class="memproto"> | ||
1242 | <table class="memname"> | ||
1243 | <tr> | ||
1244 | <td class="memname">typedef void(* GLFWwindowmaximizefun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int maximized)</td> | ||
1245 | </tr> | ||
1246 | </table> | ||
1247 | </div><div class="memdoc"> | ||
1248 | <p >This is the function pointer type for window maximize callbacks. A window maximize callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> maximized)</div> | ||
1249 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1250 | <table class="params"> | ||
1251 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window that was maximized or restored. </td></tr> | ||
1252 | <tr><td class="paramdir">[in]</td><td class="paramname">maximized</td><td><code>GLFW_TRUE</code> if the window was maximized, or <code>GLFW_FALSE</code> if it was restored.</td></tr> | ||
1253 | </table> | ||
1254 | </dd> | ||
1255 | </dl> | ||
1256 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_maximize">Window maximization</a> </dd> | ||
1257 | <dd> | ||
1258 | <a class="el" href="group__window.html#gacbe64c339fbd94885e62145563b6dc93" title="Sets the maximize callback for the specified window.">glfwSetWindowMaximizeCallback</a></dd></dl> | ||
1259 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
1260 | |||
1261 | </div> | ||
1262 | </div> | ||
1263 | <a id="gae18026e294dde685ed2e5f759533144d" name="gae18026e294dde685ed2e5f759533144d"></a> | ||
1264 | <h2 class="memtitle"><span class="permalink"><a href="#gae18026e294dde685ed2e5f759533144d">◆ </a></span>GLFWframebuffersizefun</h2> | ||
1265 | |||
1266 | <div class="memitem"> | ||
1267 | <div class="memproto"> | ||
1268 | <table class="memname"> | ||
1269 | <tr> | ||
1270 | <td class="memname">typedef void(* GLFWframebuffersizefun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, int width, int height)</td> | ||
1271 | </tr> | ||
1272 | </table> | ||
1273 | </div><div class="memdoc"> | ||
1274 | <p >This is the function pointer type for framebuffer size callbacks. A framebuffer size callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height)</div> | ||
1275 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1276 | <table class="params"> | ||
1277 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose framebuffer was resized. </td></tr> | ||
1278 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The new width, in pixels, of the framebuffer. </td></tr> | ||
1279 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The new height, in pixels, of the framebuffer.</td></tr> | ||
1280 | </table> | ||
1281 | </dd> | ||
1282 | </dl> | ||
1283 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_fbsize">Framebuffer size</a> </dd> | ||
1284 | <dd> | ||
1285 | <a class="el" href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">glfwSetFramebufferSizeCallback</a></dd></dl> | ||
1286 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1287 | |||
1288 | </div> | ||
1289 | </div> | ||
1290 | <a id="ga77f288a2d04bb3c77c7d9615d08cf70e" name="ga77f288a2d04bb3c77c7d9615d08cf70e"></a> | ||
1291 | <h2 class="memtitle"><span class="permalink"><a href="#ga77f288a2d04bb3c77c7d9615d08cf70e">◆ </a></span>GLFWwindowcontentscalefun</h2> | ||
1292 | |||
1293 | <div class="memitem"> | ||
1294 | <div class="memproto"> | ||
1295 | <table class="memname"> | ||
1296 | <tr> | ||
1297 | <td class="memname">typedef void(* GLFWwindowcontentscalefun) (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window, float xscale, float yscale)</td> | ||
1298 | </tr> | ||
1299 | </table> | ||
1300 | </div><div class="memdoc"> | ||
1301 | <p >This is the function pointer type for window content scale callbacks. A window content scale callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">float</span> xscale, <span class="keywordtype">float</span> yscale)</div> | ||
1302 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
1303 | <table class="params"> | ||
1304 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose content scale changed. </td></tr> | ||
1305 | <tr><td class="paramdir">[in]</td><td class="paramname">xscale</td><td>The new x-axis content scale of the window. </td></tr> | ||
1306 | <tr><td class="paramdir">[in]</td><td class="paramname">yscale</td><td>The new y-axis content scale of the window.</td></tr> | ||
1307 | </table> | ||
1308 | </dd> | ||
1309 | </dl> | ||
1310 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_scale">Window content scale</a> </dd> | ||
1311 | <dd> | ||
1312 | <a class="el" href="group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6">glfwSetWindowContentScaleCallback</a></dd></dl> | ||
1313 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
1314 | |||
1315 | </div> | ||
1316 | </div> | ||
1317 | <a id="ga7cc0a09de172fa7250872046f8c4d2ca" name="ga7cc0a09de172fa7250872046f8c4d2ca"></a> | ||
1318 | <h2 class="memtitle"><span class="permalink"><a href="#ga7cc0a09de172fa7250872046f8c4d2ca">◆ </a></span>GLFWimage</h2> | ||
1319 | |||
1320 | <div class="memitem"> | ||
1321 | <div class="memproto"> | ||
1322 | <table class="memname"> | ||
1323 | <tr> | ||
1324 | <td class="memname">typedef struct <a class="el" href="structGLFWimage.html">GLFWimage</a> <a class="el" href="structGLFWimage.html">GLFWimage</a></td> | ||
1325 | </tr> | ||
1326 | </table> | ||
1327 | </div><div class="memdoc"> | ||
1328 | <p >This describes a single 2D image. See the documentation for each related function what the expected pixel format is.</p> | ||
1329 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#cursor_custom">Custom cursor creation</a> </dd> | ||
1330 | <dd> | ||
1331 | <a class="el" href="window_guide.html#window_icon">Window icon</a></dd></dl> | ||
1332 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.1. <b>GLFW 3:</b> Removed format and bytes-per-pixel members. </dd></dl> | ||
1333 | |||
1334 | </div> | ||
1335 | </div> | ||
1336 | <h2 class="groupheader">Function Documentation</h2> | ||
1337 | <a id="gaa77c4898dfb83344a6b4f76aa16b9a4a" name="gaa77c4898dfb83344a6b4f76aa16b9a4a"></a> | ||
1338 | <h2 class="memtitle"><span class="permalink"><a href="#gaa77c4898dfb83344a6b4f76aa16b9a4a">◆ </a></span>glfwDefaultWindowHints()</h2> | ||
1339 | |||
1340 | <div class="memitem"> | ||
1341 | <div class="memproto"> | ||
1342 | <table class="memname"> | ||
1343 | <tr> | ||
1344 | <td class="memname">void glfwDefaultWindowHints </td> | ||
1345 | <td>(</td> | ||
1346 | <td class="paramtype">void </td> | ||
1347 | <td class="paramname"></td><td>)</td> | ||
1348 | <td></td> | ||
1349 | </tr> | ||
1350 | </table> | ||
1351 | </div><div class="memdoc"> | ||
1352 | <p >This function resets all window hints to their <a class="el" href="window_guide.html#window_hints_values">default values</a>.</p> | ||
1353 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
1354 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1355 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_hints">Window creation hints</a> </dd> | ||
1356 | <dd> | ||
1357 | <a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a> </dd> | ||
1358 | <dd> | ||
1359 | <a class="el" href="group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f">glfwWindowHintString</a></dd></dl> | ||
1360 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1361 | |||
1362 | </div> | ||
1363 | </div> | ||
1364 | <a id="ga7d9c8c62384b1e2821c4dc48952d2033" name="ga7d9c8c62384b1e2821c4dc48952d2033"></a> | ||
1365 | <h2 class="memtitle"><span class="permalink"><a href="#ga7d9c8c62384b1e2821c4dc48952d2033">◆ </a></span>glfwWindowHint()</h2> | ||
1366 | |||
1367 | <div class="memitem"> | ||
1368 | <div class="memproto"> | ||
1369 | <table class="memname"> | ||
1370 | <tr> | ||
1371 | <td class="memname">void glfwWindowHint </td> | ||
1372 | <td>(</td> | ||
1373 | <td class="paramtype">int </td> | ||
1374 | <td class="paramname"><em>hint</em>, </td> | ||
1375 | </tr> | ||
1376 | <tr> | ||
1377 | <td class="paramkey"></td> | ||
1378 | <td></td> | ||
1379 | <td class="paramtype">int </td> | ||
1380 | <td class="paramname"><em>value</em> </td> | ||
1381 | </tr> | ||
1382 | <tr> | ||
1383 | <td></td> | ||
1384 | <td>)</td> | ||
1385 | <td></td><td></td> | ||
1386 | </tr> | ||
1387 | </table> | ||
1388 | </div><div class="memdoc"> | ||
1389 | <p >This function sets hints for the next call to <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>. The hints, once set, retain their values until changed by a call to this function or <a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a>, or until the library is terminated.</p> | ||
1390 | <p >Only integer value hints can be set with this function. String value hints are set with <a class="el" href="group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f">glfwWindowHintString</a>.</p> | ||
1391 | <p >This function does not check whether the specified hint values are valid. If you set hints to invalid values this will instead be reported by the next call to <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>.</p> | ||
1392 | <p >Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.</p> | ||
1393 | <dl class="params"><dt>Parameters</dt><dd> | ||
1394 | <table class="params"> | ||
1395 | <tr><td class="paramdir">[in]</td><td class="paramname">hint</td><td>The <a class="el" href="window_guide.html#window_hints">window hint</a> to set. </td></tr> | ||
1396 | <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value of the window hint.</td></tr> | ||
1397 | </table> | ||
1398 | </dd> | ||
1399 | </dl> | ||
1400 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl> | ||
1401 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1402 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_hints">Window creation hints</a> </dd> | ||
1403 | <dd> | ||
1404 | <a class="el" href="group__window.html#ga8cb2782861c9d997bcf2dea97f363e5f">glfwWindowHintString</a> </dd> | ||
1405 | <dd> | ||
1406 | <a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a></dd></dl> | ||
1407 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwOpenWindowHint</code>. </dd></dl> | ||
1408 | |||
1409 | </div> | ||
1410 | </div> | ||
1411 | <a id="ga8cb2782861c9d997bcf2dea97f363e5f" name="ga8cb2782861c9d997bcf2dea97f363e5f"></a> | ||
1412 | <h2 class="memtitle"><span class="permalink"><a href="#ga8cb2782861c9d997bcf2dea97f363e5f">◆ </a></span>glfwWindowHintString()</h2> | ||
1413 | |||
1414 | <div class="memitem"> | ||
1415 | <div class="memproto"> | ||
1416 | <table class="memname"> | ||
1417 | <tr> | ||
1418 | <td class="memname">void glfwWindowHintString </td> | ||
1419 | <td>(</td> | ||
1420 | <td class="paramtype">int </td> | ||
1421 | <td class="paramname"><em>hint</em>, </td> | ||
1422 | </tr> | ||
1423 | <tr> | ||
1424 | <td class="paramkey"></td> | ||
1425 | <td></td> | ||
1426 | <td class="paramtype">const char * </td> | ||
1427 | <td class="paramname"><em>value</em> </td> | ||
1428 | </tr> | ||
1429 | <tr> | ||
1430 | <td></td> | ||
1431 | <td>)</td> | ||
1432 | <td></td><td></td> | ||
1433 | </tr> | ||
1434 | </table> | ||
1435 | </div><div class="memdoc"> | ||
1436 | <p >This function sets hints for the next call to <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>. The hints, once set, retain their values until changed by a call to this function or <a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a>, or until the library is terminated.</p> | ||
1437 | <p >Only string type hints can be set with this function. Integer value hints are set with <a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>.</p> | ||
1438 | <p >This function does not check whether the specified hint values are valid. If you set hints to invalid values this will instead be reported by the next call to <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>.</p> | ||
1439 | <p >Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.</p> | ||
1440 | <dl class="params"><dt>Parameters</dt><dd> | ||
1441 | <table class="params"> | ||
1442 | <tr><td class="paramdir">[in]</td><td class="paramname">hint</td><td>The <a class="el" href="window_guide.html#window_hints">window hint</a> to set. </td></tr> | ||
1443 | <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value of the window hint.</td></tr> | ||
1444 | </table> | ||
1445 | </dd> | ||
1446 | </dl> | ||
1447 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl> | ||
1448 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The specified string is copied before this function returns.</dd></dl> | ||
1449 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1450 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_hints">Window creation hints</a> </dd> | ||
1451 | <dd> | ||
1452 | <a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a> </dd> | ||
1453 | <dd> | ||
1454 | <a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a></dd></dl> | ||
1455 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
1456 | |||
1457 | </div> | ||
1458 | </div> | ||
1459 | <a id="ga3555a418df92ad53f917597fe2f64aeb" name="ga3555a418df92ad53f917597fe2f64aeb"></a> | ||
1460 | <h2 class="memtitle"><span class="permalink"><a href="#ga3555a418df92ad53f917597fe2f64aeb">◆ </a></span>glfwCreateWindow()</h2> | ||
1461 | |||
1462 | <div class="memitem"> | ||
1463 | <div class="memproto"> | ||
1464 | <table class="memname"> | ||
1465 | <tr> | ||
1466 | <td class="memname"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * glfwCreateWindow </td> | ||
1467 | <td>(</td> | ||
1468 | <td class="paramtype">int </td> | ||
1469 | <td class="paramname"><em>width</em>, </td> | ||
1470 | </tr> | ||
1471 | <tr> | ||
1472 | <td class="paramkey"></td> | ||
1473 | <td></td> | ||
1474 | <td class="paramtype">int </td> | ||
1475 | <td class="paramname"><em>height</em>, </td> | ||
1476 | </tr> | ||
1477 | <tr> | ||
1478 | <td class="paramkey"></td> | ||
1479 | <td></td> | ||
1480 | <td class="paramtype">const char * </td> | ||
1481 | <td class="paramname"><em>title</em>, </td> | ||
1482 | </tr> | ||
1483 | <tr> | ||
1484 | <td class="paramkey"></td> | ||
1485 | <td></td> | ||
1486 | <td class="paramtype"><a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> * </td> | ||
1487 | <td class="paramname"><em>monitor</em>, </td> | ||
1488 | </tr> | ||
1489 | <tr> | ||
1490 | <td class="paramkey"></td> | ||
1491 | <td></td> | ||
1492 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1493 | <td class="paramname"><em>share</em> </td> | ||
1494 | </tr> | ||
1495 | <tr> | ||
1496 | <td></td> | ||
1497 | <td>)</td> | ||
1498 | <td></td><td></td> | ||
1499 | </tr> | ||
1500 | </table> | ||
1501 | </div><div class="memdoc"> | ||
1502 | <p >This function creates a window and its associated OpenGL or OpenGL ES context. Most of the options controlling how the window and its context should be created are specified with <a class="el" href="window_guide.html#window_hints">window hints</a>.</p> | ||
1503 | <p >Successful creation does not change which context is current. Before you can use the newly created context, you need to <a class="el" href="context_guide.html#context_current">make it current</a>. For information about the <code>share</code> parameter, see <a class="el" href="context_guide.html#context_sharing">Context object sharing</a>.</p> | ||
1504 | <p >The created window, framebuffer and context may differ from what you requested, as not all parameters and hints are <a class="el" href="window_guide.html#window_hints_hard">hard constraints</a>. This includes the size of the window, especially for full screen windows. To query the actual attributes of the created window, framebuffer and context, see <a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a>, <a class="el" href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a> and <a class="el" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a>.</p> | ||
1505 | <p >To create a full screen window, you need to specify the monitor the window will cover. If no monitor is specified, the window will be windowed mode. Unless you have a way for the user to choose a specific monitor, it is recommended that you pick the primary monitor. For more information on how to query connected monitors, see <a class="el" href="monitor_guide.html#monitor_monitors">Retrieving monitors</a>.</p> | ||
1506 | <p >For full screen windows, the specified size becomes the resolution of the window's <em>desired video mode</em>. As long as a full screen window is not iconified, the supported video mode most closely matching the desired video mode is set for the specified monitor. For more information about full screen windows, including the creation of so called <em>windowed full screen</em> or <em>borderless full screen</em> windows, see <a class="el" href="window_guide.html#window_windowed_full_screen">"Windowed full screen" windows</a>.</p> | ||
1507 | <p >Once you have created the window, you can switch it between windowed and full screen mode with <a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a>. This will not affect its OpenGL or OpenGL ES context.</p> | ||
1508 | <p >By default, newly created windows use the placement recommended by the window system. To create the window at a specific position, make it initially invisible using the <a class="el" href="window_guide.html#GLFW_VISIBLE_hint">GLFW_VISIBLE</a> window hint, set its <a class="el" href="window_guide.html#window_pos">position</a> and then <a class="el" href="window_guide.html#window_hide">show</a> it.</p> | ||
1509 | <p >As long as at least one full screen window is not iconified, the screensaver is prohibited from starting.</p> | ||
1510 | <p >Window systems put limits on window sizes. Very large or very small window dimensions may be overridden by the window system on creation. Check the actual <a class="el" href="window_guide.html#window_size">size</a> after creation.</p> | ||
1511 | <p >The <a class="el" href="window_guide.html#buffer_swap">swap interval</a> is not set during window creation and the initial value may vary depending on driver settings and defaults.</p> | ||
1512 | <dl class="params"><dt>Parameters</dt><dd> | ||
1513 | <table class="params"> | ||
1514 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The desired width, in screen coordinates, of the window. This must be greater than zero. </td></tr> | ||
1515 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The desired height, in screen coordinates, of the window. This must be greater than zero. </td></tr> | ||
1516 | <tr><td class="paramdir">[in]</td><td class="paramname">title</td><td>The initial, UTF-8 encoded window title. </td></tr> | ||
1517 | <tr><td class="paramdir">[in]</td><td class="paramname">monitor</td><td>The monitor to use for full screen mode, or <code>NULL</code> for windowed mode. </td></tr> | ||
1518 | <tr><td class="paramdir">[in]</td><td class="paramname">share</td><td>The window whose context to share resources with, or <code>NULL</code> to not share resources. </td></tr> | ||
1519 | </table> | ||
1520 | </dd> | ||
1521 | </dl> | ||
1522 | <dl class="section return"><dt>Returns</dt><dd>The handle of the created window, or <code>NULL</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl> | ||
1523 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>, <a class="el" href="group__errors.html#ga56882b290db23261cc6c053c40c2d08e">GLFW_API_UNAVAILABLE</a>, <a class="el" href="group__errors.html#gad16c5565b4a69f9c2a9ac2c0dbc89462">GLFW_VERSION_UNAVAILABLE</a>, <a class="el" href="group__errors.html#ga196e125ef261d94184e2b55c05762f14">GLFW_FORMAT_UNAVAILABLE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1524 | <dl class="section remark"><dt>Remarks</dt><dd><b>Windows:</b> Window creation will fail if the Microsoft GDI software OpenGL implementation is the only one available.</dd> | ||
1525 | <dd> | ||
1526 | <b>Windows:</b> If the executable has an icon resource named <code>GLFW_ICON,</code> it will be set as the initial icon for the window. If no such icon is present, the <code>IDI_APPLICATION</code> icon will be used instead. To set a different icon, see <a class="el" href="group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5">glfwSetWindowIcon</a>.</dd> | ||
1527 | <dd> | ||
1528 | <b>Windows:</b> The context to share resources with must not be current on any other thread.</dd> | ||
1529 | <dd> | ||
1530 | <b>macOS:</b> The OS only supports forward-compatible core profile contexts for OpenGL versions 3.2 and later. Before creating an OpenGL context of version 3.2 or later you must set the <a class="el" href="window_guide.html#GLFW_OPENGL_FORWARD_COMPAT_hint">GLFW_OPENGL_FORWARD_COMPAT</a> and <a class="el" href="window_guide.html#GLFW_OPENGL_PROFILE_hint">GLFW_OPENGL_PROFILE</a> hints accordingly. OpenGL 3.0 and 3.1 contexts are not supported at all on macOS.</dd> | ||
1531 | <dd> | ||
1532 | <b>macOS:</b> The GLFW window has no icon, as it is not a document window, but the dock icon will be the same as the application bundle's icon. For more information on bundles, see the <a href="https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/">Bundle Programming Guide</a> in the Mac Developer Library.</dd> | ||
1533 | <dd> | ||
1534 | <b>macOS:</b> The first time a window is created the menu bar is created. If GLFW finds a <code>MainMenu.nib</code> it is loaded and assumed to contain a menu bar. Otherwise a minimal menu bar is created manually with common commands like Hide, Quit and About. The About entry opens a minimal about dialog with information from the application's bundle. Menu bar creation can be disabled entirely with the <a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a> init hint.</dd> | ||
1535 | <dd> | ||
1536 | <b>macOS:</b> On OS X 10.10 and later the window frame will not be rendered at full resolution on Retina displays unless the <a class="el" href="window_guide.html#GLFW_COCOA_RETINA_FRAMEBUFFER_hint">GLFW_COCOA_RETINA_FRAMEBUFFER</a> hint is <code>GLFW_TRUE</code> and the <code>NSHighResolutionCapable</code> key is enabled in the application bundle's <code>Info.plist</code>. For more information, see <a href="https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html">High Resolution Guidelines for OS X</a> in the Mac Developer Library. The GLFW test and example programs use a custom <code>Info.plist</code> template for this, which can be found as <code>CMake/MacOSXBundleInfo.plist.in</code> in the source tree.</dd> | ||
1537 | <dd> | ||
1538 | <b>macOS:</b> When activating frame autosaving with <a class="el" href="window_guide.html#GLFW_COCOA_FRAME_NAME_hint">GLFW_COCOA_FRAME_NAME</a>, the specified window size and position may be overridden by previously saved values.</dd> | ||
1539 | <dd> | ||
1540 | <b>X11:</b> Some window managers will not respect the placement of initially hidden windows.</dd> | ||
1541 | <dd> | ||
1542 | <b>X11:</b> Due to the asynchronous nature of X11, it may take a moment for a window to reach its requested state. This means you may not be able to query the final size, position or other attributes directly after window creation.</dd> | ||
1543 | <dd> | ||
1544 | <b>X11:</b> The class part of the <code>WM_CLASS</code> window property will by default be set to the window title passed to this function. The instance part will use the contents of the <code>RESOURCE_NAME</code> environment variable, if present and not empty, or fall back to the window title. Set the <a class="el" href="window_guide.html#GLFW_X11_CLASS_NAME_hint">GLFW_X11_CLASS_NAME</a> and <a class="el" href="window_guide.html#GLFW_X11_INSTANCE_NAME_hint">GLFW_X11_INSTANCE_NAME</a> window hints to override this.</dd> | ||
1545 | <dd> | ||
1546 | <b>Wayland:</b> Compositors should implement the xdg-decoration protocol for GLFW to decorate the window properly. If this protocol isn't supported, or if the compositor prefers client-side decorations, a very simple fallback frame will be drawn using the wp_viewporter protocol. A compositor can still emit close, maximize or fullscreen events, using for instance a keybind mechanism. If neither of these protocols is supported, the window won't be decorated.</dd> | ||
1547 | <dd> | ||
1548 | <b>Wayland:</b> A full screen window will not attempt to change the mode, no matter what the requested size or refresh rate.</dd> | ||
1549 | <dd> | ||
1550 | <b>Wayland:</b> Screensaver inhibition requires the idle-inhibit protocol to be implemented in the user's compositor.</dd></dl> | ||
1551 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1552 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_creation">Window creation</a> </dd> | ||
1553 | <dd> | ||
1554 | <a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a></dd></dl> | ||
1555 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwOpenWindow</code>. </dd></dl> | ||
1556 | |||
1557 | </div> | ||
1558 | </div> | ||
1559 | <a id="gacdf43e51376051d2c091662e9fe3d7b2" name="gacdf43e51376051d2c091662e9fe3d7b2"></a> | ||
1560 | <h2 class="memtitle"><span class="permalink"><a href="#gacdf43e51376051d2c091662e9fe3d7b2">◆ </a></span>glfwDestroyWindow()</h2> | ||
1561 | |||
1562 | <div class="memitem"> | ||
1563 | <div class="memproto"> | ||
1564 | <table class="memname"> | ||
1565 | <tr> | ||
1566 | <td class="memname">void glfwDestroyWindow </td> | ||
1567 | <td>(</td> | ||
1568 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1569 | <td class="paramname"><em>window</em></td><td>)</td> | ||
1570 | <td></td> | ||
1571 | </tr> | ||
1572 | </table> | ||
1573 | </div><div class="memdoc"> | ||
1574 | <p >This function destroys the specified window and its context. On calling this function, no further callbacks will be called for that window.</p> | ||
1575 | <p >If the context of the specified window is current on the main thread, it is detached before being destroyed.</p> | ||
1576 | <dl class="params"><dt>Parameters</dt><dd> | ||
1577 | <table class="params"> | ||
1578 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to destroy.</td></tr> | ||
1579 | </table> | ||
1580 | </dd> | ||
1581 | </dl> | ||
1582 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1583 | <dl class="section note"><dt>Note</dt><dd>The context of the specified window must not be current on any other thread when this function is called.</dd></dl> | ||
1584 | <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl> | ||
1585 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1586 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_creation">Window creation</a> </dd> | ||
1587 | <dd> | ||
1588 | <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a></dd></dl> | ||
1589 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwCloseWindow</code>. </dd></dl> | ||
1590 | |||
1591 | </div> | ||
1592 | </div> | ||
1593 | <a id="ga24e02fbfefbb81fc45320989f8140ab5" name="ga24e02fbfefbb81fc45320989f8140ab5"></a> | ||
1594 | <h2 class="memtitle"><span class="permalink"><a href="#ga24e02fbfefbb81fc45320989f8140ab5">◆ </a></span>glfwWindowShouldClose()</h2> | ||
1595 | |||
1596 | <div class="memitem"> | ||
1597 | <div class="memproto"> | ||
1598 | <table class="memname"> | ||
1599 | <tr> | ||
1600 | <td class="memname">int glfwWindowShouldClose </td> | ||
1601 | <td>(</td> | ||
1602 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1603 | <td class="paramname"><em>window</em></td><td>)</td> | ||
1604 | <td></td> | ||
1605 | </tr> | ||
1606 | </table> | ||
1607 | </div><div class="memdoc"> | ||
1608 | <p >This function returns the value of the close flag of the specified window.</p> | ||
1609 | <dl class="params"><dt>Parameters</dt><dd> | ||
1610 | <table class="params"> | ||
1611 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
1612 | </table> | ||
1613 | </dd> | ||
1614 | </dl> | ||
1615 | <dl class="section return"><dt>Returns</dt><dd>The value of the close flag.</dd></dl> | ||
1616 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
1617 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl> | ||
1618 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_close">Window closing and close flag</a></dd></dl> | ||
1619 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1620 | |||
1621 | </div> | ||
1622 | </div> | ||
1623 | <a id="ga49c449dde2a6f87d996f4daaa09d6708" name="ga49c449dde2a6f87d996f4daaa09d6708"></a> | ||
1624 | <h2 class="memtitle"><span class="permalink"><a href="#ga49c449dde2a6f87d996f4daaa09d6708">◆ </a></span>glfwSetWindowShouldClose()</h2> | ||
1625 | |||
1626 | <div class="memitem"> | ||
1627 | <div class="memproto"> | ||
1628 | <table class="memname"> | ||
1629 | <tr> | ||
1630 | <td class="memname">void glfwSetWindowShouldClose </td> | ||
1631 | <td>(</td> | ||
1632 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1633 | <td class="paramname"><em>window</em>, </td> | ||
1634 | </tr> | ||
1635 | <tr> | ||
1636 | <td class="paramkey"></td> | ||
1637 | <td></td> | ||
1638 | <td class="paramtype">int </td> | ||
1639 | <td class="paramname"><em>value</em> </td> | ||
1640 | </tr> | ||
1641 | <tr> | ||
1642 | <td></td> | ||
1643 | <td>)</td> | ||
1644 | <td></td><td></td> | ||
1645 | </tr> | ||
1646 | </table> | ||
1647 | </div><div class="memdoc"> | ||
1648 | <p >This function sets the value of the close flag of the specified window. This can be used to override the user's attempt to close the window, or to signal that it should be closed.</p> | ||
1649 | <dl class="params"><dt>Parameters</dt><dd> | ||
1650 | <table class="params"> | ||
1651 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose flag to change. </td></tr> | ||
1652 | <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value.</td></tr> | ||
1653 | </table> | ||
1654 | </dd> | ||
1655 | </dl> | ||
1656 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
1657 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl> | ||
1658 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_close">Window closing and close flag</a></dd></dl> | ||
1659 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1660 | |||
1661 | </div> | ||
1662 | </div> | ||
1663 | <a id="ga5d877f09e968cef7a360b513306f17ff" name="ga5d877f09e968cef7a360b513306f17ff"></a> | ||
1664 | <h2 class="memtitle"><span class="permalink"><a href="#ga5d877f09e968cef7a360b513306f17ff">◆ </a></span>glfwSetWindowTitle()</h2> | ||
1665 | |||
1666 | <div class="memitem"> | ||
1667 | <div class="memproto"> | ||
1668 | <table class="memname"> | ||
1669 | <tr> | ||
1670 | <td class="memname">void glfwSetWindowTitle </td> | ||
1671 | <td>(</td> | ||
1672 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1673 | <td class="paramname"><em>window</em>, </td> | ||
1674 | </tr> | ||
1675 | <tr> | ||
1676 | <td class="paramkey"></td> | ||
1677 | <td></td> | ||
1678 | <td class="paramtype">const char * </td> | ||
1679 | <td class="paramname"><em>title</em> </td> | ||
1680 | </tr> | ||
1681 | <tr> | ||
1682 | <td></td> | ||
1683 | <td>)</td> | ||
1684 | <td></td><td></td> | ||
1685 | </tr> | ||
1686 | </table> | ||
1687 | </div><div class="memdoc"> | ||
1688 | <p >This function sets the window title, encoded as UTF-8, of the specified window.</p> | ||
1689 | <dl class="params"><dt>Parameters</dt><dd> | ||
1690 | <table class="params"> | ||
1691 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose title to change. </td></tr> | ||
1692 | <tr><td class="paramdir">[in]</td><td class="paramname">title</td><td>The UTF-8 encoded window title.</td></tr> | ||
1693 | </table> | ||
1694 | </dd> | ||
1695 | </dl> | ||
1696 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1697 | <dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> The window title will not be updated until the next time you process events.</dd></dl> | ||
1698 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1699 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_title">Window title</a></dd></dl> | ||
1700 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1701 | |||
1702 | </div> | ||
1703 | </div> | ||
1704 | <a id="gadd7ccd39fe7a7d1f0904666ae5932dc5" name="gadd7ccd39fe7a7d1f0904666ae5932dc5"></a> | ||
1705 | <h2 class="memtitle"><span class="permalink"><a href="#gadd7ccd39fe7a7d1f0904666ae5932dc5">◆ </a></span>glfwSetWindowIcon()</h2> | ||
1706 | |||
1707 | <div class="memitem"> | ||
1708 | <div class="memproto"> | ||
1709 | <table class="memname"> | ||
1710 | <tr> | ||
1711 | <td class="memname">void glfwSetWindowIcon </td> | ||
1712 | <td>(</td> | ||
1713 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1714 | <td class="paramname"><em>window</em>, </td> | ||
1715 | </tr> | ||
1716 | <tr> | ||
1717 | <td class="paramkey"></td> | ||
1718 | <td></td> | ||
1719 | <td class="paramtype">int </td> | ||
1720 | <td class="paramname"><em>count</em>, </td> | ||
1721 | </tr> | ||
1722 | <tr> | ||
1723 | <td class="paramkey"></td> | ||
1724 | <td></td> | ||
1725 | <td class="paramtype">const <a class="el" href="structGLFWimage.html">GLFWimage</a> * </td> | ||
1726 | <td class="paramname"><em>images</em> </td> | ||
1727 | </tr> | ||
1728 | <tr> | ||
1729 | <td></td> | ||
1730 | <td>)</td> | ||
1731 | <td></td><td></td> | ||
1732 | </tr> | ||
1733 | </table> | ||
1734 | </div><div class="memdoc"> | ||
1735 | <p >This function sets the icon of the specified window. If passed an array of candidate images, those of or closest to the sizes desired by the system are selected. If no images are specified, the window reverts to its default icon.</p> | ||
1736 | <p >The pixels are 32-bit, little-endian, non-premultiplied RGBA, i.e. eight bits per channel with the red channel first. They are arranged canonically as packed sequential rows, starting from the top-left corner.</p> | ||
1737 | <p >The desired image sizes varies depending on platform and system settings. The selected images will be rescaled as needed. Good sizes include 16x16, 32x32 and 48x48.</p> | ||
1738 | <dl class="params"><dt>Parameters</dt><dd> | ||
1739 | <table class="params"> | ||
1740 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose icon to set. </td></tr> | ||
1741 | <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>The number of images in the specified array, or zero to revert to the default window icon. </td></tr> | ||
1742 | <tr><td class="paramdir">[in]</td><td class="paramname">images</td><td>The images to create the icon from. This is ignored if count is zero.</td></tr> | ||
1743 | </table> | ||
1744 | </dd> | ||
1745 | </dl> | ||
1746 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1747 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The specified image data is copied before this function returns.</dd></dl> | ||
1748 | <dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> The GLFW window has no icon, as it is not a document window, so this function does nothing. The dock icon will be the same as the application bundle's icon. For more information on bundles, see the <a href="https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/">Bundle Programming Guide</a> in the Mac Developer Library.</dd> | ||
1749 | <dd> | ||
1750 | <b>Wayland:</b> There is no existing protocol to change an icon, the window will thus inherit the one defined in the application's desktop file. This function always emits <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1751 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1752 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_icon">Window icon</a></dd></dl> | ||
1753 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
1754 | |||
1755 | </div> | ||
1756 | </div> | ||
1757 | <a id="ga73cb526c000876fd8ddf571570fdb634" name="ga73cb526c000876fd8ddf571570fdb634"></a> | ||
1758 | <h2 class="memtitle"><span class="permalink"><a href="#ga73cb526c000876fd8ddf571570fdb634">◆ </a></span>glfwGetWindowPos()</h2> | ||
1759 | |||
1760 | <div class="memitem"> | ||
1761 | <div class="memproto"> | ||
1762 | <table class="memname"> | ||
1763 | <tr> | ||
1764 | <td class="memname">void glfwGetWindowPos </td> | ||
1765 | <td>(</td> | ||
1766 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1767 | <td class="paramname"><em>window</em>, </td> | ||
1768 | </tr> | ||
1769 | <tr> | ||
1770 | <td class="paramkey"></td> | ||
1771 | <td></td> | ||
1772 | <td class="paramtype">int * </td> | ||
1773 | <td class="paramname"><em>xpos</em>, </td> | ||
1774 | </tr> | ||
1775 | <tr> | ||
1776 | <td class="paramkey"></td> | ||
1777 | <td></td> | ||
1778 | <td class="paramtype">int * </td> | ||
1779 | <td class="paramname"><em>ypos</em> </td> | ||
1780 | </tr> | ||
1781 | <tr> | ||
1782 | <td></td> | ||
1783 | <td>)</td> | ||
1784 | <td></td><td></td> | ||
1785 | </tr> | ||
1786 | </table> | ||
1787 | </div><div class="memdoc"> | ||
1788 | <p >This function retrieves the position, in screen coordinates, of the upper-left corner of the content area of the specified window.</p> | ||
1789 | <p >Any or all of the position arguments may be <code>NULL</code>. If an error occurs, all non-<code>NULL</code> position arguments will be set to zero.</p> | ||
1790 | <dl class="params"><dt>Parameters</dt><dd> | ||
1791 | <table class="params"> | ||
1792 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
1793 | <tr><td class="paramdir">[out]</td><td class="paramname">xpos</td><td>Where to store the x-coordinate of the upper-left corner of the content area, or <code>NULL</code>. </td></tr> | ||
1794 | <tr><td class="paramdir">[out]</td><td class="paramname">ypos</td><td>Where to store the y-coordinate of the upper-left corner of the content area, or <code>NULL</code>.</td></tr> | ||
1795 | </table> | ||
1796 | </dd> | ||
1797 | </dl> | ||
1798 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1799 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> There is no way for an application to retrieve the global position of its windows, this function will always emit <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1800 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1801 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_pos">Window position</a> </dd> | ||
1802 | <dd> | ||
1803 | <a class="el" href="group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8">glfwSetWindowPos</a></dd></dl> | ||
1804 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
1805 | |||
1806 | </div> | ||
1807 | </div> | ||
1808 | <a id="ga1abb6d690e8c88e0c8cd1751356dbca8" name="ga1abb6d690e8c88e0c8cd1751356dbca8"></a> | ||
1809 | <h2 class="memtitle"><span class="permalink"><a href="#ga1abb6d690e8c88e0c8cd1751356dbca8">◆ </a></span>glfwSetWindowPos()</h2> | ||
1810 | |||
1811 | <div class="memitem"> | ||
1812 | <div class="memproto"> | ||
1813 | <table class="memname"> | ||
1814 | <tr> | ||
1815 | <td class="memname">void glfwSetWindowPos </td> | ||
1816 | <td>(</td> | ||
1817 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1818 | <td class="paramname"><em>window</em>, </td> | ||
1819 | </tr> | ||
1820 | <tr> | ||
1821 | <td class="paramkey"></td> | ||
1822 | <td></td> | ||
1823 | <td class="paramtype">int </td> | ||
1824 | <td class="paramname"><em>xpos</em>, </td> | ||
1825 | </tr> | ||
1826 | <tr> | ||
1827 | <td class="paramkey"></td> | ||
1828 | <td></td> | ||
1829 | <td class="paramtype">int </td> | ||
1830 | <td class="paramname"><em>ypos</em> </td> | ||
1831 | </tr> | ||
1832 | <tr> | ||
1833 | <td></td> | ||
1834 | <td>)</td> | ||
1835 | <td></td><td></td> | ||
1836 | </tr> | ||
1837 | </table> | ||
1838 | </div><div class="memdoc"> | ||
1839 | <p >This function sets the position, in screen coordinates, of the upper-left corner of the content area of the specified windowed mode window. If the window is a full screen window, this function does nothing.</p> | ||
1840 | <p ><b>Do not use this function</b> to move an already visible window unless you have very good reasons for doing so, as it will confuse and annoy the user.</p> | ||
1841 | <p >The window manager may put limits on what positions are allowed. GLFW cannot and should not override these limits.</p> | ||
1842 | <dl class="params"><dt>Parameters</dt><dd> | ||
1843 | <table class="params"> | ||
1844 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
1845 | <tr><td class="paramdir">[in]</td><td class="paramname">xpos</td><td>The x-coordinate of the upper-left corner of the content area. </td></tr> | ||
1846 | <tr><td class="paramdir">[in]</td><td class="paramname">ypos</td><td>The y-coordinate of the upper-left corner of the content area.</td></tr> | ||
1847 | </table> | ||
1848 | </dd> | ||
1849 | </dl> | ||
1850 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1851 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> There is no way for an application to set the global position of its windows, this function will always emit <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1852 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1853 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_pos">Window position</a> </dd> | ||
1854 | <dd> | ||
1855 | <a class="el" href="group__window.html#ga73cb526c000876fd8ddf571570fdb634">glfwGetWindowPos</a></dd></dl> | ||
1856 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1857 | |||
1858 | </div> | ||
1859 | </div> | ||
1860 | <a id="gaeea7cbc03373a41fb51cfbf9f2a5d4c6" name="gaeea7cbc03373a41fb51cfbf9f2a5d4c6"></a> | ||
1861 | <h2 class="memtitle"><span class="permalink"><a href="#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">◆ </a></span>glfwGetWindowSize()</h2> | ||
1862 | |||
1863 | <div class="memitem"> | ||
1864 | <div class="memproto"> | ||
1865 | <table class="memname"> | ||
1866 | <tr> | ||
1867 | <td class="memname">void glfwGetWindowSize </td> | ||
1868 | <td>(</td> | ||
1869 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1870 | <td class="paramname"><em>window</em>, </td> | ||
1871 | </tr> | ||
1872 | <tr> | ||
1873 | <td class="paramkey"></td> | ||
1874 | <td></td> | ||
1875 | <td class="paramtype">int * </td> | ||
1876 | <td class="paramname"><em>width</em>, </td> | ||
1877 | </tr> | ||
1878 | <tr> | ||
1879 | <td class="paramkey"></td> | ||
1880 | <td></td> | ||
1881 | <td class="paramtype">int * </td> | ||
1882 | <td class="paramname"><em>height</em> </td> | ||
1883 | </tr> | ||
1884 | <tr> | ||
1885 | <td></td> | ||
1886 | <td>)</td> | ||
1887 | <td></td><td></td> | ||
1888 | </tr> | ||
1889 | </table> | ||
1890 | </div><div class="memdoc"> | ||
1891 | <p >This function retrieves the size, in screen coordinates, of the content area of the specified window. If you wish to retrieve the size of the framebuffer of the window in pixels, see <a class="el" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a>.</p> | ||
1892 | <p >Any or all of the size arguments may be <code>NULL</code>. If an error occurs, all non-<code>NULL</code> size arguments will be set to zero.</p> | ||
1893 | <dl class="params"><dt>Parameters</dt><dd> | ||
1894 | <table class="params"> | ||
1895 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose size to retrieve. </td></tr> | ||
1896 | <tr><td class="paramdir">[out]</td><td class="paramname">width</td><td>Where to store the width, in screen coordinates, of the content area, or <code>NULL</code>. </td></tr> | ||
1897 | <tr><td class="paramdir">[out]</td><td class="paramname">height</td><td>Where to store the height, in screen coordinates, of the content area, or <code>NULL</code>.</td></tr> | ||
1898 | </table> | ||
1899 | </dd> | ||
1900 | </dl> | ||
1901 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1902 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1903 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a> </dd> | ||
1904 | <dd> | ||
1905 | <a class="el" href="group__window.html#ga371911f12c74c504dd8d47d832d095cb">glfwSetWindowSize</a></dd></dl> | ||
1906 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
1907 | |||
1908 | </div> | ||
1909 | </div> | ||
1910 | <a id="gac314fa6cec7d2d307be9963e2709cc90" name="gac314fa6cec7d2d307be9963e2709cc90"></a> | ||
1911 | <h2 class="memtitle"><span class="permalink"><a href="#gac314fa6cec7d2d307be9963e2709cc90">◆ </a></span>glfwSetWindowSizeLimits()</h2> | ||
1912 | |||
1913 | <div class="memitem"> | ||
1914 | <div class="memproto"> | ||
1915 | <table class="memname"> | ||
1916 | <tr> | ||
1917 | <td class="memname">void glfwSetWindowSizeLimits </td> | ||
1918 | <td>(</td> | ||
1919 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1920 | <td class="paramname"><em>window</em>, </td> | ||
1921 | </tr> | ||
1922 | <tr> | ||
1923 | <td class="paramkey"></td> | ||
1924 | <td></td> | ||
1925 | <td class="paramtype">int </td> | ||
1926 | <td class="paramname"><em>minwidth</em>, </td> | ||
1927 | </tr> | ||
1928 | <tr> | ||
1929 | <td class="paramkey"></td> | ||
1930 | <td></td> | ||
1931 | <td class="paramtype">int </td> | ||
1932 | <td class="paramname"><em>minheight</em>, </td> | ||
1933 | </tr> | ||
1934 | <tr> | ||
1935 | <td class="paramkey"></td> | ||
1936 | <td></td> | ||
1937 | <td class="paramtype">int </td> | ||
1938 | <td class="paramname"><em>maxwidth</em>, </td> | ||
1939 | </tr> | ||
1940 | <tr> | ||
1941 | <td class="paramkey"></td> | ||
1942 | <td></td> | ||
1943 | <td class="paramtype">int </td> | ||
1944 | <td class="paramname"><em>maxheight</em> </td> | ||
1945 | </tr> | ||
1946 | <tr> | ||
1947 | <td></td> | ||
1948 | <td>)</td> | ||
1949 | <td></td><td></td> | ||
1950 | </tr> | ||
1951 | </table> | ||
1952 | </div><div class="memdoc"> | ||
1953 | <p >This function sets the size limits of the content area of the specified window. If the window is full screen, the size limits only take effect once it is made windowed. If the window is not resizable, this function does nothing.</p> | ||
1954 | <p >The size limits are applied immediately to a windowed mode window and may cause it to be resized.</p> | ||
1955 | <p >The maximum dimensions must be greater than or equal to the minimum dimensions and all must be greater than or equal to zero.</p> | ||
1956 | <dl class="params"><dt>Parameters</dt><dd> | ||
1957 | <table class="params"> | ||
1958 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to set limits for. </td></tr> | ||
1959 | <tr><td class="paramdir">[in]</td><td class="paramname">minwidth</td><td>The minimum width, in screen coordinates, of the content area, or <code>GLFW_DONT_CARE</code>. </td></tr> | ||
1960 | <tr><td class="paramdir">[in]</td><td class="paramname">minheight</td><td>The minimum height, in screen coordinates, of the content area, or <code>GLFW_DONT_CARE</code>. </td></tr> | ||
1961 | <tr><td class="paramdir">[in]</td><td class="paramname">maxwidth</td><td>The maximum width, in screen coordinates, of the content area, or <code>GLFW_DONT_CARE</code>. </td></tr> | ||
1962 | <tr><td class="paramdir">[in]</td><td class="paramname">maxheight</td><td>The maximum height, in screen coordinates, of the content area, or <code>GLFW_DONT_CARE</code>.</td></tr> | ||
1963 | </table> | ||
1964 | </dd> | ||
1965 | </dl> | ||
1966 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
1967 | <dl class="section remark"><dt>Remarks</dt><dd>If you set size limits and an aspect ratio that conflict, the results are undefined.</dd> | ||
1968 | <dd> | ||
1969 | <b>Wayland:</b> The size limits will not be applied until the window is actually resized, either by the user or by the compositor.</dd></dl> | ||
1970 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
1971 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_sizelimits">Window size limits</a> </dd> | ||
1972 | <dd> | ||
1973 | <a class="el" href="group__window.html#ga72ac8cb1ee2e312a878b55153d81b937">glfwSetWindowAspectRatio</a></dd></dl> | ||
1974 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
1975 | |||
1976 | </div> | ||
1977 | </div> | ||
1978 | <a id="ga72ac8cb1ee2e312a878b55153d81b937" name="ga72ac8cb1ee2e312a878b55153d81b937"></a> | ||
1979 | <h2 class="memtitle"><span class="permalink"><a href="#ga72ac8cb1ee2e312a878b55153d81b937">◆ </a></span>glfwSetWindowAspectRatio()</h2> | ||
1980 | |||
1981 | <div class="memitem"> | ||
1982 | <div class="memproto"> | ||
1983 | <table class="memname"> | ||
1984 | <tr> | ||
1985 | <td class="memname">void glfwSetWindowAspectRatio </td> | ||
1986 | <td>(</td> | ||
1987 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
1988 | <td class="paramname"><em>window</em>, </td> | ||
1989 | </tr> | ||
1990 | <tr> | ||
1991 | <td class="paramkey"></td> | ||
1992 | <td></td> | ||
1993 | <td class="paramtype">int </td> | ||
1994 | <td class="paramname"><em>numer</em>, </td> | ||
1995 | </tr> | ||
1996 | <tr> | ||
1997 | <td class="paramkey"></td> | ||
1998 | <td></td> | ||
1999 | <td class="paramtype">int </td> | ||
2000 | <td class="paramname"><em>denom</em> </td> | ||
2001 | </tr> | ||
2002 | <tr> | ||
2003 | <td></td> | ||
2004 | <td>)</td> | ||
2005 | <td></td><td></td> | ||
2006 | </tr> | ||
2007 | </table> | ||
2008 | </div><div class="memdoc"> | ||
2009 | <p >This function sets the required aspect ratio of the content area of the specified window. If the window is full screen, the aspect ratio only takes effect once it is made windowed. If the window is not resizable, this function does nothing.</p> | ||
2010 | <p >The aspect ratio is specified as a numerator and a denominator and both values must be greater than zero. For example, the common 16:9 aspect ratio is specified as 16 and 9, respectively.</p> | ||
2011 | <p >If the numerator and denominator is set to <code>GLFW_DONT_CARE</code> then the aspect ratio limit is disabled.</p> | ||
2012 | <p >The aspect ratio is applied immediately to a windowed mode window and may cause it to be resized.</p> | ||
2013 | <dl class="params"><dt>Parameters</dt><dd> | ||
2014 | <table class="params"> | ||
2015 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to set limits for. </td></tr> | ||
2016 | <tr><td class="paramdir">[in]</td><td class="paramname">numer</td><td>The numerator of the desired aspect ratio, or <code>GLFW_DONT_CARE</code>. </td></tr> | ||
2017 | <tr><td class="paramdir">[in]</td><td class="paramname">denom</td><td>The denominator of the desired aspect ratio, or <code>GLFW_DONT_CARE</code>.</td></tr> | ||
2018 | </table> | ||
2019 | </dd> | ||
2020 | </dl> | ||
2021 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2022 | <dl class="section remark"><dt>Remarks</dt><dd>If you set size limits and an aspect ratio that conflict, the results are undefined.</dd> | ||
2023 | <dd> | ||
2024 | <b>Wayland:</b> The aspect ratio will not be applied until the window is actually resized, either by the user or by the compositor.</dd></dl> | ||
2025 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2026 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_sizelimits">Window size limits</a> </dd> | ||
2027 | <dd> | ||
2028 | <a class="el" href="group__window.html#gac314fa6cec7d2d307be9963e2709cc90">glfwSetWindowSizeLimits</a></dd></dl> | ||
2029 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
2030 | |||
2031 | </div> | ||
2032 | </div> | ||
2033 | <a id="ga371911f12c74c504dd8d47d832d095cb" name="ga371911f12c74c504dd8d47d832d095cb"></a> | ||
2034 | <h2 class="memtitle"><span class="permalink"><a href="#ga371911f12c74c504dd8d47d832d095cb">◆ </a></span>glfwSetWindowSize()</h2> | ||
2035 | |||
2036 | <div class="memitem"> | ||
2037 | <div class="memproto"> | ||
2038 | <table class="memname"> | ||
2039 | <tr> | ||
2040 | <td class="memname">void glfwSetWindowSize </td> | ||
2041 | <td>(</td> | ||
2042 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2043 | <td class="paramname"><em>window</em>, </td> | ||
2044 | </tr> | ||
2045 | <tr> | ||
2046 | <td class="paramkey"></td> | ||
2047 | <td></td> | ||
2048 | <td class="paramtype">int </td> | ||
2049 | <td class="paramname"><em>width</em>, </td> | ||
2050 | </tr> | ||
2051 | <tr> | ||
2052 | <td class="paramkey"></td> | ||
2053 | <td></td> | ||
2054 | <td class="paramtype">int </td> | ||
2055 | <td class="paramname"><em>height</em> </td> | ||
2056 | </tr> | ||
2057 | <tr> | ||
2058 | <td></td> | ||
2059 | <td>)</td> | ||
2060 | <td></td><td></td> | ||
2061 | </tr> | ||
2062 | </table> | ||
2063 | </div><div class="memdoc"> | ||
2064 | <p >This function sets the size, in screen coordinates, of the content area of the specified window.</p> | ||
2065 | <p >For full screen windows, this function updates the resolution of its desired video mode and switches to the video mode closest to it, without affecting the window's context. As the context is unaffected, the bit depths of the framebuffer remain unchanged.</p> | ||
2066 | <p >If you wish to update the refresh rate of the desired video mode in addition to its resolution, see <a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a>.</p> | ||
2067 | <p >The window manager may put limits on what sizes are allowed. GLFW cannot and should not override these limits.</p> | ||
2068 | <dl class="params"><dt>Parameters</dt><dd> | ||
2069 | <table class="params"> | ||
2070 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to resize. </td></tr> | ||
2071 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The desired width, in screen coordinates, of the window content area. </td></tr> | ||
2072 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The desired height, in screen coordinates, of the window content area.</td></tr> | ||
2073 | </table> | ||
2074 | </dd> | ||
2075 | </dl> | ||
2076 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2077 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> A full screen window will not attempt to change the mode, no matter what the requested size.</dd></dl> | ||
2078 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2079 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a> </dd> | ||
2080 | <dd> | ||
2081 | <a class="el" href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a> </dd> | ||
2082 | <dd> | ||
2083 | <a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a></dd></dl> | ||
2084 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
2085 | |||
2086 | </div> | ||
2087 | </div> | ||
2088 | <a id="ga0e2637a4161afb283f5300c7f94785c9" name="ga0e2637a4161afb283f5300c7f94785c9"></a> | ||
2089 | <h2 class="memtitle"><span class="permalink"><a href="#ga0e2637a4161afb283f5300c7f94785c9">◆ </a></span>glfwGetFramebufferSize()</h2> | ||
2090 | |||
2091 | <div class="memitem"> | ||
2092 | <div class="memproto"> | ||
2093 | <table class="memname"> | ||
2094 | <tr> | ||
2095 | <td class="memname">void glfwGetFramebufferSize </td> | ||
2096 | <td>(</td> | ||
2097 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2098 | <td class="paramname"><em>window</em>, </td> | ||
2099 | </tr> | ||
2100 | <tr> | ||
2101 | <td class="paramkey"></td> | ||
2102 | <td></td> | ||
2103 | <td class="paramtype">int * </td> | ||
2104 | <td class="paramname"><em>width</em>, </td> | ||
2105 | </tr> | ||
2106 | <tr> | ||
2107 | <td class="paramkey"></td> | ||
2108 | <td></td> | ||
2109 | <td class="paramtype">int * </td> | ||
2110 | <td class="paramname"><em>height</em> </td> | ||
2111 | </tr> | ||
2112 | <tr> | ||
2113 | <td></td> | ||
2114 | <td>)</td> | ||
2115 | <td></td><td></td> | ||
2116 | </tr> | ||
2117 | </table> | ||
2118 | </div><div class="memdoc"> | ||
2119 | <p >This function retrieves the size, in pixels, of the framebuffer of the specified window. If you wish to retrieve the size of the window in screen coordinates, see <a class="el" href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a>.</p> | ||
2120 | <p >Any or all of the size arguments may be <code>NULL</code>. If an error occurs, all non-<code>NULL</code> size arguments will be set to zero.</p> | ||
2121 | <dl class="params"><dt>Parameters</dt><dd> | ||
2122 | <table class="params"> | ||
2123 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose framebuffer to query. </td></tr> | ||
2124 | <tr><td class="paramdir">[out]</td><td class="paramname">width</td><td>Where to store the width, in pixels, of the framebuffer, or <code>NULL</code>. </td></tr> | ||
2125 | <tr><td class="paramdir">[out]</td><td class="paramname">height</td><td>Where to store the height, in pixels, of the framebuffer, or <code>NULL</code>.</td></tr> | ||
2126 | </table> | ||
2127 | </dd> | ||
2128 | </dl> | ||
2129 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2130 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2131 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_fbsize">Framebuffer size</a> </dd> | ||
2132 | <dd> | ||
2133 | <a class="el" href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">glfwSetFramebufferSizeCallback</a></dd></dl> | ||
2134 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2135 | |||
2136 | </div> | ||
2137 | </div> | ||
2138 | <a id="ga1a9fd382058c53101b21cf211898f1f1" name="ga1a9fd382058c53101b21cf211898f1f1"></a> | ||
2139 | <h2 class="memtitle"><span class="permalink"><a href="#ga1a9fd382058c53101b21cf211898f1f1">◆ </a></span>glfwGetWindowFrameSize()</h2> | ||
2140 | |||
2141 | <div class="memitem"> | ||
2142 | <div class="memproto"> | ||
2143 | <table class="memname"> | ||
2144 | <tr> | ||
2145 | <td class="memname">void glfwGetWindowFrameSize </td> | ||
2146 | <td>(</td> | ||
2147 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2148 | <td class="paramname"><em>window</em>, </td> | ||
2149 | </tr> | ||
2150 | <tr> | ||
2151 | <td class="paramkey"></td> | ||
2152 | <td></td> | ||
2153 | <td class="paramtype">int * </td> | ||
2154 | <td class="paramname"><em>left</em>, </td> | ||
2155 | </tr> | ||
2156 | <tr> | ||
2157 | <td class="paramkey"></td> | ||
2158 | <td></td> | ||
2159 | <td class="paramtype">int * </td> | ||
2160 | <td class="paramname"><em>top</em>, </td> | ||
2161 | </tr> | ||
2162 | <tr> | ||
2163 | <td class="paramkey"></td> | ||
2164 | <td></td> | ||
2165 | <td class="paramtype">int * </td> | ||
2166 | <td class="paramname"><em>right</em>, </td> | ||
2167 | </tr> | ||
2168 | <tr> | ||
2169 | <td class="paramkey"></td> | ||
2170 | <td></td> | ||
2171 | <td class="paramtype">int * </td> | ||
2172 | <td class="paramname"><em>bottom</em> </td> | ||
2173 | </tr> | ||
2174 | <tr> | ||
2175 | <td></td> | ||
2176 | <td>)</td> | ||
2177 | <td></td><td></td> | ||
2178 | </tr> | ||
2179 | </table> | ||
2180 | </div><div class="memdoc"> | ||
2181 | <p >This function retrieves the size, in screen coordinates, of each edge of the frame of the specified window. This size includes the title bar, if the window has one. The size of the frame may vary depending on the <a class="el" href="window_guide.html#window_hints_wnd">window-related hints</a> used to create it.</p> | ||
2182 | <p >Because this function retrieves the size of each window frame edge and not the offset along a particular coordinate axis, the retrieved values will always be zero or positive.</p> | ||
2183 | <p >Any or all of the size arguments may be <code>NULL</code>. If an error occurs, all non-<code>NULL</code> size arguments will be set to zero.</p> | ||
2184 | <dl class="params"><dt>Parameters</dt><dd> | ||
2185 | <table class="params"> | ||
2186 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose frame size to query. </td></tr> | ||
2187 | <tr><td class="paramdir">[out]</td><td class="paramname">left</td><td>Where to store the size, in screen coordinates, of the left edge of the window frame, or <code>NULL</code>. </td></tr> | ||
2188 | <tr><td class="paramdir">[out]</td><td class="paramname">top</td><td>Where to store the size, in screen coordinates, of the top edge of the window frame, or <code>NULL</code>. </td></tr> | ||
2189 | <tr><td class="paramdir">[out]</td><td class="paramname">right</td><td>Where to store the size, in screen coordinates, of the right edge of the window frame, or <code>NULL</code>. </td></tr> | ||
2190 | <tr><td class="paramdir">[out]</td><td class="paramname">bottom</td><td>Where to store the size, in screen coordinates, of the bottom edge of the window frame, or <code>NULL</code>.</td></tr> | ||
2191 | </table> | ||
2192 | </dd> | ||
2193 | </dl> | ||
2194 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2195 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2196 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a></dd></dl> | ||
2197 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl> | ||
2198 | |||
2199 | </div> | ||
2200 | </div> | ||
2201 | <a id="gaf5d31de9c19c4f994facea64d2b3106c" name="gaf5d31de9c19c4f994facea64d2b3106c"></a> | ||
2202 | <h2 class="memtitle"><span class="permalink"><a href="#gaf5d31de9c19c4f994facea64d2b3106c">◆ </a></span>glfwGetWindowContentScale()</h2> | ||
2203 | |||
2204 | <div class="memitem"> | ||
2205 | <div class="memproto"> | ||
2206 | <table class="memname"> | ||
2207 | <tr> | ||
2208 | <td class="memname">void glfwGetWindowContentScale </td> | ||
2209 | <td>(</td> | ||
2210 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2211 | <td class="paramname"><em>window</em>, </td> | ||
2212 | </tr> | ||
2213 | <tr> | ||
2214 | <td class="paramkey"></td> | ||
2215 | <td></td> | ||
2216 | <td class="paramtype">float * </td> | ||
2217 | <td class="paramname"><em>xscale</em>, </td> | ||
2218 | </tr> | ||
2219 | <tr> | ||
2220 | <td class="paramkey"></td> | ||
2221 | <td></td> | ||
2222 | <td class="paramtype">float * </td> | ||
2223 | <td class="paramname"><em>yscale</em> </td> | ||
2224 | </tr> | ||
2225 | <tr> | ||
2226 | <td></td> | ||
2227 | <td>)</td> | ||
2228 | <td></td><td></td> | ||
2229 | </tr> | ||
2230 | </table> | ||
2231 | </div><div class="memdoc"> | ||
2232 | <p >This function retrieves the content scale for the specified window. The content scale is the ratio between the current DPI and the platform's default DPI. This is especially important for text and any UI elements. If the pixel dimensions of your UI scaled by this look appropriate on your machine then it should appear at a reasonable size on other machines regardless of their DPI and scaling settings. This relies on the system DPI and scaling settings being somewhat correct.</p> | ||
2233 | <p >On systems where each monitors can have its own content scale, the window content scale will depend on which monitor the system considers the window to be on.</p> | ||
2234 | <dl class="params"><dt>Parameters</dt><dd> | ||
2235 | <table class="params"> | ||
2236 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
2237 | <tr><td class="paramdir">[out]</td><td class="paramname">xscale</td><td>Where to store the x-axis content scale, or <code>NULL</code>. </td></tr> | ||
2238 | <tr><td class="paramdir">[out]</td><td class="paramname">yscale</td><td>Where to store the y-axis content scale, or <code>NULL</code>.</td></tr> | ||
2239 | </table> | ||
2240 | </dd> | ||
2241 | </dl> | ||
2242 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2243 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2244 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_scale">Window content scale</a> </dd> | ||
2245 | <dd> | ||
2246 | <a class="el" href="group__window.html#gaf2832ebb5aa6c252a2d261de002c92d6">glfwSetWindowContentScaleCallback</a> </dd> | ||
2247 | <dd> | ||
2248 | <a class="el" href="group__monitor.html#gad3152e84465fa620b601265ebfcdb21b">glfwGetMonitorContentScale</a></dd></dl> | ||
2249 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
2250 | |||
2251 | </div> | ||
2252 | </div> | ||
2253 | <a id="gad09f0bd7a6307c4533b7061828480a84" name="gad09f0bd7a6307c4533b7061828480a84"></a> | ||
2254 | <h2 class="memtitle"><span class="permalink"><a href="#gad09f0bd7a6307c4533b7061828480a84">◆ </a></span>glfwGetWindowOpacity()</h2> | ||
2255 | |||
2256 | <div class="memitem"> | ||
2257 | <div class="memproto"> | ||
2258 | <table class="memname"> | ||
2259 | <tr> | ||
2260 | <td class="memname">float glfwGetWindowOpacity </td> | ||
2261 | <td>(</td> | ||
2262 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2263 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2264 | <td></td> | ||
2265 | </tr> | ||
2266 | </table> | ||
2267 | </div><div class="memdoc"> | ||
2268 | <p >This function returns the opacity of the window, including any decorations.</p> | ||
2269 | <p >The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque. If the system does not support whole window transparency, this function always returns one.</p> | ||
2270 | <p >The initial opacity value for newly created windows is one.</p> | ||
2271 | <dl class="params"><dt>Parameters</dt><dd> | ||
2272 | <table class="params"> | ||
2273 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
2274 | </table> | ||
2275 | </dd> | ||
2276 | </dl> | ||
2277 | <dl class="section return"><dt>Returns</dt><dd>The opacity value of the specified window.</dd></dl> | ||
2278 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2279 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2280 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_transparency">Window transparency</a> </dd> | ||
2281 | <dd> | ||
2282 | <a class="el" href="group__window.html#gac31caeb3d1088831b13d2c8a156802e9">glfwSetWindowOpacity</a></dd></dl> | ||
2283 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
2284 | |||
2285 | </div> | ||
2286 | </div> | ||
2287 | <a id="gac31caeb3d1088831b13d2c8a156802e9" name="gac31caeb3d1088831b13d2c8a156802e9"></a> | ||
2288 | <h2 class="memtitle"><span class="permalink"><a href="#gac31caeb3d1088831b13d2c8a156802e9">◆ </a></span>glfwSetWindowOpacity()</h2> | ||
2289 | |||
2290 | <div class="memitem"> | ||
2291 | <div class="memproto"> | ||
2292 | <table class="memname"> | ||
2293 | <tr> | ||
2294 | <td class="memname">void glfwSetWindowOpacity </td> | ||
2295 | <td>(</td> | ||
2296 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2297 | <td class="paramname"><em>window</em>, </td> | ||
2298 | </tr> | ||
2299 | <tr> | ||
2300 | <td class="paramkey"></td> | ||
2301 | <td></td> | ||
2302 | <td class="paramtype">float </td> | ||
2303 | <td class="paramname"><em>opacity</em> </td> | ||
2304 | </tr> | ||
2305 | <tr> | ||
2306 | <td></td> | ||
2307 | <td>)</td> | ||
2308 | <td></td><td></td> | ||
2309 | </tr> | ||
2310 | </table> | ||
2311 | </div><div class="memdoc"> | ||
2312 | <p >This function sets the opacity of the window, including any decorations.</p> | ||
2313 | <p >The opacity (or alpha) value is a positive finite number between zero and one, where zero is fully transparent and one is fully opaque.</p> | ||
2314 | <p >The initial opacity value for newly created windows is one.</p> | ||
2315 | <p >A window created with framebuffer transparency may not use whole window transparency. The results of doing this are undefined.</p> | ||
2316 | <dl class="params"><dt>Parameters</dt><dd> | ||
2317 | <table class="params"> | ||
2318 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to set the opacity for. </td></tr> | ||
2319 | <tr><td class="paramdir">[in]</td><td class="paramname">opacity</td><td>The desired opacity of the specified window.</td></tr> | ||
2320 | </table> | ||
2321 | </dd> | ||
2322 | </dl> | ||
2323 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2324 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2325 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_transparency">Window transparency</a> </dd> | ||
2326 | <dd> | ||
2327 | <a class="el" href="group__window.html#gad09f0bd7a6307c4533b7061828480a84">glfwGetWindowOpacity</a></dd></dl> | ||
2328 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
2329 | |||
2330 | </div> | ||
2331 | </div> | ||
2332 | <a id="ga1bb559c0ebaad63c5c05ad2a066779c4" name="ga1bb559c0ebaad63c5c05ad2a066779c4"></a> | ||
2333 | <h2 class="memtitle"><span class="permalink"><a href="#ga1bb559c0ebaad63c5c05ad2a066779c4">◆ </a></span>glfwIconifyWindow()</h2> | ||
2334 | |||
2335 | <div class="memitem"> | ||
2336 | <div class="memproto"> | ||
2337 | <table class="memname"> | ||
2338 | <tr> | ||
2339 | <td class="memname">void glfwIconifyWindow </td> | ||
2340 | <td>(</td> | ||
2341 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2342 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2343 | <td></td> | ||
2344 | </tr> | ||
2345 | </table> | ||
2346 | </div><div class="memdoc"> | ||
2347 | <p >This function iconifies (minimizes) the specified window if it was previously restored. If the window is already iconified, this function does nothing.</p> | ||
2348 | <p >If the specified window is a full screen window, the original monitor resolution is restored until the window is restored.</p> | ||
2349 | <dl class="params"><dt>Parameters</dt><dd> | ||
2350 | <table class="params"> | ||
2351 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to iconify.</td></tr> | ||
2352 | </table> | ||
2353 | </dd> | ||
2354 | </dl> | ||
2355 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2356 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> There is no concept of iconification in wl_shell, this function will emit <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> when using this deprecated protocol.</dd></dl> | ||
2357 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2358 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_iconify">Window iconification</a> </dd> | ||
2359 | <dd> | ||
2360 | <a class="el" href="group__window.html#ga52527a5904b47d802b6b4bb519cdebc7">glfwRestoreWindow</a> </dd> | ||
2361 | <dd> | ||
2362 | <a class="el" href="group__window.html#ga3f541387449d911274324ae7f17ec56b">glfwMaximizeWindow</a></dd></dl> | ||
2363 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.1. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
2364 | |||
2365 | </div> | ||
2366 | </div> | ||
2367 | <a id="ga52527a5904b47d802b6b4bb519cdebc7" name="ga52527a5904b47d802b6b4bb519cdebc7"></a> | ||
2368 | <h2 class="memtitle"><span class="permalink"><a href="#ga52527a5904b47d802b6b4bb519cdebc7">◆ </a></span>glfwRestoreWindow()</h2> | ||
2369 | |||
2370 | <div class="memitem"> | ||
2371 | <div class="memproto"> | ||
2372 | <table class="memname"> | ||
2373 | <tr> | ||
2374 | <td class="memname">void glfwRestoreWindow </td> | ||
2375 | <td>(</td> | ||
2376 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2377 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2378 | <td></td> | ||
2379 | </tr> | ||
2380 | </table> | ||
2381 | </div><div class="memdoc"> | ||
2382 | <p >This function restores the specified window if it was previously iconified (minimized) or maximized. If the window is already restored, this function does nothing.</p> | ||
2383 | <p >If the specified window is a full screen window, the resolution chosen for the window is restored on the selected monitor.</p> | ||
2384 | <dl class="params"><dt>Parameters</dt><dd> | ||
2385 | <table class="params"> | ||
2386 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to restore.</td></tr> | ||
2387 | </table> | ||
2388 | </dd> | ||
2389 | </dl> | ||
2390 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2391 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2392 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_iconify">Window iconification</a> </dd> | ||
2393 | <dd> | ||
2394 | <a class="el" href="group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4">glfwIconifyWindow</a> </dd> | ||
2395 | <dd> | ||
2396 | <a class="el" href="group__window.html#ga3f541387449d911274324ae7f17ec56b">glfwMaximizeWindow</a></dd></dl> | ||
2397 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.1. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
2398 | |||
2399 | </div> | ||
2400 | </div> | ||
2401 | <a id="ga3f541387449d911274324ae7f17ec56b" name="ga3f541387449d911274324ae7f17ec56b"></a> | ||
2402 | <h2 class="memtitle"><span class="permalink"><a href="#ga3f541387449d911274324ae7f17ec56b">◆ </a></span>glfwMaximizeWindow()</h2> | ||
2403 | |||
2404 | <div class="memitem"> | ||
2405 | <div class="memproto"> | ||
2406 | <table class="memname"> | ||
2407 | <tr> | ||
2408 | <td class="memname">void glfwMaximizeWindow </td> | ||
2409 | <td>(</td> | ||
2410 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2411 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2412 | <td></td> | ||
2413 | </tr> | ||
2414 | </table> | ||
2415 | </div><div class="memdoc"> | ||
2416 | <p >This function maximizes the specified window if it was previously not maximized. If the window is already maximized, this function does nothing.</p> | ||
2417 | <p >If the specified window is a full screen window, this function does nothing.</p> | ||
2418 | <dl class="params"><dt>Parameters</dt><dd> | ||
2419 | <table class="params"> | ||
2420 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to maximize.</td></tr> | ||
2421 | </table> | ||
2422 | </dd> | ||
2423 | </dl> | ||
2424 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2425 | <dl class="section user"><dt>Thread Safety</dt><dd>This function may only be called from the main thread.</dd></dl> | ||
2426 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_iconify">Window iconification</a> </dd> | ||
2427 | <dd> | ||
2428 | <a class="el" href="group__window.html#ga1bb559c0ebaad63c5c05ad2a066779c4">glfwIconifyWindow</a> </dd> | ||
2429 | <dd> | ||
2430 | <a class="el" href="group__window.html#ga52527a5904b47d802b6b4bb519cdebc7">glfwRestoreWindow</a></dd></dl> | ||
2431 | <dl class="section since"><dt>Since</dt><dd>Added in GLFW 3.2. </dd></dl> | ||
2432 | |||
2433 | </div> | ||
2434 | </div> | ||
2435 | <a id="ga61be47917b72536a148300f46494fc66" name="ga61be47917b72536a148300f46494fc66"></a> | ||
2436 | <h2 class="memtitle"><span class="permalink"><a href="#ga61be47917b72536a148300f46494fc66">◆ </a></span>glfwShowWindow()</h2> | ||
2437 | |||
2438 | <div class="memitem"> | ||
2439 | <div class="memproto"> | ||
2440 | <table class="memname"> | ||
2441 | <tr> | ||
2442 | <td class="memname">void glfwShowWindow </td> | ||
2443 | <td>(</td> | ||
2444 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2445 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2446 | <td></td> | ||
2447 | </tr> | ||
2448 | </table> | ||
2449 | </div><div class="memdoc"> | ||
2450 | <p >This function makes the specified window visible if it was previously hidden. If the window is already visible or is in full screen mode, this function does nothing.</p> | ||
2451 | <p >By default, windowed mode windows are focused when shown Set the <a class="el" href="window_guide.html#GLFW_FOCUS_ON_SHOW_hint">GLFW_FOCUS_ON_SHOW</a> window hint to change this behavior for all newly created windows, or change the behavior for an existing window with <a class="el" href="group__window.html#gace2afda29b4116ec012e410a6819033e">glfwSetWindowAttrib</a>.</p> | ||
2452 | <dl class="params"><dt>Parameters</dt><dd> | ||
2453 | <table class="params"> | ||
2454 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to make visible.</td></tr> | ||
2455 | </table> | ||
2456 | </dd> | ||
2457 | </dl> | ||
2458 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2459 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2460 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_hide">Window visibility</a> </dd> | ||
2461 | <dd> | ||
2462 | <a class="el" href="group__window.html#ga49401f82a1ba5f15db5590728314d47c">glfwHideWindow</a></dd></dl> | ||
2463 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2464 | |||
2465 | </div> | ||
2466 | </div> | ||
2467 | <a id="ga49401f82a1ba5f15db5590728314d47c" name="ga49401f82a1ba5f15db5590728314d47c"></a> | ||
2468 | <h2 class="memtitle"><span class="permalink"><a href="#ga49401f82a1ba5f15db5590728314d47c">◆ </a></span>glfwHideWindow()</h2> | ||
2469 | |||
2470 | <div class="memitem"> | ||
2471 | <div class="memproto"> | ||
2472 | <table class="memname"> | ||
2473 | <tr> | ||
2474 | <td class="memname">void glfwHideWindow </td> | ||
2475 | <td>(</td> | ||
2476 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2477 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2478 | <td></td> | ||
2479 | </tr> | ||
2480 | </table> | ||
2481 | </div><div class="memdoc"> | ||
2482 | <p >This function hides the specified window if it was previously visible. If the window is already hidden or is in full screen mode, this function does nothing.</p> | ||
2483 | <dl class="params"><dt>Parameters</dt><dd> | ||
2484 | <table class="params"> | ||
2485 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to hide.</td></tr> | ||
2486 | </table> | ||
2487 | </dd> | ||
2488 | </dl> | ||
2489 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2490 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2491 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_hide">Window visibility</a> </dd> | ||
2492 | <dd> | ||
2493 | <a class="el" href="group__window.html#ga61be47917b72536a148300f46494fc66">glfwShowWindow</a></dd></dl> | ||
2494 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2495 | |||
2496 | </div> | ||
2497 | </div> | ||
2498 | <a id="ga873780357abd3f3a081d71a40aae45a1" name="ga873780357abd3f3a081d71a40aae45a1"></a> | ||
2499 | <h2 class="memtitle"><span class="permalink"><a href="#ga873780357abd3f3a081d71a40aae45a1">◆ </a></span>glfwFocusWindow()</h2> | ||
2500 | |||
2501 | <div class="memitem"> | ||
2502 | <div class="memproto"> | ||
2503 | <table class="memname"> | ||
2504 | <tr> | ||
2505 | <td class="memname">void glfwFocusWindow </td> | ||
2506 | <td>(</td> | ||
2507 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2508 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2509 | <td></td> | ||
2510 | </tr> | ||
2511 | </table> | ||
2512 | </div><div class="memdoc"> | ||
2513 | <p >This function brings the specified window to front and sets input focus. The window should already be visible and not iconified.</p> | ||
2514 | <p >By default, both windowed and full screen mode windows are focused when initially created. Set the <a class="el" href="window_guide.html#GLFW_FOCUSED_hint">GLFW_FOCUSED</a> to disable this behavior.</p> | ||
2515 | <p >Also by default, windowed mode windows are focused when shown with <a class="el" href="group__window.html#ga61be47917b72536a148300f46494fc66">glfwShowWindow</a>. Set the <a class="el" href="window_guide.html#GLFW_FOCUS_ON_SHOW_hint">GLFW_FOCUS_ON_SHOW</a> to disable this behavior.</p> | ||
2516 | <p ><b>Do not use this function</b> to steal focus from other applications unless you are certain that is what the user wants. Focus stealing can be extremely disruptive.</p> | ||
2517 | <p >For a less disruptive way of getting the user's attention, see <a class="el" href="window_guide.html#window_attention">attention requests</a>.</p> | ||
2518 | <dl class="params"><dt>Parameters</dt><dd> | ||
2519 | <table class="params"> | ||
2520 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to give input focus.</td></tr> | ||
2521 | </table> | ||
2522 | </dd> | ||
2523 | </dl> | ||
2524 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2525 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> It is not possible for an application to bring its windows to front, this function will always emit <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2526 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2527 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_focus">Window input focus</a> </dd> | ||
2528 | <dd> | ||
2529 | <a class="el" href="window_guide.html#window_attention">Window attention request</a></dd></dl> | ||
2530 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
2531 | |||
2532 | </div> | ||
2533 | </div> | ||
2534 | <a id="ga2f8d59323fc4692c1d54ba08c863a703" name="ga2f8d59323fc4692c1d54ba08c863a703"></a> | ||
2535 | <h2 class="memtitle"><span class="permalink"><a href="#ga2f8d59323fc4692c1d54ba08c863a703">◆ </a></span>glfwRequestWindowAttention()</h2> | ||
2536 | |||
2537 | <div class="memitem"> | ||
2538 | <div class="memproto"> | ||
2539 | <table class="memname"> | ||
2540 | <tr> | ||
2541 | <td class="memname">void glfwRequestWindowAttention </td> | ||
2542 | <td>(</td> | ||
2543 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2544 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2545 | <td></td> | ||
2546 | </tr> | ||
2547 | </table> | ||
2548 | </div><div class="memdoc"> | ||
2549 | <p >This function requests user attention to the specified window. On platforms where this is not supported, attention is requested to the application as a whole.</p> | ||
2550 | <p >Once the user has given attention, usually by focusing the window or application, the system will end the request automatically.</p> | ||
2551 | <dl class="params"><dt>Parameters</dt><dd> | ||
2552 | <table class="params"> | ||
2553 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to request attention to.</td></tr> | ||
2554 | </table> | ||
2555 | </dd> | ||
2556 | </dl> | ||
2557 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2558 | <dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> Attention is requested to the application as a whole, not the specific window.</dd></dl> | ||
2559 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2560 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_attention">Window attention request</a></dd></dl> | ||
2561 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
2562 | |||
2563 | </div> | ||
2564 | </div> | ||
2565 | <a id="ga4d766499ac02c60f02221a9dfab87299" name="ga4d766499ac02c60f02221a9dfab87299"></a> | ||
2566 | <h2 class="memtitle"><span class="permalink"><a href="#ga4d766499ac02c60f02221a9dfab87299">◆ </a></span>glfwGetWindowMonitor()</h2> | ||
2567 | |||
2568 | <div class="memitem"> | ||
2569 | <div class="memproto"> | ||
2570 | <table class="memname"> | ||
2571 | <tr> | ||
2572 | <td class="memname"><a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> * glfwGetWindowMonitor </td> | ||
2573 | <td>(</td> | ||
2574 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2575 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2576 | <td></td> | ||
2577 | </tr> | ||
2578 | </table> | ||
2579 | </div><div class="memdoc"> | ||
2580 | <p >This function returns the handle of the monitor that the specified window is in full screen on.</p> | ||
2581 | <dl class="params"><dt>Parameters</dt><dd> | ||
2582 | <table class="params"> | ||
2583 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
2584 | </table> | ||
2585 | </dd> | ||
2586 | </dl> | ||
2587 | <dl class="section return"><dt>Returns</dt><dd>The monitor, or <code>NULL</code> if the window is in windowed mode or an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl> | ||
2588 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2589 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2590 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_monitor">Window monitor</a> </dd> | ||
2591 | <dd> | ||
2592 | <a class="el" href="group__window.html#ga81c76c418af80a1cce7055bccb0ae0a7">glfwSetWindowMonitor</a></dd></dl> | ||
2593 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2594 | |||
2595 | </div> | ||
2596 | </div> | ||
2597 | <a id="ga81c76c418af80a1cce7055bccb0ae0a7" name="ga81c76c418af80a1cce7055bccb0ae0a7"></a> | ||
2598 | <h2 class="memtitle"><span class="permalink"><a href="#ga81c76c418af80a1cce7055bccb0ae0a7">◆ </a></span>glfwSetWindowMonitor()</h2> | ||
2599 | |||
2600 | <div class="memitem"> | ||
2601 | <div class="memproto"> | ||
2602 | <table class="memname"> | ||
2603 | <tr> | ||
2604 | <td class="memname">void glfwSetWindowMonitor </td> | ||
2605 | <td>(</td> | ||
2606 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2607 | <td class="paramname"><em>window</em>, </td> | ||
2608 | </tr> | ||
2609 | <tr> | ||
2610 | <td class="paramkey"></td> | ||
2611 | <td></td> | ||
2612 | <td class="paramtype"><a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a> * </td> | ||
2613 | <td class="paramname"><em>monitor</em>, </td> | ||
2614 | </tr> | ||
2615 | <tr> | ||
2616 | <td class="paramkey"></td> | ||
2617 | <td></td> | ||
2618 | <td class="paramtype">int </td> | ||
2619 | <td class="paramname"><em>xpos</em>, </td> | ||
2620 | </tr> | ||
2621 | <tr> | ||
2622 | <td class="paramkey"></td> | ||
2623 | <td></td> | ||
2624 | <td class="paramtype">int </td> | ||
2625 | <td class="paramname"><em>ypos</em>, </td> | ||
2626 | </tr> | ||
2627 | <tr> | ||
2628 | <td class="paramkey"></td> | ||
2629 | <td></td> | ||
2630 | <td class="paramtype">int </td> | ||
2631 | <td class="paramname"><em>width</em>, </td> | ||
2632 | </tr> | ||
2633 | <tr> | ||
2634 | <td class="paramkey"></td> | ||
2635 | <td></td> | ||
2636 | <td class="paramtype">int </td> | ||
2637 | <td class="paramname"><em>height</em>, </td> | ||
2638 | </tr> | ||
2639 | <tr> | ||
2640 | <td class="paramkey"></td> | ||
2641 | <td></td> | ||
2642 | <td class="paramtype">int </td> | ||
2643 | <td class="paramname"><em>refreshRate</em> </td> | ||
2644 | </tr> | ||
2645 | <tr> | ||
2646 | <td></td> | ||
2647 | <td>)</td> | ||
2648 | <td></td><td></td> | ||
2649 | </tr> | ||
2650 | </table> | ||
2651 | </div><div class="memdoc"> | ||
2652 | <p >This function sets the monitor that the window uses for full screen mode or, if the monitor is <code>NULL</code>, makes it windowed mode.</p> | ||
2653 | <p >When setting a monitor, this function updates the width, height and refresh rate of the desired video mode and switches to the video mode closest to it. The window position is ignored when setting a monitor.</p> | ||
2654 | <p >When the monitor is <code>NULL</code>, the position, width and height are used to place the window content area. The refresh rate is ignored when no monitor is specified.</p> | ||
2655 | <p >If you only wish to update the resolution of a full screen window or the size of a windowed mode window, see <a class="el" href="group__window.html#ga371911f12c74c504dd8d47d832d095cb">glfwSetWindowSize</a>.</p> | ||
2656 | <p >When a window transitions from full screen to windowed mode, this function restores any previous window settings such as whether it is decorated, floating, resizable, has size or aspect ratio limits, etc.</p> | ||
2657 | <dl class="params"><dt>Parameters</dt><dd> | ||
2658 | <table class="params"> | ||
2659 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose monitor, size or video mode to set. </td></tr> | ||
2660 | <tr><td class="paramdir">[in]</td><td class="paramname">monitor</td><td>The desired monitor, or <code>NULL</code> to set windowed mode. </td></tr> | ||
2661 | <tr><td class="paramdir">[in]</td><td class="paramname">xpos</td><td>The desired x-coordinate of the upper-left corner of the content area. </td></tr> | ||
2662 | <tr><td class="paramdir">[in]</td><td class="paramname">ypos</td><td>The desired y-coordinate of the upper-left corner of the content area. </td></tr> | ||
2663 | <tr><td class="paramdir">[in]</td><td class="paramname">width</td><td>The desired with, in screen coordinates, of the content area or video mode. </td></tr> | ||
2664 | <tr><td class="paramdir">[in]</td><td class="paramname">height</td><td>The desired height, in screen coordinates, of the content area or video mode. </td></tr> | ||
2665 | <tr><td class="paramdir">[in]</td><td class="paramname">refreshRate</td><td>The desired refresh rate, in Hz, of the video mode, or <code>GLFW_DONT_CARE</code>.</td></tr> | ||
2666 | </table> | ||
2667 | </dd> | ||
2668 | </dl> | ||
2669 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2670 | <dl class="section remark"><dt>Remarks</dt><dd>The OpenGL or OpenGL ES context will not be destroyed or otherwise affected by any resizing or mode switching, although you may need to update your viewport if the framebuffer size has changed.</dd> | ||
2671 | <dd> | ||
2672 | <b>Wayland:</b> The desired window position is ignored, as there is no way for an application to set this property.</dd> | ||
2673 | <dd> | ||
2674 | <b>Wayland:</b> Setting the window to full screen will not attempt to change the mode, no matter what the requested size or refresh rate.</dd></dl> | ||
2675 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2676 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_monitor">Window monitor</a> </dd> | ||
2677 | <dd> | ||
2678 | <a class="el" href="window_guide.html#window_full_screen">Full screen windows</a> </dd> | ||
2679 | <dd> | ||
2680 | <a class="el" href="group__window.html#ga4d766499ac02c60f02221a9dfab87299">glfwGetWindowMonitor</a> </dd> | ||
2681 | <dd> | ||
2682 | <a class="el" href="group__window.html#ga371911f12c74c504dd8d47d832d095cb">glfwSetWindowSize</a></dd></dl> | ||
2683 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
2684 | |||
2685 | </div> | ||
2686 | </div> | ||
2687 | <a id="gacccb29947ea4b16860ebef42c2cb9337" name="gacccb29947ea4b16860ebef42c2cb9337"></a> | ||
2688 | <h2 class="memtitle"><span class="permalink"><a href="#gacccb29947ea4b16860ebef42c2cb9337">◆ </a></span>glfwGetWindowAttrib()</h2> | ||
2689 | |||
2690 | <div class="memitem"> | ||
2691 | <div class="memproto"> | ||
2692 | <table class="memname"> | ||
2693 | <tr> | ||
2694 | <td class="memname">int glfwGetWindowAttrib </td> | ||
2695 | <td>(</td> | ||
2696 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2697 | <td class="paramname"><em>window</em>, </td> | ||
2698 | </tr> | ||
2699 | <tr> | ||
2700 | <td class="paramkey"></td> | ||
2701 | <td></td> | ||
2702 | <td class="paramtype">int </td> | ||
2703 | <td class="paramname"><em>attrib</em> </td> | ||
2704 | </tr> | ||
2705 | <tr> | ||
2706 | <td></td> | ||
2707 | <td>)</td> | ||
2708 | <td></td><td></td> | ||
2709 | </tr> | ||
2710 | </table> | ||
2711 | </div><div class="memdoc"> | ||
2712 | <p >This function returns the value of an attribute of the specified window or its OpenGL or OpenGL ES context.</p> | ||
2713 | <dl class="params"><dt>Parameters</dt><dd> | ||
2714 | <table class="params"> | ||
2715 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to query. </td></tr> | ||
2716 | <tr><td class="paramdir">[in]</td><td class="paramname">attrib</td><td>The <a class="el" href="window_guide.html#window_attribs">window attribute</a> whose value to return. </td></tr> | ||
2717 | </table> | ||
2718 | </dd> | ||
2719 | </dl> | ||
2720 | <dl class="section return"><dt>Returns</dt><dd>The value of the attribute, or zero if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl> | ||
2721 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2722 | <dl class="section remark"><dt>Remarks</dt><dd>Framebuffer related hints are not window attributes. See <a class="el" href="window_guide.html#window_attribs_fb">Framebuffer related attributes</a> for more information.</dd> | ||
2723 | <dd> | ||
2724 | Zero is a valid value for many window and context related attributes so you cannot use a return value of zero as an indication of errors. However, this function should not fail as long as it is passed valid arguments and the library has been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
2725 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2726 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_attribs">Window attributes</a> </dd> | ||
2727 | <dd> | ||
2728 | <a class="el" href="group__window.html#gace2afda29b4116ec012e410a6819033e">glfwSetWindowAttrib</a></dd></dl> | ||
2729 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. Replaces <code>glfwGetWindowParam</code> and <code>glfwGetGLVersion</code>. </dd></dl> | ||
2730 | |||
2731 | </div> | ||
2732 | </div> | ||
2733 | <a id="gace2afda29b4116ec012e410a6819033e" name="gace2afda29b4116ec012e410a6819033e"></a> | ||
2734 | <h2 class="memtitle"><span class="permalink"><a href="#gace2afda29b4116ec012e410a6819033e">◆ </a></span>glfwSetWindowAttrib()</h2> | ||
2735 | |||
2736 | <div class="memitem"> | ||
2737 | <div class="memproto"> | ||
2738 | <table class="memname"> | ||
2739 | <tr> | ||
2740 | <td class="memname">void glfwSetWindowAttrib </td> | ||
2741 | <td>(</td> | ||
2742 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2743 | <td class="paramname"><em>window</em>, </td> | ||
2744 | </tr> | ||
2745 | <tr> | ||
2746 | <td class="paramkey"></td> | ||
2747 | <td></td> | ||
2748 | <td class="paramtype">int </td> | ||
2749 | <td class="paramname"><em>attrib</em>, </td> | ||
2750 | </tr> | ||
2751 | <tr> | ||
2752 | <td class="paramkey"></td> | ||
2753 | <td></td> | ||
2754 | <td class="paramtype">int </td> | ||
2755 | <td class="paramname"><em>value</em> </td> | ||
2756 | </tr> | ||
2757 | <tr> | ||
2758 | <td></td> | ||
2759 | <td>)</td> | ||
2760 | <td></td><td></td> | ||
2761 | </tr> | ||
2762 | </table> | ||
2763 | </div><div class="memdoc"> | ||
2764 | <p >This function sets the value of an attribute of the specified window.</p> | ||
2765 | <p >The supported attributes are <a class="el" href="window_guide.html#GLFW_DECORATED_attrib">GLFW_DECORATED</a>, <a class="el" href="window_guide.html#GLFW_RESIZABLE_attrib">GLFW_RESIZABLE</a>, <a class="el" href="window_guide.html#GLFW_FLOATING_attrib">GLFW_FLOATING</a>, <a class="el" href="window_guide.html#GLFW_AUTO_ICONIFY_attrib">GLFW_AUTO_ICONIFY</a> and <a class="el" href="window_guide.html#GLFW_FOCUS_ON_SHOW_attrib">GLFW_FOCUS_ON_SHOW</a>.</p> | ||
2766 | <p >Some of these attributes are ignored for full screen windows. The new value will take effect if the window is later made windowed.</p> | ||
2767 | <p >Some of these attributes are ignored for windowed mode windows. The new value will take effect if the window is later made full screen.</p> | ||
2768 | <dl class="params"><dt>Parameters</dt><dd> | ||
2769 | <table class="params"> | ||
2770 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window to set the attribute for. </td></tr> | ||
2771 | <tr><td class="paramdir">[in]</td><td class="paramname">attrib</td><td>A supported window attribute. </td></tr> | ||
2772 | <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td><code>GLFW_TRUE</code> or <code>GLFW_FALSE</code>.</td></tr> | ||
2773 | </table> | ||
2774 | </dd> | ||
2775 | </dl> | ||
2776 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
2777 | <dl class="section remark"><dt>Remarks</dt><dd>Calling <a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a> will always return the latest value, even if that value is ignored by the current mode of the window.</dd></dl> | ||
2778 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2779 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_attribs">Window attributes</a> </dd> | ||
2780 | <dd> | ||
2781 | <a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a></dd></dl> | ||
2782 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
2783 | |||
2784 | </div> | ||
2785 | </div> | ||
2786 | <a id="ga3d2fc6026e690ab31a13f78bc9fd3651" name="ga3d2fc6026e690ab31a13f78bc9fd3651"></a> | ||
2787 | <h2 class="memtitle"><span class="permalink"><a href="#ga3d2fc6026e690ab31a13f78bc9fd3651">◆ </a></span>glfwSetWindowUserPointer()</h2> | ||
2788 | |||
2789 | <div class="memitem"> | ||
2790 | <div class="memproto"> | ||
2791 | <table class="memname"> | ||
2792 | <tr> | ||
2793 | <td class="memname">void glfwSetWindowUserPointer </td> | ||
2794 | <td>(</td> | ||
2795 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2796 | <td class="paramname"><em>window</em>, </td> | ||
2797 | </tr> | ||
2798 | <tr> | ||
2799 | <td class="paramkey"></td> | ||
2800 | <td></td> | ||
2801 | <td class="paramtype">void * </td> | ||
2802 | <td class="paramname"><em>pointer</em> </td> | ||
2803 | </tr> | ||
2804 | <tr> | ||
2805 | <td></td> | ||
2806 | <td>)</td> | ||
2807 | <td></td><td></td> | ||
2808 | </tr> | ||
2809 | </table> | ||
2810 | </div><div class="memdoc"> | ||
2811 | <p >This function sets the user-defined pointer of the specified window. The current value is retained until the window is destroyed. The initial value is <code>NULL</code>.</p> | ||
2812 | <dl class="params"><dt>Parameters</dt><dd> | ||
2813 | <table class="params"> | ||
2814 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose pointer to set. </td></tr> | ||
2815 | <tr><td class="paramdir">[in]</td><td class="paramname">pointer</td><td>The new value.</td></tr> | ||
2816 | </table> | ||
2817 | </dd> | ||
2818 | </dl> | ||
2819 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2820 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl> | ||
2821 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_userptr">User pointer</a> </dd> | ||
2822 | <dd> | ||
2823 | <a class="el" href="group__window.html#gae77a4add0d2023ca21ff1443ced01653">glfwGetWindowUserPointer</a></dd></dl> | ||
2824 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2825 | |||
2826 | </div> | ||
2827 | </div> | ||
2828 | <a id="gae77a4add0d2023ca21ff1443ced01653" name="gae77a4add0d2023ca21ff1443ced01653"></a> | ||
2829 | <h2 class="memtitle"><span class="permalink"><a href="#gae77a4add0d2023ca21ff1443ced01653">◆ </a></span>glfwGetWindowUserPointer()</h2> | ||
2830 | |||
2831 | <div class="memitem"> | ||
2832 | <div class="memproto"> | ||
2833 | <table class="memname"> | ||
2834 | <tr> | ||
2835 | <td class="memname">void * glfwGetWindowUserPointer </td> | ||
2836 | <td>(</td> | ||
2837 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2838 | <td class="paramname"><em>window</em></td><td>)</td> | ||
2839 | <td></td> | ||
2840 | </tr> | ||
2841 | </table> | ||
2842 | </div><div class="memdoc"> | ||
2843 | <p >This function returns the current value of the user-defined pointer of the specified window. The initial value is <code>NULL</code>.</p> | ||
2844 | <dl class="params"><dt>Parameters</dt><dd> | ||
2845 | <table class="params"> | ||
2846 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose pointer to return.</td></tr> | ||
2847 | </table> | ||
2848 | </dd> | ||
2849 | </dl> | ||
2850 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2851 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread. Access is not synchronized.</dd></dl> | ||
2852 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_userptr">User pointer</a> </dd> | ||
2853 | <dd> | ||
2854 | <a class="el" href="group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651">glfwSetWindowUserPointer</a></dd></dl> | ||
2855 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2856 | |||
2857 | </div> | ||
2858 | </div> | ||
2859 | <a id="ga08bdfbba88934f9c4f92fd757979ac74" name="ga08bdfbba88934f9c4f92fd757979ac74"></a> | ||
2860 | <h2 class="memtitle"><span class="permalink"><a href="#ga08bdfbba88934f9c4f92fd757979ac74">◆ </a></span>glfwSetWindowPosCallback()</h2> | ||
2861 | |||
2862 | <div class="memitem"> | ||
2863 | <div class="memproto"> | ||
2864 | <table class="memname"> | ||
2865 | <tr> | ||
2866 | <td class="memname"><a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">GLFWwindowposfun</a> glfwSetWindowPosCallback </td> | ||
2867 | <td>(</td> | ||
2868 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2869 | <td class="paramname"><em>window</em>, </td> | ||
2870 | </tr> | ||
2871 | <tr> | ||
2872 | <td class="paramkey"></td> | ||
2873 | <td></td> | ||
2874 | <td class="paramtype"><a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">GLFWwindowposfun</a> </td> | ||
2875 | <td class="paramname"><em>callback</em> </td> | ||
2876 | </tr> | ||
2877 | <tr> | ||
2878 | <td></td> | ||
2879 | <td>)</td> | ||
2880 | <td></td><td></td> | ||
2881 | </tr> | ||
2882 | </table> | ||
2883 | </div><div class="memdoc"> | ||
2884 | <p >This function sets the position callback of the specified window, which is called when the window is moved. The callback is provided with the position, in screen coordinates, of the upper-left corner of the content area of the window.</p> | ||
2885 | <dl class="params"><dt>Parameters</dt><dd> | ||
2886 | <table class="params"> | ||
2887 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
2888 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
2889 | </table> | ||
2890 | </dd> | ||
2891 | </dl> | ||
2892 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
2893 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> xpos, <span class="keywordtype">int</span> ypos)</div> | ||
2894 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#gabe287973a21a8f927cde4db06b8dcbe9">function pointer type</a>.</dd></dl> | ||
2895 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2896 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> This callback will never be called, as there is no way for an application to know its global position.</dd></dl> | ||
2897 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2898 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_pos">Window position</a></dd></dl> | ||
2899 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
2900 | |||
2901 | </div> | ||
2902 | </div> | ||
2903 | <a id="gad91b8b047a0c4c6033c38853864c34f8" name="gad91b8b047a0c4c6033c38853864c34f8"></a> | ||
2904 | <h2 class="memtitle"><span class="permalink"><a href="#gad91b8b047a0c4c6033c38853864c34f8">◆ </a></span>glfwSetWindowSizeCallback()</h2> | ||
2905 | |||
2906 | <div class="memitem"> | ||
2907 | <div class="memproto"> | ||
2908 | <table class="memname"> | ||
2909 | <tr> | ||
2910 | <td class="memname"><a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">GLFWwindowsizefun</a> glfwSetWindowSizeCallback </td> | ||
2911 | <td>(</td> | ||
2912 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2913 | <td class="paramname"><em>window</em>, </td> | ||
2914 | </tr> | ||
2915 | <tr> | ||
2916 | <td class="paramkey"></td> | ||
2917 | <td></td> | ||
2918 | <td class="paramtype"><a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">GLFWwindowsizefun</a> </td> | ||
2919 | <td class="paramname"><em>callback</em> </td> | ||
2920 | </tr> | ||
2921 | <tr> | ||
2922 | <td></td> | ||
2923 | <td>)</td> | ||
2924 | <td></td><td></td> | ||
2925 | </tr> | ||
2926 | </table> | ||
2927 | </div><div class="memdoc"> | ||
2928 | <p >This function sets the size callback of the specified window, which is called when the window is resized. The callback is provided with the size, in screen coordinates, of the content area of the window.</p> | ||
2929 | <dl class="params"><dt>Parameters</dt><dd> | ||
2930 | <table class="params"> | ||
2931 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
2932 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
2933 | </table> | ||
2934 | </dd> | ||
2935 | </dl> | ||
2936 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
2937 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height)</div> | ||
2938 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#gaec0282944bb810f6f3163ec02da90350">function pointer type</a>.</dd></dl> | ||
2939 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2940 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2941 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_size">Window size</a></dd></dl> | ||
2942 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl> | ||
2943 | |||
2944 | </div> | ||
2945 | </div> | ||
2946 | <a id="gada646d775a7776a95ac000cfc1885331" name="gada646d775a7776a95ac000cfc1885331"></a> | ||
2947 | <h2 class="memtitle"><span class="permalink"><a href="#gada646d775a7776a95ac000cfc1885331">◆ </a></span>glfwSetWindowCloseCallback()</h2> | ||
2948 | |||
2949 | <div class="memitem"> | ||
2950 | <div class="memproto"> | ||
2951 | <table class="memname"> | ||
2952 | <tr> | ||
2953 | <td class="memname"><a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">GLFWwindowclosefun</a> glfwSetWindowCloseCallback </td> | ||
2954 | <td>(</td> | ||
2955 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
2956 | <td class="paramname"><em>window</em>, </td> | ||
2957 | </tr> | ||
2958 | <tr> | ||
2959 | <td class="paramkey"></td> | ||
2960 | <td></td> | ||
2961 | <td class="paramtype"><a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">GLFWwindowclosefun</a> </td> | ||
2962 | <td class="paramname"><em>callback</em> </td> | ||
2963 | </tr> | ||
2964 | <tr> | ||
2965 | <td></td> | ||
2966 | <td>)</td> | ||
2967 | <td></td><td></td> | ||
2968 | </tr> | ||
2969 | </table> | ||
2970 | </div><div class="memdoc"> | ||
2971 | <p >This function sets the close callback of the specified window, which is called when the user attempts to close the window, for example by clicking the close widget in the title bar.</p> | ||
2972 | <p >The close flag is set before this callback is called, but you can modify it at any time with <a class="el" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a>.</p> | ||
2973 | <p >The close callback is not triggered by <a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a>.</p> | ||
2974 | <dl class="params"><dt>Parameters</dt><dd> | ||
2975 | <table class="params"> | ||
2976 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
2977 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
2978 | </table> | ||
2979 | </dd> | ||
2980 | </dl> | ||
2981 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
2982 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window)</div> | ||
2983 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#gabf859b936d80961b7d39013a9694cc3e">function pointer type</a>.</dd></dl> | ||
2984 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
2985 | <dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> Selecting Quit from the application menu will trigger the close callback for all windows.</dd></dl> | ||
2986 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
2987 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_close">Window closing and close flag</a></dd></dl> | ||
2988 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.5. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl> | ||
2989 | |||
2990 | </div> | ||
2991 | </div> | ||
2992 | <a id="ga1c5c7eb889c33c7f4d10dd35b327654e" name="ga1c5c7eb889c33c7f4d10dd35b327654e"></a> | ||
2993 | <h2 class="memtitle"><span class="permalink"><a href="#ga1c5c7eb889c33c7f4d10dd35b327654e">◆ </a></span>glfwSetWindowRefreshCallback()</h2> | ||
2994 | |||
2995 | <div class="memitem"> | ||
2996 | <div class="memproto"> | ||
2997 | <table class="memname"> | ||
2998 | <tr> | ||
2999 | <td class="memname"><a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">GLFWwindowrefreshfun</a> glfwSetWindowRefreshCallback </td> | ||
3000 | <td>(</td> | ||
3001 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3002 | <td class="paramname"><em>window</em>, </td> | ||
3003 | </tr> | ||
3004 | <tr> | ||
3005 | <td class="paramkey"></td> | ||
3006 | <td></td> | ||
3007 | <td class="paramtype"><a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">GLFWwindowrefreshfun</a> </td> | ||
3008 | <td class="paramname"><em>callback</em> </td> | ||
3009 | </tr> | ||
3010 | <tr> | ||
3011 | <td></td> | ||
3012 | <td>)</td> | ||
3013 | <td></td><td></td> | ||
3014 | </tr> | ||
3015 | </table> | ||
3016 | </div><div class="memdoc"> | ||
3017 | <p >This function sets the refresh callback of the specified window, which is called when the content area of the window needs to be redrawn, for example if the window has been exposed after having been covered by another window.</p> | ||
3018 | <p >On compositing window systems such as Aero, Compiz, Aqua or Wayland, where the window contents are saved off-screen, this callback may be called only very infrequently or never at all.</p> | ||
3019 | <dl class="params"><dt>Parameters</dt><dd> | ||
3020 | <table class="params"> | ||
3021 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3022 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3023 | </table> | ||
3024 | </dd> | ||
3025 | </dl> | ||
3026 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3027 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window);</div> | ||
3028 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#ga431663a1427d2eb3a273bc398b6737b5">function pointer type</a>.</dd></dl> | ||
3029 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3030 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3031 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_refresh">Window damage and refresh</a></dd></dl> | ||
3032 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.5. <b>GLFW 3:</b> Added window handle parameter and return value. </dd></dl> | ||
3033 | |||
3034 | </div> | ||
3035 | </div> | ||
3036 | <a id="gac2d83c4a10f071baf841f6730528e66c" name="gac2d83c4a10f071baf841f6730528e66c"></a> | ||
3037 | <h2 class="memtitle"><span class="permalink"><a href="#gac2d83c4a10f071baf841f6730528e66c">◆ </a></span>glfwSetWindowFocusCallback()</h2> | ||
3038 | |||
3039 | <div class="memitem"> | ||
3040 | <div class="memproto"> | ||
3041 | <table class="memname"> | ||
3042 | <tr> | ||
3043 | <td class="memname"><a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">GLFWwindowfocusfun</a> glfwSetWindowFocusCallback </td> | ||
3044 | <td>(</td> | ||
3045 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3046 | <td class="paramname"><em>window</em>, </td> | ||
3047 | </tr> | ||
3048 | <tr> | ||
3049 | <td class="paramkey"></td> | ||
3050 | <td></td> | ||
3051 | <td class="paramtype"><a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">GLFWwindowfocusfun</a> </td> | ||
3052 | <td class="paramname"><em>callback</em> </td> | ||
3053 | </tr> | ||
3054 | <tr> | ||
3055 | <td></td> | ||
3056 | <td>)</td> | ||
3057 | <td></td><td></td> | ||
3058 | </tr> | ||
3059 | </table> | ||
3060 | </div><div class="memdoc"> | ||
3061 | <p >This function sets the focus callback of the specified window, which is called when the window gains or loses input focus.</p> | ||
3062 | <p >After the focus callback is called for a window that lost input focus, synthetic key and mouse button release events will be generated for all such that had been pressed. For more information, see <a class="el" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a> and <a class="el" href="group__input.html#ga6ab84420974d812bee700e45284a723c">glfwSetMouseButtonCallback</a>.</p> | ||
3063 | <dl class="params"><dt>Parameters</dt><dd> | ||
3064 | <table class="params"> | ||
3065 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3066 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3067 | </table> | ||
3068 | </dd> | ||
3069 | </dl> | ||
3070 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3071 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> focused)</div> | ||
3072 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#gabc58c47e9d93f6eb1862d615c3680f46">function pointer type</a>.</dd></dl> | ||
3073 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3074 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3075 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_focus">Window input focus</a></dd></dl> | ||
3076 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
3077 | |||
3078 | </div> | ||
3079 | </div> | ||
3080 | <a id="gac793e9efd255567b5fb8b445052cfd3e" name="gac793e9efd255567b5fb8b445052cfd3e"></a> | ||
3081 | <h2 class="memtitle"><span class="permalink"><a href="#gac793e9efd255567b5fb8b445052cfd3e">◆ </a></span>glfwSetWindowIconifyCallback()</h2> | ||
3082 | |||
3083 | <div class="memitem"> | ||
3084 | <div class="memproto"> | ||
3085 | <table class="memname"> | ||
3086 | <tr> | ||
3087 | <td class="memname"><a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">GLFWwindowiconifyfun</a> glfwSetWindowIconifyCallback </td> | ||
3088 | <td>(</td> | ||
3089 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3090 | <td class="paramname"><em>window</em>, </td> | ||
3091 | </tr> | ||
3092 | <tr> | ||
3093 | <td class="paramkey"></td> | ||
3094 | <td></td> | ||
3095 | <td class="paramtype"><a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">GLFWwindowiconifyfun</a> </td> | ||
3096 | <td class="paramname"><em>callback</em> </td> | ||
3097 | </tr> | ||
3098 | <tr> | ||
3099 | <td></td> | ||
3100 | <td>)</td> | ||
3101 | <td></td><td></td> | ||
3102 | </tr> | ||
3103 | </table> | ||
3104 | </div><div class="memdoc"> | ||
3105 | <p >This function sets the iconification callback of the specified window, which is called when the window is iconified or restored.</p> | ||
3106 | <dl class="params"><dt>Parameters</dt><dd> | ||
3107 | <table class="params"> | ||
3108 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3109 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3110 | </table> | ||
3111 | </dd> | ||
3112 | </dl> | ||
3113 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3114 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> iconified)</div> | ||
3115 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#ga35c658cccba236f26e7adee0e25f6a4f">function pointer type</a>.</dd></dl> | ||
3116 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3117 | <dl class="section remark"><dt>Remarks</dt><dd><b>Wayland:</b> The wl_shell protocol has no concept of iconification, this callback will never be called when using this deprecated protocol.</dd></dl> | ||
3118 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3119 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_iconify">Window iconification</a></dd></dl> | ||
3120 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
3121 | |||
3122 | </div> | ||
3123 | </div> | ||
3124 | <a id="gacbe64c339fbd94885e62145563b6dc93" name="gacbe64c339fbd94885e62145563b6dc93"></a> | ||
3125 | <h2 class="memtitle"><span class="permalink"><a href="#gacbe64c339fbd94885e62145563b6dc93">◆ </a></span>glfwSetWindowMaximizeCallback()</h2> | ||
3126 | |||
3127 | <div class="memitem"> | ||
3128 | <div class="memproto"> | ||
3129 | <table class="memname"> | ||
3130 | <tr> | ||
3131 | <td class="memname"><a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">GLFWwindowmaximizefun</a> glfwSetWindowMaximizeCallback </td> | ||
3132 | <td>(</td> | ||
3133 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3134 | <td class="paramname"><em>window</em>, </td> | ||
3135 | </tr> | ||
3136 | <tr> | ||
3137 | <td class="paramkey"></td> | ||
3138 | <td></td> | ||
3139 | <td class="paramtype"><a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">GLFWwindowmaximizefun</a> </td> | ||
3140 | <td class="paramname"><em>callback</em> </td> | ||
3141 | </tr> | ||
3142 | <tr> | ||
3143 | <td></td> | ||
3144 | <td>)</td> | ||
3145 | <td></td><td></td> | ||
3146 | </tr> | ||
3147 | </table> | ||
3148 | </div><div class="memdoc"> | ||
3149 | <p >This function sets the maximization callback of the specified window, which is called when the window is maximized or restored.</p> | ||
3150 | <dl class="params"><dt>Parameters</dt><dd> | ||
3151 | <table class="params"> | ||
3152 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3153 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3154 | </table> | ||
3155 | </dd> | ||
3156 | </dl> | ||
3157 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3158 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> maximized)</div> | ||
3159 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#ga3017196fdaec33ac3e095765176c2a90">function pointer type</a>.</dd></dl> | ||
3160 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3161 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3162 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_maximize">Window maximization</a></dd></dl> | ||
3163 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
3164 | |||
3165 | </div> | ||
3166 | </div> | ||
3167 | <a id="gab3fb7c3366577daef18c0023e2a8591f" name="gab3fb7c3366577daef18c0023e2a8591f"></a> | ||
3168 | <h2 class="memtitle"><span class="permalink"><a href="#gab3fb7c3366577daef18c0023e2a8591f">◆ </a></span>glfwSetFramebufferSizeCallback()</h2> | ||
3169 | |||
3170 | <div class="memitem"> | ||
3171 | <div class="memproto"> | ||
3172 | <table class="memname"> | ||
3173 | <tr> | ||
3174 | <td class="memname"><a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">GLFWframebuffersizefun</a> glfwSetFramebufferSizeCallback </td> | ||
3175 | <td>(</td> | ||
3176 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3177 | <td class="paramname"><em>window</em>, </td> | ||
3178 | </tr> | ||
3179 | <tr> | ||
3180 | <td class="paramkey"></td> | ||
3181 | <td></td> | ||
3182 | <td class="paramtype"><a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">GLFWframebuffersizefun</a> </td> | ||
3183 | <td class="paramname"><em>callback</em> </td> | ||
3184 | </tr> | ||
3185 | <tr> | ||
3186 | <td></td> | ||
3187 | <td>)</td> | ||
3188 | <td></td><td></td> | ||
3189 | </tr> | ||
3190 | </table> | ||
3191 | </div><div class="memdoc"> | ||
3192 | <p >This function sets the framebuffer resize callback of the specified window, which is called when the framebuffer of the specified window is resized.</p> | ||
3193 | <dl class="params"><dt>Parameters</dt><dd> | ||
3194 | <table class="params"> | ||
3195 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3196 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3197 | </table> | ||
3198 | </dd> | ||
3199 | </dl> | ||
3200 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3201 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height)</div> | ||
3202 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#gae18026e294dde685ed2e5f759533144d">function pointer type</a>.</dd></dl> | ||
3203 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3204 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3205 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_fbsize">Framebuffer size</a></dd></dl> | ||
3206 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
3207 | |||
3208 | </div> | ||
3209 | </div> | ||
3210 | <a id="gaf2832ebb5aa6c252a2d261de002c92d6" name="gaf2832ebb5aa6c252a2d261de002c92d6"></a> | ||
3211 | <h2 class="memtitle"><span class="permalink"><a href="#gaf2832ebb5aa6c252a2d261de002c92d6">◆ </a></span>glfwSetWindowContentScaleCallback()</h2> | ||
3212 | |||
3213 | <div class="memitem"> | ||
3214 | <div class="memproto"> | ||
3215 | <table class="memname"> | ||
3216 | <tr> | ||
3217 | <td class="memname"><a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">GLFWwindowcontentscalefun</a> glfwSetWindowContentScaleCallback </td> | ||
3218 | <td>(</td> | ||
3219 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3220 | <td class="paramname"><em>window</em>, </td> | ||
3221 | </tr> | ||
3222 | <tr> | ||
3223 | <td class="paramkey"></td> | ||
3224 | <td></td> | ||
3225 | <td class="paramtype"><a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">GLFWwindowcontentscalefun</a> </td> | ||
3226 | <td class="paramname"><em>callback</em> </td> | ||
3227 | </tr> | ||
3228 | <tr> | ||
3229 | <td></td> | ||
3230 | <td>)</td> | ||
3231 | <td></td><td></td> | ||
3232 | </tr> | ||
3233 | </table> | ||
3234 | </div><div class="memdoc"> | ||
3235 | <p >This function sets the window content scale callback of the specified window, which is called when the content scale of the specified window changes.</p> | ||
3236 | <dl class="params"><dt>Parameters</dt><dd> | ||
3237 | <table class="params"> | ||
3238 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose callback to set. </td></tr> | ||
3239 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
3240 | </table> | ||
3241 | </dd> | ||
3242 | </dl> | ||
3243 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set or the library had not been <a class="el" href="intro_guide.html#intro_init">initialized</a>.</dd></dl> | ||
3244 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">float</span> xscale, <span class="keywordtype">float</span> yscale)</div> | ||
3245 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__window.html#ga77f288a2d04bb3c77c7d9615d08cf70e">function pointer type</a>.</dd></dl> | ||
3246 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
3247 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3248 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#window_scale">Window content scale</a> </dd> | ||
3249 | <dd> | ||
3250 | <a class="el" href="group__window.html#gaf5d31de9c19c4f994facea64d2b3106c">glfwGetWindowContentScale</a></dd></dl> | ||
3251 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
3252 | |||
3253 | </div> | ||
3254 | </div> | ||
3255 | <a id="ga37bd57223967b4211d60ca1a0bf3c832" name="ga37bd57223967b4211d60ca1a0bf3c832"></a> | ||
3256 | <h2 class="memtitle"><span class="permalink"><a href="#ga37bd57223967b4211d60ca1a0bf3c832">◆ </a></span>glfwPollEvents()</h2> | ||
3257 | |||
3258 | <div class="memitem"> | ||
3259 | <div class="memproto"> | ||
3260 | <table class="memname"> | ||
3261 | <tr> | ||
3262 | <td class="memname">void glfwPollEvents </td> | ||
3263 | <td>(</td> | ||
3264 | <td class="paramtype">void </td> | ||
3265 | <td class="paramname"></td><td>)</td> | ||
3266 | <td></td> | ||
3267 | </tr> | ||
3268 | </table> | ||
3269 | </div><div class="memdoc"> | ||
3270 | <p >This function processes only those events that are already in the event queue and then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.</p> | ||
3271 | <p >On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the <a class="el" href="window_guide.html#window_refresh">window refresh callback</a> to redraw the contents of your window when necessary during such operations.</p> | ||
3272 | <p >Do not assume that callbacks you set will <em>only</em> be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.</p> | ||
3273 | <p >Event processing is not required for joystick input to work.</p> | ||
3274 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
3275 | <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl> | ||
3276 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3277 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#events">Event processing</a> </dd> | ||
3278 | <dd> | ||
3279 | <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> </dd> | ||
3280 | <dd> | ||
3281 | <a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a></dd></dl> | ||
3282 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
3283 | |||
3284 | </div> | ||
3285 | </div> | ||
3286 | <a id="ga554e37d781f0a997656c26b2c56c835e" name="ga554e37d781f0a997656c26b2c56c835e"></a> | ||
3287 | <h2 class="memtitle"><span class="permalink"><a href="#ga554e37d781f0a997656c26b2c56c835e">◆ </a></span>glfwWaitEvents()</h2> | ||
3288 | |||
3289 | <div class="memitem"> | ||
3290 | <div class="memproto"> | ||
3291 | <table class="memname"> | ||
3292 | <tr> | ||
3293 | <td class="memname">void glfwWaitEvents </td> | ||
3294 | <td>(</td> | ||
3295 | <td class="paramtype">void </td> | ||
3296 | <td class="paramname"></td><td>)</td> | ||
3297 | <td></td> | ||
3298 | </tr> | ||
3299 | </table> | ||
3300 | </div><div class="memdoc"> | ||
3301 | <p >This function puts the calling thread to sleep until at least one event is available in the event queue. Once one or more events are available, it behaves exactly like <a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a>, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.</p> | ||
3302 | <p >Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.</p> | ||
3303 | <p >On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the <a class="el" href="window_guide.html#window_refresh">window refresh callback</a> to redraw the contents of your window when necessary during such operations.</p> | ||
3304 | <p >Do not assume that callbacks you set will <em>only</em> be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.</p> | ||
3305 | <p >Event processing is not required for joystick input to work.</p> | ||
3306 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
3307 | <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl> | ||
3308 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3309 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#events">Event processing</a> </dd> | ||
3310 | <dd> | ||
3311 | <a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a> </dd> | ||
3312 | <dd> | ||
3313 | <a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a></dd></dl> | ||
3314 | <dl class="section since"><dt>Since</dt><dd>Added in version 2.5. </dd></dl> | ||
3315 | |||
3316 | </div> | ||
3317 | </div> | ||
3318 | <a id="ga605a178db92f1a7f1a925563ef3ea2cf" name="ga605a178db92f1a7f1a925563ef3ea2cf"></a> | ||
3319 | <h2 class="memtitle"><span class="permalink"><a href="#ga605a178db92f1a7f1a925563ef3ea2cf">◆ </a></span>glfwWaitEventsTimeout()</h2> | ||
3320 | |||
3321 | <div class="memitem"> | ||
3322 | <div class="memproto"> | ||
3323 | <table class="memname"> | ||
3324 | <tr> | ||
3325 | <td class="memname">void glfwWaitEventsTimeout </td> | ||
3326 | <td>(</td> | ||
3327 | <td class="paramtype">double </td> | ||
3328 | <td class="paramname"><em>timeout</em></td><td>)</td> | ||
3329 | <td></td> | ||
3330 | </tr> | ||
3331 | </table> | ||
3332 | </div><div class="memdoc"> | ||
3333 | <p >This function puts the calling thread to sleep until at least one event is available in the event queue, or until the specified timeout is reached. If one or more events are available, it behaves exactly like <a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a>, i.e. the events in the queue are processed and the function then returns immediately. Processing events will cause the window and input callbacks associated with those events to be called.</p> | ||
3334 | <p >The timeout value must be a positive finite number.</p> | ||
3335 | <p >Since not all events are associated with callbacks, this function may return without a callback having been called even if you are monitoring all callbacks.</p> | ||
3336 | <p >On some platforms, a window move, resize or menu operation will cause event processing to block. This is due to how event processing is designed on those platforms. You can use the <a class="el" href="window_guide.html#window_refresh">window refresh callback</a> to redraw the contents of your window when necessary during such operations.</p> | ||
3337 | <p >Do not assume that callbacks you set will <em>only</em> be called in response to event processing functions like this one. While it is necessary to poll for events, window systems that require GLFW to register callbacks of its own can pass events to GLFW in response to many window system function calls. GLFW will pass those events on to the application callbacks before returning.</p> | ||
3338 | <p >Event processing is not required for joystick input to work.</p> | ||
3339 | <dl class="params"><dt>Parameters</dt><dd> | ||
3340 | <table class="params"> | ||
3341 | <tr><td class="paramdir">[in]</td><td class="paramname">timeout</td><td>The maximum amount of time, in seconds, to wait.</td></tr> | ||
3342 | </table> | ||
3343 | </dd> | ||
3344 | </dl> | ||
3345 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
3346 | <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl> | ||
3347 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
3348 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#events">Event processing</a> </dd> | ||
3349 | <dd> | ||
3350 | <a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a> </dd> | ||
3351 | <dd> | ||
3352 | <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a></dd></dl> | ||
3353 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.2. </dd></dl> | ||
3354 | |||
3355 | </div> | ||
3356 | </div> | ||
3357 | <a id="gab5997a25187e9fd5c6f2ecbbc8dfd7e9" name="gab5997a25187e9fd5c6f2ecbbc8dfd7e9"></a> | ||
3358 | <h2 class="memtitle"><span class="permalink"><a href="#gab5997a25187e9fd5c6f2ecbbc8dfd7e9">◆ </a></span>glfwPostEmptyEvent()</h2> | ||
3359 | |||
3360 | <div class="memitem"> | ||
3361 | <div class="memproto"> | ||
3362 | <table class="memname"> | ||
3363 | <tr> | ||
3364 | <td class="memname">void glfwPostEmptyEvent </td> | ||
3365 | <td>(</td> | ||
3366 | <td class="paramtype">void </td> | ||
3367 | <td class="paramname"></td><td>)</td> | ||
3368 | <td></td> | ||
3369 | </tr> | ||
3370 | </table> | ||
3371 | </div><div class="memdoc"> | ||
3372 | <p >This function posts an empty event from the current thread to the event queue, causing <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> or <a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a> to return.</p> | ||
3373 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
3374 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
3375 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="input_guide.html#events">Event processing</a> </dd> | ||
3376 | <dd> | ||
3377 | <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> </dd> | ||
3378 | <dd> | ||
3379 | <a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a></dd></dl> | ||
3380 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.1. </dd></dl> | ||
3381 | |||
3382 | </div> | ||
3383 | </div> | ||
3384 | <a id="ga15a5a1ee5b3c2ca6b15ca209a12efd14" name="ga15a5a1ee5b3c2ca6b15ca209a12efd14"></a> | ||
3385 | <h2 class="memtitle"><span class="permalink"><a href="#ga15a5a1ee5b3c2ca6b15ca209a12efd14">◆ </a></span>glfwSwapBuffers()</h2> | ||
3386 | |||
3387 | <div class="memitem"> | ||
3388 | <div class="memproto"> | ||
3389 | <table class="memname"> | ||
3390 | <tr> | ||
3391 | <td class="memname">void glfwSwapBuffers </td> | ||
3392 | <td>(</td> | ||
3393 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
3394 | <td class="paramname"><em>window</em></td><td>)</td> | ||
3395 | <td></td> | ||
3396 | </tr> | ||
3397 | </table> | ||
3398 | </div><div class="memdoc"> | ||
3399 | <p >This function swaps the front and back buffers of the specified window when rendering with OpenGL or OpenGL ES. If the swap interval is greater than zero, the GPU driver waits the specified number of screen updates before swapping the buffers.</p> | ||
3400 | <p >The specified window must have an OpenGL or OpenGL ES context. Specifying a window without a context will generate a <a class="el" href="group__errors.html#gacff24d2757da752ae4c80bf452356487">GLFW_NO_WINDOW_CONTEXT</a> error.</p> | ||
3401 | <p >This function does not apply to Vulkan. If you are rendering with Vulkan, see <code>vkQueuePresentKHR</code> instead.</p> | ||
3402 | <dl class="params"><dt>Parameters</dt><dd> | ||
3403 | <table class="params"> | ||
3404 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose buffers to swap.</td></tr> | ||
3405 | </table> | ||
3406 | </dd> | ||
3407 | </dl> | ||
3408 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gacff24d2757da752ae4c80bf452356487">GLFW_NO_WINDOW_CONTEXT</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
3409 | <dl class="section remark"><dt>Remarks</dt><dd><b>EGL:</b> The context of the specified window must be current on the calling thread.</dd></dl> | ||
3410 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
3411 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#buffer_swap">Buffer swapping</a> </dd> | ||
3412 | <dd> | ||
3413 | <a class="el" href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a></dd></dl> | ||
3414 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. <b>GLFW 3:</b> Added window handle parameter. </dd></dl> | ||
3415 | |||
3416 | </div> | ||
3417 | </div> | ||
3418 | </div><!-- contents --> | ||
3419 | <address class="footer"> | ||
3420 | <p> | ||
3421 | Last update on Thu Oct 28 2021 for GLFW 3.3.5 | ||
3422 | </p> | ||
3423 | </address> | ||
3424 | </body> | ||
3425 | </html> | ||