Sophie

Sophie

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

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/table.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/table.h</h1><a href="a00051.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">#include &lt;stdbool.h&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;xcb/xcb.h&gt;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="a00036.html">data.h</a>&quot;</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef _TABLE_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define _TABLE_H</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="a00051.html#ab074841bfa241556bb0eac4207c7ebd3">00020</a> <span class="preprocessor">#define CUR_TABLE (c_ws-&gt;table)</span>
<a name="l00021"></a><a class="code" href="a00051.html#ac120dc3752e8ac2853ddd65d7737a2fd">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define CUR_CELL (CUR_TABLE[current_col][current_row])</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="keyword">extern</span> <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *<a class="code" href="a00076.html#a6dc99dff7063221c1096561951c0386b">c_ws</a>;
<a name="l00024"></a>00024 <span class="keyword">extern</span> <a class="code" href="a00047.html#a4abce769a262e090c1f601605b9d6c76">TAILQ_HEAD</a>(workspaces_head, <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a>) *<a class="code" href="a00076.html#afb45f3a3a9c66c3e3a5e4d372ae24da7">workspaces</a>;
<a name="l00025"></a>00025 <span class="comment">//extern int num_workspaces;</span>
<a name="l00026"></a>00026 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00076.html#a5f839b3ac61c0771c9f8fbef974afe76">current_col</a>;
<a name="l00027"></a>00027 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00076.html#a40ba377d6a3a574ff03b859bc7cdd4b0">current_row</a>;
<a name="l00028"></a>00028 
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="a00076.html#af025cd3b8bcee08bf8f89ae8c17d5f69" title="Initialize table.">init_table</a>();
<a name="l00031"></a>00031 
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="a00076.html#a8fb9ac616cc935e2fd54c6bcb6563df1" title="Add one row to the table.">expand_table_rows</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00034"></a>00034 
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="a00076.html#aabd77fc80543d15af28744cc7fb65eff" title="Adds one row at the head of the table.">expand_table_rows_at_head</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00037"></a>00037 
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="a00076.html#ac58314a435fd187ce2ed416b9dc8019f" title="Add one column to the table.">expand_table_cols</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00040"></a>00040 
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="a00076.html#a64137c62f1c21a49d0f2f2a7a48b50a8" title="Inserts one column at the table’s head.">expand_table_cols_at_head</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00046"></a>00046 
<a name="l00051"></a>00051 <span class="keywordtype">bool</span> <a class="code" href="a00076.html#a35612ca2e7ae4fc1fe4e396957215065" title="Performs simple bounds checking for the given column/row.">cell_exists</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws, <span class="keywordtype">int</span> col, <span class="keywordtype">int</span> row);
<a name="l00052"></a>00052 
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="a00076.html#a53709ed2b55f1b76021b0e6c93aae547" title="Shrinks the table by &amp;quot;compacting&amp;quot; it, that is, removing completely empty...">cleanup_table</a>(xcb_connection_t *conn, <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00059"></a>00059 
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="a00076.html#aaeae76f5b6005f3a20a6fb1d8906d8a5" title="Fixes col/rowspan (makes sure there are no overlapping windows).">fix_colrowspan</a>(xcb_connection_t *conn, <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00065"></a>00065 
<a name="l00070"></a>00070 <span class="keywordtype">void</span> <a class="code" href="a00076.html#a7742dcf527f7676b685abb817d06e2f3" title="Prints the table’s contents in human-readable form for debugging.">dump_table</a>(xcb_connection_t *conn, <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *workspace);
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <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>