/* Public domain */ #ifndef _AGAR_WIDGET_UCOMBO_H_ #define _AGAR_WIDGET_UCOMBO_H_ #include #include #include #include #include typedef struct ag_ucombo { struct ag_widget wid; Uint flags; #define AG_UCOMBO_HFILL 0x01 #define AG_UCOMBO_VFILL 0x02 #define AG_UCOMBO_SCROLLTOSEL 0x40 /* Scroll to initial selection */ #define AG_UCOMBO_EXPAND (AG_UCOMBO_HFILL|AG_UCOMBO_VFILL) AG_Button *button; /* Selection button */ AG_Tlist *list; /* Item list */ AG_Window *panel; int wSaved, hSaved; /* Saved popup list geometry */ int wPreList, hPreList; /* Size hints */ } AG_UCombo; __BEGIN_DECLS extern AG_WidgetClass agUComboClass; AG_UCombo *AG_UComboNew(void *, Uint); AG_UCombo *AG_UComboNewPolled(void *, Uint, AG_EventFn, const char *, ...); void AG_UComboSizeHint(AG_UCombo *, const char *, int); void AG_UComboSizeHintPixels(AG_UCombo *, int, int); __END_DECLS #include #endif /* _AGAR_WIDGET_UCOMBO_H_ */