Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c67c6057ffd14254a26624517a2352e6 > files > 278

i3-doc-3.e-3.bf1.fc14.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>i3: include/xcb.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>include/xcb.h</h1><a href="a00054.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * vim:ts=8:expandtab</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * i3 - an improved dynamic tiling window manager</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * (c) 2009 Michael Stapelberg and contributors</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * See file LICENSE for license information.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> */</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _XCB_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _XCB_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="a00036.html">data.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a><a class="code" href="a00054.html#a50026537f9f2afdb4a6a4f3bc5dad6d3">00016</a> <span class="preprocessor">#define _NET_WM_STATE_REMOVE    0</span>
<a name="l00017"></a><a class="code" href="a00054.html#af01584d4487719bb38125d1c5176a823">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define _NET_WM_STATE_ADD       1</span>
<a name="l00018"></a><a class="code" href="a00054.html#a3e923d9844fde85f4a21c204f1f8dbd2">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define _NET_WM_STATE_TOGGLE    2</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00022"></a><a class="code" href="a00054.html#ada5e89d9bddd5e5feff900639db2e208">00022</a> <span class="preprocessor">#define XCB_CURSOR_LEFT_PTR     68</span>
<a name="l00023"></a><a class="code" href="a00054.html#a4e44cdac03bdc4337b8cf1e91fa35370">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define XCB_CURSOR_SB_H_DOUBLE_ARROW 108</span>
<a name="l00024"></a><a class="code" href="a00054.html#abecce64970049f96b6bfaecface172e6">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define XCB_CURSOR_SB_V_DOUBLE_ARROW 116</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="comment">/* from X11/keysymdef.h */</span>
<a name="l00027"></a><a class="code" href="a00054.html#a317f6b3487405530a05621915ee75230">00027</a> <span class="preprocessor">#define XCB_NUM_LOCK                    0xff7f</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="comment">/* The event masks are defined here because we don’t only set them once but we</span>
<a name="l00030"></a>00030 <span class="comment">   need to set slight variations of them (without XCB_EVENT_MASK_ENTER_WINDOW</span>
<a name="l00031"></a>00031 <span class="comment">   while rendering the layout) */</span>
<a name="l00033"></a><a class="code" href="a00054.html#a943b53f85455fd0587d1b010cd9e4114">00033</a> <span class="preprocessor">#define CHILD_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | \</span>
<a name="l00034"></a>00034 <span class="preprocessor">                          XCB_EVENT_MASK_STRUCTURE_NOTIFY | \</span>
<a name="l00035"></a>00035 <span class="preprocessor">                          XCB_EVENT_MASK_ENTER_WINDOW)</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
<a name="l00038"></a><a class="code" href="a00054.html#aed223c0ebc389529a1b1e74c6f4d2df8">00038</a> <span class="preprocessor">#define FRAME_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS |          </span><span class="comment">/* …mouse is pressed/released */</span> \
<a name="l00039"></a>00039                           XCB_EVENT_MASK_BUTTON_RELEASE | \
<a name="l00040"></a>00040                           XCB_EVENT_MASK_EXPOSURE |              <span class="comment">/* …our window needs to be redrawn */</span> \
<a name="l00041"></a>00041                           XCB_EVENT_MASK_STRUCTURE_NOTIFY |      <span class="comment">/* …the frame gets destroyed */</span> \
<a name="l00042"></a>00042                           XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | <span class="comment">/* …the application tries to resize itself */</span> \
<a name="l00043"></a>00043                           XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY |   <span class="comment">/* …subwindows get notifies */</span> \
<a name="l00044"></a>00044                           XCB_EVENT_MASK_ENTER_WINDOW)           <span class="comment">/* …user moves cursor inside our window */</span>
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 
<a name="l00047"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a02709e70342f55474db97400e435c636">00047</a> <span class="keyword">enum</span> { <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a02709e70342f55474db97400e435c636">_NET_SUPPORTED</a> = 0,
<a name="l00048"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635aabc07cc4cd1aea6087dc5763d82576cf">00048</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635aabc07cc4cd1aea6087dc5763d82576cf">_NET_SUPPORTING_WM_CHECK</a>,
<a name="l00049"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a1dedae1b3288478b95e08984bac0e951">00049</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a1dedae1b3288478b95e08984bac0e951">_NET_WM_NAME</a>,
<a name="l00050"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635accdb5c5ee0d74dfffda6f4324a9abff5">00050</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635accdb5c5ee0d74dfffda6f4324a9abff5">_NET_WM_STATE_FULLSCREEN</a>,
<a name="l00051"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a555588bf6061a168cd7526a49dc4b0fa">00051</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a555588bf6061a168cd7526a49dc4b0fa">_NET_WM_STATE</a>,
<a name="l00052"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635ad2b0847e09761bd2ad2b6482c51b07ca">00052</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635ad2b0847e09761bd2ad2b6482c51b07ca">_NET_WM_WINDOW_TYPE</a>,
<a name="l00053"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a2d1c4f653feb0746c9d55bddfa1f8946">00053</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a2d1c4f653feb0746c9d55bddfa1f8946">_NET_WM_WINDOW_TYPE_DOCK</a>,
<a name="l00054"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635afc6c49b0d04427d54227a147e230fa6c">00054</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635afc6c49b0d04427d54227a147e230fa6c">_NET_WM_WINDOW_TYPE_DIALOG</a>,
<a name="l00055"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a2e553ea4ae93c2324801a40f52d7a70a">00055</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a2e553ea4ae93c2324801a40f52d7a70a">_NET_WM_WINDOW_TYPE_UTILITY</a>,
<a name="l00056"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635adc360a29b4d20ba8cd1c999f6077a843">00056</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635adc360a29b4d20ba8cd1c999f6077a843">_NET_WM_WINDOW_TYPE_TOOLBAR</a>,
<a name="l00057"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a49555c0ebb81f76501d672c92857704a">00057</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a49555c0ebb81f76501d672c92857704a">_NET_WM_WINDOW_TYPE_SPLASH</a>,
<a name="l00058"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a92d29c09b7c0af698c72325a0372126f">00058</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a92d29c09b7c0af698c72325a0372126f">_NET_WM_DESKTOP</a>,
<a name="l00059"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5171f3918252a26530d02d6a1716ca45">00059</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5171f3918252a26530d02d6a1716ca45">_NET_WM_STRUT_PARTIAL</a>,
<a name="l00060"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5d7366da3deea67253099a5c730d4297">00060</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5d7366da3deea67253099a5c730d4297">WM_PROTOCOLS</a>,
<a name="l00061"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a72e98f8036033fc3b9db52933dd749d0">00061</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a72e98f8036033fc3b9db52933dd749d0">WM_DELETE_WINDOW</a>,
<a name="l00062"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635aef8323bb1a48d3826fa5269e578b4a6a">00062</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635aef8323bb1a48d3826fa5269e578b4a6a">UTF8_STRING</a>,
<a name="l00063"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5ce0f911fd3494577cce5417d7b7eea4">00063</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5ce0f911fd3494577cce5417d7b7eea4">WM_STATE</a>,
<a name="l00064"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a13d4dbc6987347bcc7c535570b4e6c2b">00064</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a13d4dbc6987347bcc7c535570b4e6c2b">WM_CLIENT_LEADER</a>,
<a name="l00065"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a7b3651a6efcb0970efc89dc301c91e5e">00065</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a7b3651a6efcb0970efc89dc301c91e5e">_NET_CURRENT_DESKTOP</a>,
<a name="l00066"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635ac34e05dfa966932f57aad3f572ed01f2">00066</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635ac34e05dfa966932f57aad3f572ed01f2">_NET_ACTIVE_WINDOW</a>,
<a name="l00067"></a><a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5258a6a20735e2ae242453ddaf60d157">00067</a>         <a class="code" href="a00054.html#a726ca809ffd3d67ab4b8476646f26635a5258a6a20735e2ae242453ddaf60d157">_NET_WORKAREA</a>
<a name="l00068"></a>00068 };
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="a00054.html#ac430ae06cbf6f5ef252c9ebfca47e644">xcb_numlock_mask</a>;
<a name="l00071"></a>00071 
<a name="l00077"></a>00077 <a class="code" href="a00015.html" title="Data structure for cached font information:font id in X11 (load it once)font height...">i3Font</a> *<a class="code" href="a00054.html#a50c1fc0de5343536d542c8349ab7ab0d" title="Loads a font for usage, getting its height.">load_font</a>(xcb_connection_t *conn, <span class="keyword">const</span> <span class="keywordtype">char</span> *pattern);
<a name="l00078"></a>00078 
<a name="l00088"></a>00088 uint32_t <a class="code" href="a00079.html#a0146fe310e31c9509a7a7846aa547c67" title="Returns the colorpixel to use for the given hex color (think of HTML).">get_colorpixel</a>(xcb_connection_t *conn, <span class="keywordtype">char</span> *hex);
<a name="l00089"></a>00089 
<a name="l00095"></a>00095 xcb_window_t <a class="code" href="a00079.html#a1c6bb71a9f8e0501e2228dd3dca3bd6a" title="Convenience wrapper around xcb_create_window which takes care of depth, generating...">create_window</a>(xcb_connection_t *conn, <a class="code" href="a00020.html" title="Stores a rectangle, for example the size of a window, the child window etc.">Rect</a> r, uint16_t window_class,
<a name="l00096"></a>00096                            <span class="keywordtype">int</span> cursor, <span class="keywordtype">bool</span> map, uint32_t mask, uint32_t *values);
<a name="l00097"></a>00097 
<a name="l00103"></a>00103 <span class="keywordtype">void</span> <a class="code" href="a00079.html#ac20ce6b9cf46f63675e363ac5dc2f24e" title="Changes a single value in the graphic context (so one doesn’t have to define an...">xcb_change_gc_single</a>(xcb_connection_t *conn, xcb_gcontext_t gc,
<a name="l00104"></a>00104                           uint32_t mask, uint32_t value);
<a name="l00105"></a>00105 
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="a00079.html#aceb7b1de1af10ea8def35d48a1b0caad" title="Draws a line from x,y to to_x,to_y using the given color.">xcb_draw_line</a>(xcb_connection_t *conn, xcb_drawable_t drawable,
<a name="l00111"></a>00111                    xcb_gcontext_t gc, uint32_t colorpixel, uint32_t x,
<a name="l00112"></a>00112                    uint32_t <a class="code" href="a00068.html#a16e56e533e1eb98fda15e06fdec03da6">y</a>, uint32_t to_x, uint32_t to_y);
<a name="l00113"></a>00113 
<a name="l00118"></a>00118 <span class="keywordtype">void</span> <a class="code" href="a00079.html#ac2b163cc3d76bdec224a1ce5c7ac9c6d" title="Draws a rectangle from x,y with width,height using the given color.">xcb_draw_rect</a>(xcb_connection_t *conn, xcb_drawable_t drawable,
<a name="l00119"></a>00119                    xcb_gcontext_t gc, uint32_t colorpixel, uint32_t x,
<a name="l00120"></a>00120                    uint32_t <a class="code" href="a00068.html#a16e56e533e1eb98fda15e06fdec03da6">y</a>, uint32_t width, uint32_t height);
<a name="l00121"></a>00121 
<a name="l00128"></a>00128 <span class="keywordtype">void</span> <a class="code" href="a00079.html#a164801596691fe72d4e2e2f1b8b3cee1" title="Generates a configure_notify event and sends it to the given window Applications...">fake_configure_notify</a>(xcb_connection_t *conn, <a class="code" href="a00020.html" title="Stores a rectangle, for example the size of a window, the child window etc.">Rect</a> r, xcb_window_t window);
<a name="l00129"></a>00129 
<a name="l00135"></a>00135 <span class="keywordtype">void</span> <a class="code" href="a00079.html#a66ff853f6bedca4b4c142f3b7561b189" title="Generates a configure_notify_event with absolute coordinates (relative to the X root...">fake_absolute_configure_notify</a>(xcb_connection_t *conn, <a class="code" href="a00007.html" title="A client is X11-speak for a window.">Client</a> *client);
<a name="l00136"></a>00136 
<a name="l00142"></a>00142 <span class="keywordtype">void</span> <a class="code" href="a00079.html#aeae86e9fc76e08fd43f142de4d11bba0" title="Finds out which modifier mask is the one for numlock, as the user may change this...">xcb_get_numlock_mask</a>(xcb_connection_t *conn);
<a name="l00143"></a>00143 
<a name="l00148"></a>00148 <span class="keywordtype">void</span> <a class="code" href="a00079.html#a6ea5ab6082e87ce76340a38034f7b513" title="Raises the given window (typically client-&amp;gt;frame) above all other windows.">xcb_raise_window</a>(xcb_connection_t *conn, xcb_window_t window);
<a name="l00149"></a>00149 
<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="a00079.html#a22762f8bf69c7dcfdafac47e5e39695a" title="Prepares the given Cached_Pixmap for usage (checks whether the size of the object...">cached_pixmap_prepare</a>(xcb_connection_t *conn, <span class="keyword">struct</span> <a class="code" href="a00004.html">Cached_Pixmap</a> *<a class="code" href="a00075.html#a81dcec2414a6c7beb665ce0fe5e1eaf6">pixmap</a>);
<a name="l00158"></a>00158 
<a name="l00164"></a>00164 <span class="keywordtype">int</span> <a class="code" href="a00079.html#a01397b2251980ca02d24194293fc79d0" title="Calculate the width of the given text (16-bit characters, UCS) with given real length...">predict_text_width</a>(xcb_connection_t *conn, <span class="keyword">const</span> <span class="keywordtype">char</span> *font_pattern, <span class="keywordtype">char</span> *text,
<a name="l00165"></a>00165                        <span class="keywordtype">int</span> length);
<a name="l00166"></a>00166 
<a name="l00171"></a>00171 <span class="keywordtype">void</span> <a class="code" href="a00079.html#a7bbb53cdd77036e67c997f0c93e67cef" title="Configures the given window to have the size/position specified by given rect.">xcb_set_window_rect</a>(xcb_connection_t *conn, xcb_window_t window, <a class="code" href="a00020.html" title="Stores a rectangle, for example the size of a window, the child window etc.">Rect</a> r);
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>