/* Public domain */ #ifndef _AGAR_WIDGET_FONT_SELECTOR_H_ #define _AGAR_WIDGET_FONT_SELECTOR_H_ #include #include #include #include #include typedef struct ag_font_selector { AG_Widget wid; Uint flags; #define AG_FONTSELECTOR_UPDATE 0x01 /* Refresh listing */ #define AG_FONTSELECTOR_HFILL 0x100 #define AG_FONTSELECTOR_VFILL 0x200 #define AG_FONTSELECTOR_EXPAND (AG_FONTSELECTOR_HFILL|AG_FONTSELECTOR_VFILL) AG_Pane *hPane, *hPane2; /* Containers */ AG_Box *sizeBox; /* Container for sizes */ AG_Tlist *tlFaces; /* List of font faces */ AG_Tlist *tlStyles; /* List of font styles */ AG_Tlist *tlSizes; /* List of available sizes */ char curFace[AG_OBJECT_NAME_MAX]; /* Current font face */ Uint curStyle; /* Current style flags */ int curSize; /* Current size */ AG_Rect rPreview; /* Preview area */ int sPreview; /* Preview surface */ AG_Font *font; /* Default `font' binding */ } AG_FontSelector; __BEGIN_DECLS extern AG_WidgetClass agFontSelectorClass; AG_FontSelector *AG_FontSelectorNew(void *, Uint); __END_DECLS #include #endif /* _AGAR_WIDGET_FONT_SELECTOR_H_ */