Sophie

Sophie

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

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/workspace.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/workspace.h</h1><a href="a00053.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"> * © 2009-2010 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;xcb/xcb.h&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="a00036.html">data.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="a00048.html">randr.h</a>&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef _WORKSPACE_H</span>
<a name="l00017"></a><a class="code" href="a00053.html#ac20d7dcb7586b993edab2b8725c8cec2">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define _WORKSPACE_H</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *<a class="code" href="a00078.html#a73833335a85bfc97bdff285b151ab1c5" title="Returns a pointer to the workspace with the given number (starting at 0), creating...">workspace_get</a>(<span class="keywordtype">int</span> number);
<a name="l00026"></a>00026 
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a492c5885bad35ce073562238ab5bc72d" title="Sets the name (or just its number) for the given workspace.">workspace_set_name</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
<a name="l00035"></a>00035 
<a name="l00042"></a>00042 <span class="keywordtype">bool</span> <a class="code" href="a00078.html#a7a4e9d7994d904776ead4c8fc1b22091" title="Returns true if the workspace is currently visible.">workspace_is_visible</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws);
<a name="l00043"></a>00043 
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a2f31983877c705919ed85c985220855e" title="Switches to the given workspace.">workspace_show</a>(xcb_connection_t *conn, <span class="keywordtype">int</span> workspace);
<a name="l00046"></a>00046 
<a name="l00056"></a>00056 <span class="keywordtype">void</span> <a class="code" href="a00078.html#adadfb8fab9d410f05869cc1808f3922f" title="Assigns the given workspace to the given screen by correctly updating its state and...">workspace_assign_to</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws, <a class="code" href="a00026.html" title="An Output is a physical output on your graphics driver.">Output</a> *screen, <span class="keywordtype">bool</span> hide_it);
<a name="l00057"></a>00057 
<a name="l00065"></a>00065 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a8339966acb1a826e826e9b20bfb754f6" title="Initializes the given workspace if it is not already initialized.">workspace_initialize</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws, <a class="code" href="a00026.html" title="An Output is a physical output on your graphics driver.">Output</a> *screen, <span class="keywordtype">bool</span> recheck);
<a name="l00066"></a>00066 
<a name="l00072"></a>00072 <a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *<a class="code" href="a00078.html#a3fae69bcec850a9a117b9f0cee6a19c0" title="Gets the first unused workspace for the given screen, taking into account the preferred_screen...">get_first_workspace_for_output</a>(<a class="code" href="a00026.html" title="An Output is a physical output on your graphics driver.">Output</a> *screen);
<a name="l00073"></a>00073 
<a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a5994190a13e9afaf2fddb99e8ec1f25d" title="Unmaps all clients (and stack windows) of the given workspace.">workspace_unmap_clients</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> *u_ws);
<a name="l00083"></a>00083 
<a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a88c6ab06ad8ce02a23811e2ee2d84285" title="Maps all clients (and stack windows) of the given workspace.">workspace_map_clients</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> *ws);
<a name="l00089"></a>00089 
<a name="l00095"></a>00095 <span class="keywordtype">void</span> <a class="code" href="a00078.html#a2c43568cc3492bd24992d93f4552bbe9" title="Goes through all clients on the given workspace and updates the workspace’s urgent...">workspace_update_urgent_flag</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws);
<a name="l00096"></a>00096 
<a name="l00097"></a>00097 <span class="comment">/*</span>
<a name="l00098"></a>00098 <span class="comment"> * Returns the width of the workspace.</span>
<a name="l00099"></a>00099 <span class="comment"> *</span>
<a name="l00100"></a>00100 <span class="comment"> */</span>
<a name="l00101"></a>00101 <span class="keywordtype">int</span> <a class="code" href="a00078.html#a56b20858f66e962aad2b914b9ab97f1b">workspace_width</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws);
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="comment">/*</span>
<a name="l00104"></a>00104 <span class="comment"> * Returns the effective height of the workspace (without the internal bar and</span>
<a name="l00105"></a>00105 <span class="comment"> * without dock clients).</span>
<a name="l00106"></a>00106 <span class="comment"> *</span>
<a name="l00107"></a>00107 <span class="comment"> */</span>
<a name="l00108"></a>00108 <span class="keywordtype">int</span> <a class="code" href="a00078.html#af55407f9bc846ec57cf289c87a47dbce">workspace_height</a>(<a class="code" href="a00025.html" title="The concept of Workspaces is known from various other window managers.">Workspace</a> *ws);
<a name="l00109"></a>00109 
<a name="l00110"></a>00110 <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>