Changeset 528 for trunk/thune/gl/gui.h

Show
Ignore:
Timestamp:
05/30/08 18:36:20 (6 months ago)
Author:
krobillard
Message:

GL testfw reload works again.
Added UG_GUI_THROW macro to be used by widget event handlers.
Added gui_matchArgs() and GUI_PARSE macros.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/gl/gui.h

    r527 r528  
    6767    int16_t maxW; 
    6868    int16_t maxH; 
    69     int8_t weightX; 
    70     int8_t weightY; 
    71     int8_t policyX; 
    72     int8_t policyY; 
     69    uint8_t weightX; 
     70    uint8_t weightY; 
     71    uint8_t policyX; 
     72    uint8_t policyY; 
    7373} 
    7474GSizeHint; 
     
    149149 
    150150GWidget* gui_allocWidget( GUI*, int classId ); 
    151 //void     gui_freeWidget( GUI*, GWidgetId ); 
    152151GWidget* gui_widgetPtr( GUI*, GWidgetId ); 
    153152void     gui_link( GUI*, GWidget* parent, GWidgetId child ); 
    154 //void     gui_unlink( GUI*, GWidgetId ); 
    155153void     gui_enable( GUI*, GWidget*, int active ); 
    156154void     gui_show( GUI*, GWidget*, int show ); 
     
    158156void     gui_render( GUI*, GWidgetId ); 
    159157GWidget* gui_parseLayout( GUI*, GWidget* parent, GMakeState* ); 
     158const UCell* gui_matchArgs( GMakeState* ms, int argc, ... ); 
    160159GWidget* gui_root( const GUI* ui, GWidgetId id ); 
    161160void     gui_initRectCoord( UCell*, GWidget*, int len ); 
     
    165164 
    166165 
     166#define GUI_PARSE_ERR(msg) \ 
     167    ms->error = msg; \ 
     168    return 0 
     169 
     170#define GUI_PARSE_ALLOC(wp) \ 
     171    wp = gui_allocWidget(ui, classId); \ 
     172    if(! wp) { GUI_PARSE_ERR( "allocWidget failed" ); } 
     173 
     174 
    167175#endif /*GUI_H*/