Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_combobox_entry.h File Reference


Detailed Description


Data Structures

struct  Etk_Combobox_Entry_Item
 [Widget] A combobox_entry's item made up of a button that shows a popup-menu when it is clicked, allowing the user to choose an item from a list More...
struct  Etk_Combobox_Entry
 [Widget] A combobox_entry is a widget More...

Defines

#define ETK_COMBOBOX_ENTRY_TYPE   (etk_combobox_entry_type_get())
#define ETK_COMBOBOX_ENTRY(obj)   (ETK_OBJECT_CAST((obj), ETK_COMBOBOX_ENTRY_TYPE, Etk_Combobox_Entry))
#define ETK_IS_COMBOBOX_ENTRY(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_COMBOBOX_ENTRY_TYPE))
#define ETK_COMBOBOX_ENTRY_ITEM_TYPE   (etk_combobox_entry_item_type_get())
#define ETK_COMBOBOX_ENTRY_ITEM(obj)   (ETK_OBJECT_CAST((obj), ETK_COMBOBOX_ENTRY_ITEM_TYPE, Etk_Combobox_Entry_Item))
#define ETK_IS_COMBOBOX_ENTRY_ITEM(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_COMBOBOX_ENTRY_ITEM_TYPE))

Enumerations

enum  Etk_Combobox_Entry_Column_Type {
  ETK_COMBOBOX_ENTRY_LABEL,
  ETK_COMBOBOX_ENTRY_IMAGE,
  ETK_COMBOBOX_ENTRY_OTHER
}
 The different types of widgets that can be contained by a combobox_entry's column. More...
enum  Etk_Combobox_Entry_Fill_Policy
 Indicates how a widget of a combobox_entry-column should fill and expand. More...

Functions

Etk_Widget * etk_combobox_entry_new (void)
 Creates a new combobox_entry, with no column.
Etk_Widget * etk_combobox_entry_new_default (void)
 Creates a new combobox_entry, made up of a unique column containing a label, and already built (no need to call etk_combobox_entry_build()).
Etk_Widget * etk_combobox_entry_entry_get (Etk_Combobox_Entry *combobox_entry)
 Gets the combobox_entry's entry widget.
void etk_combobox_entry_items_height_set (Etk_Combobox_Entry *combobox_entry, int items_height)
 Set the height of the combobox_entry's items. The default height is 24, the minimum is 12.
int etk_combobox_entry_items_height_get (Etk_Combobox_Entry *combobox_entry)
 Gets the height of the combobox_entry's items.
void etk_combobox_entry_column_add (Etk_Combobox_Entry *combobox_entry, Etk_Combobox_Entry_Column_Type col_type, int width, Etk_Combobox_Entry_Fill_Policy fill_policy, float align)
 Adds a column to the combobox_entry. The combobox_entry should not be already be built.
void etk_combobox_entry_build (Etk_Combobox_Entry *combobox_entry)
 Builds the combobox_entry: you have to build a combobox_entry after you have added all the columns to it and before you start adding items. Items can not be added if the combobox_entry is not built.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_prepend (Etk_Combobox_Entry *combobox_entry,...)
 Inserts a new item at the start of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_prepend_empty (Etk_Combobox_Entry *combobox_entry)
 Inserts a new empty item at the start of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_append (Etk_Combobox_Entry *combobox_entry,...)
 Inserts a new item at the end of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_append_empty (Etk_Combobox_Entry *combobox_entry)
 Inserts a new empty item at the end of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_insert (Etk_Combobox_Entry *combobox_entry, Etk_Combobox_Entry_Item *after,...)
 Inserts a new item after an existing item of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_insert_empty (Etk_Combobox_Entry *combobox_entry, Etk_Combobox_Entry_Item *after)
 Inserts a new empty item after an existing item of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_insert_valist (Etk_Combobox_Entry *combobox_entry, Etk_Combobox_Entry_Item *after, va_list args)
 Inserts a new item after an existing item of the combobox_entry.
void etk_combobox_entry_item_remove (Etk_Combobox_Entry_Item *item)
 Removes an item from the combobox_entry. The item will be freed and should not be used anymore.
void etk_combobox_entry_clear (Etk_Combobox_Entry *combobox_entry)
 Removes all the items of the combobox_entry. All the items will be freed and should not be used anymore.
void etk_combobox_entry_item_fields_set (Etk_Combobox_Entry_Item *item,...)
 Sets the values of the cells of the combobox_entry item.
void etk_combobox_entry_item_fields_set_valist (Etk_Combobox_Entry_Item *item, va_list args)
 Sets the values of the cells of the combobox_entry item. The current widgets of item will be destroyed.
void etk_combobox_entry_item_field_set (Etk_Combobox_Entry_Item *item, int column, void *value)
 Sets the value of the cell of one column of the combobox_entry item. The current widgets of item will be destroyed.
void etk_combobox_entry_item_fields_get (Etk_Combobox_Entry_Item *item,...)
 Gets the values of the cells of the combobox_entry item.
void etk_combobox_entry_item_fields_get_valist (Etk_Combobox_Entry_Item *item, va_list args)
 Gets the values of the cells of the combobox_entry item.
void * etk_combobox_entry_item_field_get (Etk_Combobox_Entry_Item *item, int column)
 Gets the value of the cell of a column of the combobox_entry item.
void etk_combobox_entry_item_data_set (Etk_Combobox_Entry_Item *item, void *data)
 Sets the data associated to the combobox_entry item.
void etk_combobox_entry_item_data_set_full (Etk_Combobox_Entry_Item *item, void *data, void(*free_cb)(void *data))
 Sets the data associated to the combobox_entry item.
void * etk_combobox_entry_item_data_get (Etk_Combobox_Entry_Item *item)
 Gets the data associated to the combobox_entry item.
void etk_combobox_entry_active_item_set (Etk_Combobox_Entry *combobox_entry, Etk_Combobox_Entry_Item *item)
 Sets the active item of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_active_item_get (Etk_Combobox_Entry *combobox_entry)
 Gets the active item of the combobox_entry.
int etk_combobox_entry_active_item_num_get (Etk_Combobox_Entry *combobox_entry)
 Gets the index of the current active item of the combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_first_item_get (Etk_Combobox_Entry *combobox_entry)
 Gets the first item of a combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_last_item_get (Etk_Combobox_Entry *combobox_entry)
 Gets the last item of a combobox_entry.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_prev_get (Etk_Combobox_Entry_Item *item)
 Gets the item previous to the given combobox_entry item.
Etk_Combobox_Entry_Item * etk_combobox_entry_item_next_get (Etk_Combobox_Entry_Item *item)
 Gets the item next to the given combobox_entry item.
Etk_Combobox_Entry_Item * etk_combobox_entry_nth_item_get (Etk_Combobox_Entry *combobox_entry, int index)
 Gets the nth item of the combobox_entry.
Etk_Combobox_Entry * etk_combobox_entry_item_combobox_entry_get (Etk_Combobox_Entry_Item *item)
 Gets the combobox_entry containing the given item.
Etk_Bool etk_combobox_entry_is_popped_up (Etk_Combobox_Entry *combobox_entry)
 Checks if the combobox_entry is open / popped up.
void etk_combobox_entry_pop_up (Etk_Combobox_Entry *combobox_entry)
 Pops up the combobox's menu / window.
void etk_combobox_entry_pop_down (Etk_Combobox_Entry *combobox_entry)
 Pops down the combobox's menu / window.