Graphical Widget toolkit. More...
#include <app/wtk.h>#include <gfx/win.h>#include <gfx/sysfont.h>Go to the source code of this file.
Defines | |
Slider widget command event configuration options. | |
For use with the option parameter of wtk_slider_create | |
| #define | WTK_SLIDER_CMD_NONE (0 << 0) |
| Never issue command events. (Default option). | |
| #define | WTK_SLIDER_CMD_MOVE (1 << 0) |
| Issue command event whenever slider value is updated. | |
| #define | WTK_SLIDER_CMD_RELEASE (1 << 1) |
| Issue command event whenever slider is released. | |
Slider widget orientation configuration options. | |
For use with the option parameter of wtk_slider_create | |
| #define | WTK_SLIDER_HORIZONTAL (0 << 0) |
| Slider is horizontally oriented. (Default option). | |
| #define | WTK_SLIDER_VERTICAL (1 << 2) |
| Slider is vertically oriented. | |
Slider widget invert configuration options. | |
For use with the option parameter of wtk_slider_create | |
| #define | WTK_SLIDER_INVERT (1 << 3) |
| Slider value is inverted. | |
Progress bar orientation configuration options. | |
For use with the option parameter of wtk_progress_bar_create | |
| #define | WTK_PROGRESS_BAR_HORIZONTAL (0 << 0) |
| Progress bar is horizontally oriented. | |
| #define | WTK_PROGRESS_BAR_VERTICAL (1 << 0) |
| Progress bar is vertically oriented. | |
Progress bar widget invert configuration options. | |
For use with the option parameter of wtk_progress_bar_create | |
| #define | WTK_PROGRESS_BAR_INVERT (1 << 1) |
| Progress bar is inverted. | |
Typedefs | |
| typedef bool(* | wtk_frame_handler_t )(struct wtk_frame *frame, win_command_t command_data) |
| Frame command event handler callback. | |
| typedef bool(* | wtk_basic_frame_command_handler_t )(struct wtk_basic_frame *basic_frame, win_command_t command_data) |
| Basic frame command event handler callback. | |
| typedef void(* | wtk_basic_frame_draw_handler_t )(struct win_window *win, struct win_clip_region const *clip) |
| Basic frame draw event handler callback. | |
Functions | |
| struct wtk_frame * | wtk_frame_create (struct win_window *parent, struct win_area const *area, char const *caption, bool allow_resize, wtk_frame_handler_t frame_handler, void *custom_data) |
| struct win_window * | wtk_frame_as_parent (struct wtk_frame *frame) |
| struct win_window * | wtk_frame_as_child (struct wtk_frame *frame) |
| void * | wtk_frame_get_custom_data (struct wtk_frame const *frame) |
| struct wtk_basic_frame * | wtk_basic_frame_create (struct win_window *parent, const struct win_area *area, struct gfx_bitmap *background, wtk_basic_frame_draw_handler_t draw_handler, wtk_basic_frame_command_handler_t frame_handler, void *custom_data) |
| Create basic frame widget. | |
| struct win_window * | wtk_basic_frame_as_child (struct wtk_basic_frame *basic_frame) |
| Get reference to basic frame window. | |
| void * | wtk_basic_frame_get_custom_data (const struct wtk_basic_frame *basic_frame) |
| Get basic frame custom data. | |
| struct wtk_button * | wtk_button_create (struct win_window *parent, struct win_area const *area, char const *caption, win_command_t command_data) |
| struct win_window * | wtk_button_as_child (struct wtk_button *button) |
| void | wtk_button_size_hint (struct win_point *size, const char *caption) |
| Get minimum widget size. | |
| struct wtk_check_box * | wtk_check_box_create (struct win_window *parent, struct win_area const *area, char const *caption, bool selected, win_command_t command_data) |
| struct win_window * | wtk_check_box_as_child (struct wtk_check_box *check_box) |
| void | wtk_check_box_toggle (struct wtk_check_box *check_box) |
| void | wtk_check_box_set (struct wtk_check_box *check_box, bool selected) |
| bool | wtk_check_box_is_selected (struct wtk_check_box const *check_box) |
| void | wtk_check_box_size_hint (struct win_point *size, const char *caption) |
| Get minimum widget size. | |
| struct wtk_radio_group * | wtk_radio_group_create (void) |
| struct wtk_radio_button * | wtk_radio_button_create (struct win_window *parent, struct win_area const *area, char const *caption, bool selected, struct wtk_radio_group *group, win_command_t command_data) |
| struct win_window * | wtk_radio_button_as_child (struct wtk_radio_button *radio_button) |
| void | wtk_radio_button_select (struct wtk_radio_button *radio_button) |
| bool | wtk_radio_button_is_selected (struct wtk_radio_button const *radio_button) |
| void | wtk_radio_button_size_hint (struct win_point *size, const char *caption) |
| Get minimum widget size. | |
| struct wtk_slider * | wtk_slider_create (struct win_window *parent, struct win_area const *area, uint8_t maximum, uint8_t value, uint8_t option, win_command_t command_data) |
| Create a new slider widget. | |
| struct win_window * | wtk_slider_as_child (struct wtk_slider *slider) |
| Get pointer to slider window. | |
| bool | wtk_slider_is_moving (struct wtk_slider const *slider) |
| Get slider status. | |
| uint8_t | wtk_slider_get_value (struct wtk_slider const *slider) |
| Get slider value. | |
| bool | wtk_slider_set_value (struct wtk_slider *slider, uint8_t value) |
| Set new slider value. | |
| struct wtk_label * | wtk_label_create (struct win_window *parent, struct win_area const *area, char const *caption, bool align_right) |
| struct win_window * | wtk_label_as_child (struct wtk_label *label) |
| bool | wtk_label_change (struct wtk_label *label, const char *caption) |
| Set new caption for label, return false if out of mem. | |
| void | wtk_label_size_hint (struct win_point *size, const char *caption) |
| Get minimum widget size. | |
| struct wtk_progress_bar * | wtk_progress_bar_create (struct win_window *parent, struct win_area const *area, uint8_t maximum, uint8_t value, gfx_color_t fill_color, gfx_color_t background_color, uint8_t option) |
| Create a new progress bar widget. | |
| struct win_window * | wtk_progress_bar_as_child (struct wtk_progress_bar *bar) |
| Get pointer to progress bar window. | |
| uint8_t | wtk_progress_bar_get_value (struct wtk_progress_bar *bar) |
| Get progress bar value. | |
| bool | wtk_progress_bar_set_value (struct wtk_progress_bar *bar, uint8_t value) |
| Set new progress bar value. | |
| void | wtk_progress_bar_set_colors (struct wtk_progress_bar *bar, gfx_color_t color1, gfx_color_t color2) |
| Set new progress bar colors. | |
| uint8_t | wtk_rescale_value (uint8_t value, uint8_t from_scale, uint8_t to_scale) |
| Rescale 8-bit value. | |
| void | wtk_copy_string (char *dest, char const *source) |
| void | wtk_shade_pixel (gfx_color_t *pixel, uint8_t alpha) |
Graphical Widget toolkit.
Copyright (C) 2009 - 2010 Atmel Corporation. All rights reserved.
Definition in file wtk.h.
1.6.3