gui.c File Reference

AllegroGL GUI wrappers. More...

#include "alleggl.h"
#include "allglint.h"
#include <allegro/internal/aintern.h>

Go to the source code of this file.

Defines

Functions

Variables


Detailed Description

AllegroGL GUI wrappers.

These are replacements for Allegro's do_dialog routine and standard dialogs (to use our version of the routine).

Definition in file gui.c.


Define Documentation

#define SORT_OUT_BUTTON (  ) 

Value:

{                                            \
      if (b##x) {                                                          \
     alert_dialog[A_B##x].flags &= ~D_HIDDEN;                          \
     alert_dialog[A_B##x].key = c##x;                                  \
     alert_dialog[A_B##x].dp = (char *)b##x;                           \
     len##x = gui_strlen(b##x);                                        \
     b[buttons++] = A_B##x;                                            \
      }                                                                    \
      else {                                                               \
     alert_dialog[A_B##x].flags |= D_HIDDEN;                           \
     len##x = 0;                                                       \
      }                                                                    \
   }


Variable Documentation

DIALOG alert_dialog[] [static]

Initial value:

{
   
   { _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  }
}

Definition at line 295 of file gui.c.


Generated on Sun Nov 11 15:52:55 2007 for AllegroGL by  doxygen 1.5.2