Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_dialog.h File Reference


Detailed Description


Data Structures

struct  Etk_Dialog
 [Widget] A window with buttons in its bottom area to allow the user to respond to a request More...

Defines

#define ETK_DIALOG_TYPE   (etk_dialog_type_get())
#define ETK_DIALOG(obj)   (ETK_OBJECT_CAST((obj), ETK_DIALOG_TYPE, Etk_Dialog))
#define ETK_IS_DIALOG(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_DIALOG_TYPE))

Enumerations

enum  Etk_Dialog_Response_ID {
  ETK_RESPONSE_NONE = -1,
  ETK_RESPONSE_REJECT = -2,
  ETK_RESPONSE_ACCEPT = -3,
  ETK_RESPONSE_DELETE_EVENT = -4,
  ETK_RESPONSE_OK = -5,
  ETK_RESPONSE_CANCEL = -6,
  ETK_RESPONSE_CLOSE = -7,
  ETK_RESPONSE_YES = -8,
  ETK_RESPONSE_NO = -9,
  ETK_RESPONSE_APPLY = -10,
  ETK_RESPONSE_HELP = -11
}
 Some common response IDs to use with an Etk_Dialog. More...

Functions

Etk_Widget * etk_dialog_new (void)
 Creates a new dialog.
void etk_dialog_pack_in_main_area (Etk_Dialog *dialog, Etk_Widget *widget, Etk_Box_Group group, Etk_Box_Fill_Policy fill_policy, int padding)
 Packs a widget into the dialog's main-area (above the buttons and the separator). The widget will be appended in the main-area's vbox (see etk_box_append()).
void etk_dialog_pack_widget_in_action_area (Etk_Dialog *dialog, Etk_Widget *widget, Etk_Box_Group group, Etk_Box_Fill_Policy fill_policy, int padding)
 Packs a widget into the dialog's action-area (at the bottom of the dialog). The widget will be appended in the action-area's hbox (see etk_box_append()).
void etk_dialog_pack_button_in_action_area (Etk_Dialog *dialog, Etk_Button *button, int response_id, Etk_Box_Group group, Etk_Box_Fill_Policy fill_policy, int padding)
 Packs a pre-created button into the dialog's action-area (at the bottom of the dialog). The button will be appended in the action-area's hbox (see etk_box_append()).
Etk_Widget * etk_dialog_button_add (Etk_Dialog *dialog, const char *label, int response_id)
 Creates and packs a button to the dialog's action-area. The button will be packed in the start-group of the action-area's hbox, and will use the ETK_BOX_FILL fill-policy.
Etk_Widget * etk_dialog_button_add_from_stock (Etk_Dialog *dialog, int stock_id, int response_id)
 Creates and packs a button to the dialog's action-area. The button is created from the given stock-id, will be packed in the start-group of the action-area's hbox, and will use the ETK_BOX_FILL fill-policy.
void etk_dialog_action_area_homogeneous_set (Etk_Dialog *dialog, Etk_Bool homogeneous)
 Sets whether or not the action-area's hbox is homogeneous, i.e whether or not all the widgets of the action-area should have the same size.
Etk_Bool etk_dialog_action_area_homogeneous_get (Etk_Dialog *dialog)
 Gets whether or not the action-area's hbox is homogeneous.
void etk_dialog_action_area_alignment_set (Etk_Dialog *dialog, float align)
 Sets the horizontal alignment of the widget in the dialog's action-area.
float etk_dialog_action_area_alignment_get (Etk_Dialog *dialog)
 Gets the alignment of the widgets in the dialog's action-area.
Etk_Widget * etk_dialog_main_area_vbox_get (Etk_Dialog *dialog)
 Gets the vbox of the dialog's main-area. It might be useful if you want more control on the way the widgets are packed.
Etk_Widget * etk_dialog_action_area_hbox_get (Etk_Dialog *dialog)
 Gets the hbox of the dialog's action-area. It might be useful if you want more control on the way the widgets are packed.
void etk_dialog_button_response_id_set (Etk_Dialog *dialog, Etk_Button *button, int response_id)
 Associates a response-id to the button. This way, when the button will be clicked, the "response" signal of the dialog will be emitted with this response-id. This function might be useful if you pack the button yourself, without using etk_dialog_pack_button_in_action_area() or etk_dialog_button_add().
int etk_dialog_button_response_id_get (Etk_Button *button)
 Gets the response-id associated to the button.
void etk_dialog_has_separator_set (Etk_Dialog *dialog, Etk_Bool has_separator)
 Sets whether or not there is a horizontal separator between the main-area and the action-area of the dialog.
Etk_Bool etk_dialog_has_separator_get (Etk_Dialog *dialog)
 Gets whether or not the horizontal separator of the dialog is visible.