lib/ewl_button.c File Reference
#include "ewl_base.h"
#include "ewl_button.h"
#include "ewl_image.h"
#include "ewl_label.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"
Include dependency graph for ewl_button.c:

Functions | |
| unsigned int | ewl_button_alignment_get (Ewl_Button *b) |
| Gets the alignment of the contents of the button. | |
| void | ewl_button_alignment_set (Ewl_Button *b, unsigned int align) |
| Set the alignment of the contents of the button. | |
| void | ewl_button_cb_key_down (Ewl_Widget *w, void *ev, void *data __UNUSED__) |
| unsigned int | ewl_button_fill_policy_get (Ewl_Button *b) |
| Retrieves the curernt file policy set on the button. | |
| void | ewl_button_fill_policy_set (Ewl_Button *b, unsigned int fill) |
| Set the fill policy of the contents of the button. | |
| const char * | ewl_button_image_get (Ewl_Button *b) |
| Get the image file used by the button. | |
| void | ewl_button_image_set (Ewl_Button *b, const char *file, const char *key) |
Set the image file file and the image key key to use. | |
| void | ewl_button_image_size_get (Ewl_Button *b, int *width, int *height) |
| Get the size of the image inside the button. | |
| void | ewl_button_image_size_set (Ewl_Button *b, int width, int height) |
| Set the size of the image inside the button. | |
| int | ewl_button_init (Ewl_Button *b) |
| Initialize a button to starting values. | |
| const char * | ewl_button_label_get (Ewl_Button *b) |
| Retrieve the label of the specified button. | |
| void | ewl_button_label_set (Ewl_Button *b, const char *l) |
| Change the label of the specified button. | |
| Ewl_Widget * | ewl_button_new (void) |
| Allocate and initialize a new button. | |
Function Documentation
| void ewl_button_cb_key_down | ( | Ewl_Widget * | w, | |
| void * | ev, | |||
| void *data | __UNUSED__ | |||
| ) |
References Ewl_Event_Mouse_Up::base, Ewl_Event_Mouse_Up::button, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_BUTTON_TYPE, ewl_callback_call_with_event_data(), EWL_CALLBACK_CLICKED, Ewl_Event_Key::keyname, Ewl_Event_Mouse::modifiers, Ewl_Event_Mouse::x, and Ewl_Event_Mouse::y.
Referenced by ewl_button_init().