Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 8ffe23af9b6e2265bcac8526648e8186 > files > 133

alleggl-devel-0.4.3-8.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AllegroGL: gui.c File Reference</title>
<link href="alleggl.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</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>
    <li><a href="pages.html"><span>Related&nbsp;Pages</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>gui.c File Reference</h1>AllegroGL GUI wrappers. <a href="#_details">More...</a>
<p>
<code>#include &quot;<a class="el" href="alleggl_8h-source.html">alleggl.h</a>&quot;</code><br>
<code>#include &quot;allglint.h&quot;</code><br>
<code>#include &lt;allegro/internal/aintern.h&gt;</code><br>

<p>
<a href="gui_8c-source.html">Go to the source code of this file.</a><h2>Defines</h2>
<ul>
<li><a class="anchor" name="02a5e24ab9549860a1d8a698d9bfa53d"></a><!-- doxytag: member="gui.c::A_S1" ref="02a5e24ab9549860a1d8a698d9bfa53d" args="" -->
#define <a class="el" href="gui_8c.html#02a5e24ab9549860a1d8a698d9bfa53d">A_S1</a>&nbsp;&nbsp;&nbsp;1
<li><a class="anchor" name="56d7d9d7063673c07b3cc9fe484f8a8f"></a><!-- doxytag: member="gui.c::A_S2" ref="56d7d9d7063673c07b3cc9fe484f8a8f" args="" -->
#define <a class="el" href="gui_8c.html#56d7d9d7063673c07b3cc9fe484f8a8f">A_S2</a>&nbsp;&nbsp;&nbsp;2
<li><a class="anchor" name="5598aaef1645992291423800b5fd3f09"></a><!-- doxytag: member="gui.c::A_S3" ref="5598aaef1645992291423800b5fd3f09" args="" -->
#define <a class="el" href="gui_8c.html#5598aaef1645992291423800b5fd3f09">A_S3</a>&nbsp;&nbsp;&nbsp;3
<li><a class="anchor" name="d73d52e18e9b691abf91bd360dd6aeb0"></a><!-- doxytag: member="gui.c::A_B1" ref="d73d52e18e9b691abf91bd360dd6aeb0" args="" -->
#define <a class="el" href="gui_8c.html#d73d52e18e9b691abf91bd360dd6aeb0">A_B1</a>&nbsp;&nbsp;&nbsp;4
<li><a class="anchor" name="189cf4c8503e07cfe7ac8c9f5ef62f1b"></a><!-- doxytag: member="gui.c::A_B2" ref="189cf4c8503e07cfe7ac8c9f5ef62f1b" args="" -->
#define <a class="el" href="gui_8c.html#189cf4c8503e07cfe7ac8c9f5ef62f1b">A_B2</a>&nbsp;&nbsp;&nbsp;5
<li><a class="anchor" name="f7df34ef18ab76ec7a691612a2b729a7"></a><!-- doxytag: member="gui.c::A_B3" ref="f7df34ef18ab76ec7a691612a2b729a7" args="" -->
#define <a class="el" href="gui_8c.html#f7df34ef18ab76ec7a691612a2b729a7">A_B3</a>&nbsp;&nbsp;&nbsp;6
<li>#define <b>SORT_OUT_BUTTON</b>(x)
</ul>
<h2>Functions</h2>
<ul>
<li>int <a class="el" href="group__gui.html#g30c12b20a701f84f994ebcbea14afc99">algl_do_dialog</a> (DIALOG *dialog, int focus_obj)
<dl class="el"><dd class="mdescRight">AllegroGL-friendly version of do_dialog.  <a href="group__gui.html#g30c12b20a701f84f994ebcbea14afc99"></a><br></dl><li>int <a class="el" href="group__gui.html#g4c6641a5fe463ca062b90bcc3bb5677d">algl_popup_dialog</a> (DIALOG *dialog, int focus_obj)
<dl class="el"><dd class="mdescRight">AllegroGL-friendly version of popup_dialog.  <a href="group__gui.html#g4c6641a5fe463ca062b90bcc3bb5677d"></a><br></dl><li>void <a class="el" href="group__gui.html#g4418d38b8585ab443ba7f41a476765c6">algl_draw_mouse</a> (void)
<dl class="el"><dd class="mdescRight">Draws a mouse pointer on the screen.  <a href="group__gui.html#g4418d38b8585ab443ba7f41a476765c6"></a><br></dl><li>void <a class="el" href="group__gui.html#g428394c0ae4d4a1e96fe2b27fb13f745">algl_set_mouse_drawer</a> (void(*user_draw_mouse)(void))
<dl class="el"><dd class="mdescRight">Sets (or clears) a user mouse drawing callback.  <a href="group__gui.html#g428394c0ae4d4a1e96fe2b27fb13f745"></a><br></dl><li>int <a class="el" href="group__gui.html#gdc8b61d7a682b7be11f0f1cc864b30be">algl_alert3</a> (AL_CONST char *s1, AL_CONST char *s2, AL_CONST char *s3, AL_CONST char *b1, AL_CONST char *b2, AL_CONST char *b3, int c1, int c2, int c3)
<dl class="el"><dd class="mdescRight">AllegroGL-friendly version of Allegro's alert3.  <a href="group__gui.html#gdc8b61d7a682b7be11f0f1cc864b30be"></a><br></dl><li>int <a class="el" href="group__gui.html#gd6be783b911635769fcb54d188a77107">algl_alert</a> (AL_CONST char *s1, AL_CONST char *s2, AL_CONST char *s3, AL_CONST char *b1, AL_CONST char *b2, int c1, int c2)
<dl class="el"><dd class="mdescRight">AllegroGL-friendly version of Allegro's alert.  <a href="group__gui.html#gd6be783b911635769fcb54d188a77107"></a><br></dl><li>int <a class="el" href="group__gui.html#ge41d96ae1ebefffdf60391e632915fd3">d_algl_viewport_proc</a> (int msg, DIALOG *d, int c)
<dl class="el"><dd class="mdescRight">Creates a viewport object where OpenGL commands can be performed.  <a href="group__gui.html#ge41d96ae1ebefffdf60391e632915fd3"></a><br></dl><li><a class="anchor" name="757f94efcdb237ef53393d86cea22f60"></a><!-- doxytag: member="gui.c::allegro_gl_set_mouse_sprite" ref="757f94efcdb237ef53393d86cea22f60" args="(BITMAP *sprite, int xfocus, int yfocus)" -->
int <a class="el" href="gui_8c.html#757f94efcdb237ef53393d86cea22f60">allegro_gl_set_mouse_sprite</a> (BITMAP *sprite, int <a class="el" href="gui_8c.html#3adc9f94d0bc51593e66902e780f0f10">xfocus</a>, int <a class="el" href="gui_8c.html#30f32b80c5834498f74917aa1c4507c3">yfocus</a>)
<li><a class="anchor" name="d2a2c6759997ceeb06b5394773da0606"></a><!-- doxytag: member="gui.c::allegro_gl_show_mouse" ref="d2a2c6759997ceeb06b5394773da0606" args="(BITMAP *bmp, int x, int y)" -->
int <a class="el" href="gui_8c.html#d2a2c6759997ceeb06b5394773da0606">allegro_gl_show_mouse</a> (BITMAP *bmp, int x, int y)
<li><a class="anchor" name="3d04d63eaa998f7b08b4420a3db1aa40"></a><!-- doxytag: member="gui.c::allegro_gl_hide_mouse" ref="3d04d63eaa998f7b08b4420a3db1aa40" args="(void)" -->
void <a class="el" href="gui_8c.html#3d04d63eaa998f7b08b4420a3db1aa40">allegro_gl_hide_mouse</a> (void)
<li><a class="anchor" name="769cf11d2059483f19fd51adde6df15d"></a><!-- doxytag: member="gui.c::allegro_gl_move_mouse" ref="769cf11d2059483f19fd51adde6df15d" args="(int x, int y)" -->
void <a class="el" href="gui_8c.html#769cf11d2059483f19fd51adde6df15d">allegro_gl_move_mouse</a> (int x, int y)
</ul>
<h2>Variables</h2>
<ul>
<li><a class="anchor" name="6964c213f1a0a954e1dd6f17e1b36279"></a><!-- doxytag: member="gui.c::allegro_gl_mouse" ref="6964c213f1a0a954e1dd6f17e1b36279" args="" -->
struct {
<ul>
<li>&nbsp;&nbsp;&nbsp;GLuint &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#0704dfe56dec926cb35f7bdc0834ecd0">texture</a>
<li>&nbsp;&nbsp;&nbsp;int &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#8bc2458f1b47dbfd5f923c1f45d348e3">hidden</a>
<li>&nbsp;&nbsp;&nbsp;int &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#3adc9f94d0bc51593e66902e780f0f10">xfocus</a>
<li>&nbsp;&nbsp;&nbsp;int &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#30f32b80c5834498f74917aa1c4507c3">yfocus</a>
<li>&nbsp;&nbsp;&nbsp;int &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#2474a5474cbff19523a51eb1de01cda4">width</a>
<li>&nbsp;&nbsp;&nbsp;int &nbsp;&nbsp;&nbsp;<a class="el" href="gui_8c.html#d12fc34ce789bce6c8a05d8a17138534">height</a>
</ul>
<li>} <b>allegro_gl_mouse</b>
<li><a class="anchor" name="5e8b9745ffa46e8152b835154d668965"></a><!-- doxytag: member="gui.c::__algl_user_draw_mouse" ref="5e8b9745ffa46e8152b835154d668965" args="(void)" -->
static void(*) <a class="el" href="gui_8c.html#5e8b9745ffa46e8152b835154d668965">__algl_user_draw_mouse</a> (void) = NULL
<li>static DIALOG <a class="el" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a> []
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
AllegroGL GUI wrappers. 
<p>
These are replacements for Allegro's do_dialog routine and standard dialogs (to use our version of the routine). 
<p>
Definition in file <a class="el" href="gui_8c-source.html">gui.c</a>.<hr><h2>Define Documentation</h2>
<a class="anchor" name="2cfb69520d287a526027d667b55a8058"></a><!-- doxytag: member="gui.c::SORT_OUT_BUTTON" ref="2cfb69520d287a526027d667b55a8058" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SORT_OUT_BUTTON          </td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Value:</b><div class="fragment"><pre class="fragment">{                                            \
      <span class="keywordflow">if</span> (b##x) {                                                          \
     <a class="code" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a>[A_B##x].flags &amp;= ~D_HIDDEN;                          \
     <a class="code" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a>[A_B##x].key = c##x;                                  \
     <a class="code" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a>[A_B##x].dp = (<span class="keywordtype">char</span> *)b##x;                           \
     len##x = gui_strlen(b##x);                                        \
     b[buttons++] = A_B##x;                                            \
      }                                                                    \
      <span class="keywordflow">else</span> {                                                               \
     <a class="code" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a>[A_B##x].flags |= D_HIDDEN;                           \
     len##x = 0;                                                       \
      }                                                                    \
   }
</pre></div>
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="8cb80572dab03ab4882589a61d07e320"></a><!-- doxytag: member="gui.c::alert_dialog" ref="8cb80572dab03ab4882589a61d07e320" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DIALOG <a class="el" href="gui_8c.html#8cb80572dab03ab4882589a61d07e320">alert_dialog</a>[]<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<b>Initial value:</b><div class="fragment"><pre class="fragment">
{
   
   { _gui_shadow_box_proc, 0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  },
   { _gui_ctext_proc,      0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  },
   { _gui_ctext_proc,      0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  },
   { _gui_ctext_proc,      0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  },
   { _gui_button_proc,     0,    0,    0,    0,    0,    0,    0,    D_EXIT,  0,    0,    NULL, NULL, NULL  },
   { _gui_button_proc,     0,    0,    0,    0,    0,    0,    0,    D_EXIT,  0,    0,    NULL, NULL, NULL  },
   { _gui_button_proc,     0,    0,    0,    0,    0,    0,    0,    D_EXIT,  0,    0,    NULL, NULL, NULL  },
   { d_yield_proc,         0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  },
   { NULL,                 0,    0,    0,    0,    0,    0,    0,    0,       0,    0,    NULL, NULL, NULL  }
}
</pre></div>
<p>
Definition at line <a class="el" href="gui_8c-source.html#l00295">295</a> of file <a class="el" href="gui_8c-source.html">gui.c</a>.
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 12 11:05:32 2007 for AllegroGL by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>