lib/ewl_dialog.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_DIALOG_H 00003 #define EWL_DIALOG_H 00004 00026 #define EWL_DIALOG_TYPE "dialog" 00027 00032 #define EWL_DIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_DIALOG_TYPE)) 00033 00039 typedef struct Ewl_Dialog Ewl_Dialog; 00040 00045 #define EWL_DIALOG(dialog) ((Ewl_Dialog *) dialog) 00046 00050 struct Ewl_Dialog 00051 { 00052 Ewl_Window window; 00054 Ewl_Widget *box; 00055 Ewl_Widget *vbox; 00056 Ewl_Widget *action_area; 00057 Ewl_Widget *action_box; 00059 Ewl_Widget *separator; 00061 Ewl_Position position; 00062 Ewl_Position active_area; 00063 }; 00064 00065 Ewl_Widget *ewl_dialog_new (void); 00066 int ewl_dialog_init (Ewl_Dialog *dialog); 00067 00068 void ewl_dialog_action_position_set(Ewl_Dialog *d, Ewl_Position pos); 00069 Ewl_Position ewl_dialog_action_position_get(Ewl_Dialog *dialog); 00070 void ewl_dialog_action_fill_policy_set(Ewl_Dialog *d, unsigned int pol); 00071 unsigned int ewl_dialog_action_fill_policy_get(Ewl_Dialog *dialog); 00072 void ewl_dialog_action_alignment_set(Ewl_Dialog *d, unsigned int a); 00073 unsigned int ewl_dialog_action_alignment_get(Ewl_Dialog *dialog); 00074 00075 void ewl_dialog_active_area_set(Ewl_Dialog *d, Ewl_Position pos); 00076 Ewl_Position ewl_dialog_active_area_get(Ewl_Dialog *d); 00077 00078 unsigned int ewl_dialog_has_separator_get(Ewl_Dialog *dialog); 00079 void ewl_dialog_has_separator_set(Ewl_Dialog *dialog, 00080 unsigned int has_sep); 00081 00086 #endif