Sophie

Sophie

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

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: src/xinerama.c File Reference</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>
</div>
<div class="contents">
<h1>src/xinerama.c File Reference</h1><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;xcb/xcb.h&gt;</code><br/>
<code>#include &lt;xcb/xinerama.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="a00047_source.html">queue.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00036_source.html">data.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00052_source.html">util.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00055_source.html">xinerama.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00053_source.html">workspace.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00044_source.html">log.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00048_source.html">randr.h</a>&quot;</code><br/>
<div class="dynheader">
Include dependency graph for xinerama.c:</div>
<div class="dynsection">
</div>

<p><a href="a00080_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00026.html">Output</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a6d839fbeabf7798879b865fe1050dd11">get_screen_at</a> (int x, int y)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a6c10a3a62f737a084108860feb421d94">query_screens</a> (xcb_connection_t *conn)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a93044db4172ab2447725a2bee3065931">initialize_xinerama</a> (xcb_connection_t *conn)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen.  <a href="#a93044db4172ab2447725a2bee3065931"></a><br/></td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00080.html#a59ff745efdee354cf2bc3dd370fec282">num_screens</a></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a6d839fbeabf7798879b865fe1050dd11"></a><!-- doxytag: member="xinerama.c::get_screen_at" ref="a6d839fbeabf7798879b865fe1050dd11" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00026.html">Output</a>* get_screen_at </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00080_source.html#l00036">36</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p>

<p>References <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00047_source.html#l00335">TAILQ_FOREACH</a>, <a class="el" href="a00036_source.html#l00097">Rect::x</a>, and <a class="el" href="a00036_source.html#l00098">Rect::y</a>.</p>

<p>Referenced by <a class="el" href="a00080_source.html#l00050">query_screens()</a>.</p>

</div>
</div>
<a class="anchor" id="a93044db4172ab2447725a2bee3065931"></a><!-- doxytag: member="xinerama.c::initialize_xinerama" ref="a93044db4172ab2447725a2bee3065931" args="(xcb_connection_t *conn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void initialize_xinerama </td>
          <td>(</td>
          <td class="paramtype">xcb_connection_t *&nbsp;</td>
          <td class="paramname"> <em>conn</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen. </p>

<p>Definition at line <a class="el" href="a00080_source.html#l00104">104</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p>

<p>References <a class="el" href="a00073_source.html#l00216">disable_randr()</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00052_source.html#l00029">FREE</a>, <a class="el" href="a00078_source.html#l00301">get_first_workspace_for_output()</a>, <a class="el" href="a00073_source.html#l00166">initialize_output()</a>, <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00080_source.html#l00050">query_screens()</a>, and <a class="el" href="a00047_source.html#l00335">TAILQ_FOREACH</a>.</p>

<p>Referenced by <a class="el" href="a00071_source.html#l00193">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<a class="anchor" id="a6c10a3a62f737a084108860feb421d94"></a><!-- doxytag: member="xinerama.c::query_screens" ref="a6c10a3a62f737a084108860feb421d94" args="(xcb_connection_t *conn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void query_screens </td>
          <td>(</td>
          <td class="paramtype">xcb_connection_t *&nbsp;</td>
          <td class="paramname"> <em>conn</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00080_source.html#l00050">50</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p>

<p>References <a class="el" href="a00036_source.html#l00520">xoutput::active</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00044_source.html#l00020">ELOG</a>, <a class="el" href="a00080_source.html#l00036">get_screen_at()</a>, <a class="el" href="a00036_source.html#l00100">Rect::height</a>, <a class="el" href="a00077_source.html#l00044">min()</a>, <a class="el" href="a00036_source.html#l00516">xoutput::name</a>, <a class="el" href="a00071_source.html#l00086">num_screens</a>, <a class="el" href="a00073_source.html#l00047">outputs</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00077_source.html#l00074">scalloc()</a>, <a class="el" href="a00047_source.html#l00353">TAILQ_INSERT_HEAD</a>, <a class="el" href="a00047_source.html#l00363">TAILQ_INSERT_TAIL</a>, <a class="el" href="a00036_source.html#l00099">Rect::width</a>, <a class="el" href="a00036_source.html#l00097">Rect::x</a>, and <a class="el" href="a00036_source.html#l00098">Rect::y</a>.</p>

<p>Referenced by <a class="el" href="a00080_source.html#l00104">initialize_xinerama()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a59ff745efdee354cf2bc3dd370fec282"></a><!-- doxytag: member="xinerama.c::num_screens" ref="a59ff745efdee354cf2bc3dd370fec282" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00080.html#a59ff745efdee354cf2bc3dd370fec282">num_screens</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00080_source.html#l00030">30</a> of file <a class="el" href="a00080_source.html">xinerama.c</a>.</p>

</div>
</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>