Sophie

Sophie

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

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/resize.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/resize.c File Reference</h1><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;xcb/xcb.h&gt;</code><br/>
<code>#include &lt;xcb/xcb_event.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="a00041_source.html">i3.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="a00049_source.html">resize.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="a00054_source.html">xcb.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00037_source.html">debug.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00043_source.html">layout.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00048_source.html">randr.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00034_source.html">config.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="a00039_source.html">floating.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/>
<div class="dynheader">
Include dependency graph for resize.c:</div>
<div class="dynsection">
</div>

<p><a href="a00074_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00005.html">callback_params</a></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00074.html#a14622d3948077559dc238d42578111fb">DRAGGING_CB</a> (resize_callback)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00074.html#a27c4cf5725c0f69ee91992c98f38dc5c">resize_graphical_handler</a> (xcb_connection_t *conn, <a class="el" href="a00025.html">Workspace</a> *ws, int first, int second, <a class="el" href="a00049.html#a71bd35b8b1c20409e895e1d16db16048">resize_orientation_t</a> orientation, xcb_button_press_event_t *event)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Renders the resize window between the first/second container and resizes the table column/row.  <a href="#a27c4cf5725c0f69ee91992c98f38dc5c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00074.html#aa9b01c3afa38f9471b7a99ea145066f0">resize_container</a> (xcb_connection_t *conn, <a class="el" href="a00025.html">Workspace</a> *ws, int first, int second, <a class="el" href="a00049.html#a71bd35b8b1c20409e895e1d16db16048">resize_orientation_t</a> orientation, int pixels)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resizes a column/row by the given amount of pixels.  <a href="#aa9b01c3afa38f9471b7a99ea145066f0"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a14622d3948077559dc238d42578111fb"></a><!-- doxytag: member="resize.c::DRAGGING_CB" ref="a14622d3948077559dc238d42578111fb" args="(resize_callback)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DRAGGING_CB </td>
          <td>(</td>
          <td class="paramtype">resize_callback&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="a00074_source.html#l00047">47</a> of file <a class="el" href="a00074_source.html">resize.c</a>.</p>

<p>References <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00036_source.html#l00100">Rect::height</a>, <a class="el" href="a00074_source.html#l00043">callback_params::helpwin</a>, <a class="el" href="a00074_source.html#l00044">callback_params::new_position</a>, <a class="el" href="a00049_source.html#l00017">O_VERTICAL</a>, <a class="el" href="a00074_source.html#l00041">callback_params::orientation</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00074_source.html#l00042">callback_params::screen</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>

</div>
</div>
<a class="anchor" id="aa9b01c3afa38f9471b7a99ea145066f0"></a><!-- doxytag: member="resize.c::resize_container" ref="aa9b01c3afa38f9471b7a99ea145066f0" args="(xcb_connection_t *conn, Workspace *ws, int first, int second, resize_orientation_t orientation, int pixels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void resize_container </td>
          <td>(</td>
          <td class="paramtype">xcb_connection_t *&nbsp;</td>
          <td class="paramname"> <em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00025.html">Workspace</a> *&nbsp;</td>
          <td class="paramname"> <em>ws</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>second</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html#a71bd35b8b1c20409e895e1d16db16048">resize_orientation_t</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pixels</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resizes a column/row by the given amount of pixels. </p>
<p>Called by resize_graphical_handler (the user clicked) or parse_resize_command (the user issued the command) </p>

<p>Definition at line <a class="el" href="a00074_source.html#l00164">164</a> of file <a class="el" href="a00074_source.html">resize.c</a>.</p>

<p>References <a class="el" href="a00036_source.html#l00202">Workspace::cols</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00069_source.html#l00040">get_unoccupied_x()</a>, <a class="el" href="a00069_source.html#l00058">get_unoccupied_y()</a>, <a class="el" href="a00036_source.html#l00251">Workspace::height_factor</a>, <a class="el" href="a00077_source.html#l00048">max()</a>, <a class="el" href="a00049_source.html#l00017">O_VERTICAL</a>, <a class="el" href="a00036_source.html#l00199">Workspace::rect</a>, <a class="el" href="a00069_source.html#l00771">render_layout()</a>, <a class="el" href="a00036_source.html#l00204">Workspace::rows</a>, <a class="el" href="a00036_source.html#l00099">Rect::width</a>, <a class="el" href="a00036_source.html#l00250">Workspace::width_factor</a>, and <a class="el" href="a00078_source.html#l00463">workspace_height()</a>.</p>

<p>Referenced by <a class="el" href="a00061_source.html#l00869">parse_resize_command()</a>, and <a class="el" href="a00074_source.html#l00076">resize_graphical_handler()</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="a27c4cf5725c0f69ee91992c98f38dc5c"></a><!-- doxytag: member="resize.c::resize_graphical_handler" ref="a27c4cf5725c0f69ee91992c98f38dc5c" args="(xcb_connection_t *conn, Workspace *ws, int first, int second, resize_orientation_t orientation, xcb_button_press_event_t *event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int resize_graphical_handler </td>
          <td>(</td>
          <td class="paramtype">xcb_connection_t *&nbsp;</td>
          <td class="paramname"> <em>conn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00025.html">Workspace</a> *&nbsp;</td>
          <td class="paramname"> <em>ws</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>second</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00049.html#a71bd35b8b1c20409e895e1d16db16048">resize_orientation_t</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">xcb_button_press_event_t *&nbsp;</td>
          <td class="paramname"> <em>event</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders the resize window between the first/second container and resizes the table column/row. </p>

<p>Definition at line <a class="el" href="a00074_source.html#l00076">76</a> of file <a class="el" href="a00074_source.html">resize.c</a>.</p>

<p>References <a class="el" href="a00034_source.html#l00049">Colortriple::border</a>, <a class="el" href="a00039_source.html#l00026">BORDER_TOP</a>, <a class="el" href="a00010.html#a2cfc8e52ae874b8a76b8103b8da7b520">Config::client</a>, <a class="el" href="a00062_source.html#l00037">config</a>, <a class="el" href="a00079_source.html#l00093">create_window()</a>, <a class="el" href="a00036_source.html#l00064">D_DOWN</a>, <a class="el" href="a00036_source.html#l00064">D_RIGHT</a>, <a class="el" href="a00044_source.html#l00021">DLOG</a>, <a class="el" href="a00066_source.html#l00380">drag_pointer()</a>, <a class="el" href="a00044_source.html#l00020">ELOG</a>, <a class="el" href="a00034_source.html#l00115">Config::config_client::focused</a>, <a class="el" href="a00073_source.html#l00099">get_output_containing()</a>, <a class="el" href="a00073_source.html#l00122">get_output_most()</a>, <a class="el" href="a00036_source.html#l00100">Rect::height</a>, <a class="el" href="a00074_source.html#l00043">callback_params::helpwin</a>, <a class="el" href="a00074_source.html#l00044">callback_params::new_position</a>, <a class="el" href="a00049_source.html#l00017">O_VERTICAL</a>, <a class="el" href="a00036_source.html#l00531">xoutput::rect</a>, <a class="el" href="a00074_source.html#l00164">resize_container()</a>, <a class="el" href="a00074_source.html#l00042">callback_params::screen</a>, <a class="el" href="a00036_source.html#l00099">Rect::width</a>, <a class="el" href="a00036_source.html#l00097">Rect::x</a>, <a class="el" href="a00054_source.html#l00023">XCB_CURSOR_SB_H_DOUBLE_ARROW</a>, <a class="el" href="a00054_source.html#l00024">XCB_CURSOR_SB_V_DOUBLE_ARROW</a>, and <a class="el" href="a00036_source.html#l00098">Rect::y</a>.</p>

<p>Referenced by <a class="el" href="a00059_source.html#l00187">floating_mod_on_tiled_client()</a>, and <a class="el" href="a00059_source.html#l00255">handle_button_press()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
</div>
</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>