📄 nano-x_8h-source.html
字号:
00433 <span class="comment">/**</span>00434 <span class="comment"> * Event for exposure for a region of a window.</span>00435 <span class="comment"> */</span><a name="l00436"></a><a class="code" href="structGR__EVENT__EXPOSURE.html">00436</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00437"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m0">00437</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00438"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m1">00438</a> GR_WINDOW_ID wid; <span class="comment">/**< window id */</span><a name="l00439"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m2">00439</a> GR_COORD x; <span class="comment">/**< window x coordinate of exposure */</span><a name="l00440"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m3">00440</a> GR_COORD y; <span class="comment">/**< window y coordinate of exposure */</span><a name="l00441"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m4">00441</a> GR_SIZE width; <span class="comment">/**< width of exposure */</span><a name="l00442"></a><a class="code" href="structGR__EVENT__EXPOSURE.html#m5">00442</a> GR_SIZE height; <span class="comment">/**< height of exposure */</span>00443 } <a class="code" href="structGR__EVENT__EXPOSURE.html">GR_EVENT_EXPOSURE</a>;00444 <span class="comment"></span>00445 <span class="comment">/**</span>00446 <span class="comment"> * General events for focus in or focus out for a window, or mouse enter</span>00447 <span class="comment"> * or mouse exit from a window, or window unmapping or mapping, etc.</span>00448 <span class="comment"> * Server portrait mode changes are also sent using this event to</span>00449 <span class="comment"> * all windows that request it.</span>00450 <span class="comment"> */</span><a name="l00451"></a><a class="code" href="structGR__EVENT__GENERAL.html">00451</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00452"></a><a class="code" href="structGR__EVENT__GENERAL.html#m0">00452</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00453"></a><a class="code" href="structGR__EVENT__GENERAL.html#m1">00453</a> GR_WINDOW_ID wid; <span class="comment">/**< window id */</span><a name="l00454"></a><a class="code" href="structGR__EVENT__GENERAL.html#m2">00454</a> GR_WINDOW_ID otherid; <span class="comment">/**< new/old focus id for focus events*/</span>00455 } <a class="code" href="structGR__EVENT__GENERAL.html">GR_EVENT_GENERAL</a>;00456 <span class="comment"></span>00457 <span class="comment">/**</span>00458 <span class="comment"> * Events for mouse motion or mouse position.</span>00459 <span class="comment"> */</span><a name="l00460"></a><a class="code" href="structGR__EVENT__MOUSE.html">00460</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00461"></a><a class="code" href="structGR__EVENT__MOUSE.html#m0">00461</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00462"></a><a class="code" href="structGR__EVENT__MOUSE.html#m1">00462</a> GR_WINDOW_ID wid; <span class="comment">/**< window id event delivered to */</span><a name="l00463"></a><a class="code" href="structGR__EVENT__MOUSE.html#m2">00463</a> GR_WINDOW_ID subwid; <span class="comment">/**< sub-window id (pointer was in) */</span><a name="l00464"></a><a class="code" href="structGR__EVENT__MOUSE.html#m3">00464</a> GR_COORD rootx; <span class="comment">/**< root window x coordinate */</span><a name="l00465"></a><a class="code" href="structGR__EVENT__MOUSE.html#m4">00465</a> GR_COORD rooty; <span class="comment">/**< root window y coordinate */</span><a name="l00466"></a><a class="code" href="structGR__EVENT__MOUSE.html#m5">00466</a> GR_COORD x; <span class="comment">/**< window x coordinate of mouse */</span><a name="l00467"></a><a class="code" href="structGR__EVENT__MOUSE.html#m6">00467</a> GR_COORD y; <span class="comment">/**< window y coordinate of mouse */</span><a name="l00468"></a><a class="code" href="structGR__EVENT__MOUSE.html#m7">00468</a> GR_BUTTON buttons; <span class="comment">/**< current state of buttons */</span><a name="l00469"></a><a class="code" href="structGR__EVENT__MOUSE.html#m8">00469</a> GR_KEYMOD modifiers; <span class="comment">/**< modifiers (MWKMOD_SHIFT, etc)*/</span>00470 } <a class="code" href="structGR__EVENT__MOUSE.html">GR_EVENT_MOUSE</a>;00471 <span class="comment"></span>00472 <span class="comment">/**</span>00473 <span class="comment"> * GrRegisterInput() event.</span>00474 <span class="comment"> */</span><a name="l00475"></a><a class="code" href="structGR__EVENT__FDINPUT.html">00475</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00476"></a><a class="code" href="structGR__EVENT__FDINPUT.html#m0">00476</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00477"></a><a class="code" href="structGR__EVENT__FDINPUT.html#m1">00477</a> <span class="keywordtype">int</span> fd; <span class="comment">/**< input file descriptor*/</span>00478 } <a class="code" href="structGR__EVENT__FDINPUT.html">GR_EVENT_FDINPUT</a>;00479 <span class="comment"></span>00480 <span class="comment">/**</span>00481 <span class="comment"> * GR_EVENT_TYPE_UPDATE</span>00482 <span class="comment"> */</span><a name="l00483"></a><a class="code" href="structGR__EVENT__UPDATE.html">00483</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00484"></a><a class="code" href="structGR__EVENT__UPDATE.html#m0">00484</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00485"></a><a class="code" href="structGR__EVENT__UPDATE.html#m1">00485</a> GR_WINDOW_ID wid; <span class="comment">/**< select window id*/</span><a name="l00486"></a><a class="code" href="structGR__EVENT__UPDATE.html#m2">00486</a> GR_WINDOW_ID subwid; <span class="comment">/**< update window id (=wid for UPDATE event)*/</span><a name="l00487"></a><a class="code" href="structGR__EVENT__UPDATE.html#m3">00487</a> GR_COORD x; <span class="comment">/**< new window x coordinate */</span><a name="l00488"></a><a class="code" href="structGR__EVENT__UPDATE.html#m4">00488</a> GR_COORD y; <span class="comment">/**< new window y coordinate */</span><a name="l00489"></a><a class="code" href="structGR__EVENT__UPDATE.html#m5">00489</a> GR_SIZE width; <span class="comment">/**< new width */</span><a name="l00490"></a><a class="code" href="structGR__EVENT__UPDATE.html#m6">00490</a> GR_SIZE height; <span class="comment">/**< new height */</span><a name="l00491"></a><a class="code" href="structGR__EVENT__UPDATE.html#m7">00491</a> GR_UPDATE_TYPE utype; <span class="comment">/**< update_type */</span>00492 } <a class="code" href="structGR__EVENT__UPDATE.html">GR_EVENT_UPDATE</a>;00493 <span class="comment"></span>00494 <span class="comment">/**</span>00495 <span class="comment"> * GR_EVENT_TYPE_SCREENSAVER</span>00496 <span class="comment"> */</span><a name="l00497"></a><a class="code" href="structGR__EVENT__SCREENSAVER.html">00497</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00498"></a><a class="code" href="structGR__EVENT__SCREENSAVER.html#m0">00498</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00499"></a><a class="code" href="structGR__EVENT__SCREENSAVER.html#m1">00499</a> GR_BOOL activate; <span class="comment">/**< true = activate, false = deactivate */</span>00500 } <a class="code" href="structGR__EVENT__SCREENSAVER.html">GR_EVENT_SCREENSAVER</a>;00501 <span class="comment"></span>00502 <span class="comment">/**</span>00503 <span class="comment"> * GR_EVENT_TYPE_CLIENT_DATA_REQ</span>00504 <span class="comment"> */</span><a name="l00505"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html">00505</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00506"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html#m0">00506</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00507"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html#m1">00507</a> GR_WINDOW_ID wid; <span class="comment">/**< ID of requested window */</span><a name="l00508"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html#m2">00508</a> GR_WINDOW_ID rid; <span class="comment">/**< ID of window to send data to */</span><a name="l00509"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html#m3">00509</a> GR_SERIALNO serial; <span class="comment">/**< Serial number of transaction */</span><a name="l00510"></a><a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html#m4">00510</a> GR_MIMETYPE mimetype; <span class="comment">/**< Type to supply data as */</span>00511 } <a class="code" href="structGR__EVENT__CLIENT__DATA__REQ.html">GR_EVENT_CLIENT_DATA_REQ</a>;00512 <span class="comment"></span>00513 <span class="comment">/**</span>00514 <span class="comment"> * GR_EVENT_TYPE_CLIENT_DATA</span>00515 <span class="comment"> */</span><a name="l00516"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html">00516</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00517"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m0">00517</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00518"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m1">00518</a> GR_WINDOW_ID wid; <span class="comment">/**< ID of window data is destined for */</span><a name="l00519"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m2">00519</a> GR_WINDOW_ID rid; <span class="comment">/**< ID of window data is from */</span><a name="l00520"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m3">00520</a> GR_SERIALNO serial; <span class="comment">/**< Serial number of transaction */</span><a name="l00521"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m4">00521</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> len; <span class="comment">/**< Total length of data */</span><a name="l00522"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m5">00522</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> datalen; <span class="comment">/**< Length of following data */</span><a name="l00523"></a><a class="code" href="structGR__EVENT__CLIENT__DATA.html#m6">00523</a> <span class="keywordtype">void</span> *data; <span class="comment">/**< Pointer to data (filled in on client side) */</span>00524 } <a class="code" href="structGR__EVENT__CLIENT__DATA.html">GR_EVENT_CLIENT_DATA</a>;00525 <span class="comment"></span>00526 <span class="comment">/**</span>00527 <span class="comment"> * GR_EVENT_TYPE_SELECTION_CHANGED</span>00528 <span class="comment"> */</span><a name="l00529"></a><a class="code" href="structGR__EVENT__SELECTION__CHANGED.html">00529</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00530"></a><a class="code" href="structGR__EVENT__SELECTION__CHANGED.html#m0">00530</a> GR_EVENT_TYPE type; <span class="comment">/**< event type */</span><a name="l00531"></a><a class="code" href="structGR__EVENT__SELECTION__CHANGED.html#m1">00531</a> GR_WINDOW_ID new_owner; <span class="comment">/**< ID of new selection owner */</span>00532 } <a class="code" href="structGR__EVENT__SELECTION__CHANGED.html">GR_EVENT_SELECTION_CHANGED</a>;00533 <span class="comment"></span>00534 <span class="comment">/**</span>00535 <span class="comment"> * GR_EVENT_TYPE_TIMER</span>00536 <span class="comment"> */</span><a name="l00537"></a><a class="code" href="structGR__EVENT__TIMER.html">00537</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{<a name="l00538"></a><a class="code" href="structGR__EVENT__TIMER.html#m0">00538</a> GR_EVENT_TYPE type; <span class="comment">/**< event type, GR_EVENT_TYPE_TIMER */</span><a name="l00539"></a><a class="code" href="structGR__EVENT__TIMER.html#m1">00539</a> GR_WINDOW_ID wid; <span class="comment">/**< ID of window timer is destined for */</span><a name="l00540"></a><a class="code" href="structGR__EVENT__TIMER.html#m2">00540</a> GR_TIMER_ID ti
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -