Atmel Software Framework

wtk_slider.h File Reference

Graphical Widget toolkit.

Copyright (c) 2012 Atmel Corporation. All rights reserved.

Macros

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. More...
 
#define WTK_SLIDER_CMD_MOVE   (1 << 0)
 Issue command event whenever slider value is updated. More...
 
#define WTK_SLIDER_CMD_RELEASE   (1 << 1)
 Issue command event whenever slider is released. More...
 
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. More...
 
#define WTK_SLIDER_VERTICAL   (1 << 2)
 Slider is vertically oriented. More...
 
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. More...
 

Functions

struct win_windowwtk_slider_as_child (struct wtk_slider *slider)
 Get pointer to slider window. More...
 
struct wtk_sliderwtk_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. More...
 
win_command_t wtk_slider_get_command (struct wtk_slider *slider)
 This function returns the window command of the specified slider, as set when the widget was created. More...
 
uint8_t wtk_slider_get_value (struct wtk_slider const *slider)
 Get slider value. More...
 
bool wtk_slider_is_moving (struct wtk_slider const *slider)
 Get slider status. More...
 
bool wtk_slider_set_value (struct wtk_slider *slider, uint8_t value)
 Set new slider value. More...