Atmel Software Framework

wtk_slider.c File Reference

Slider widget implementation.

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

#include <stdint.h>
#include <stdlib.h>
#include <membag.h>
#include <string.h>
#include <wtk.h>

Data Structures

struct  wtk_slider
 Slider control struct. More...
 
enum  wtk_slider_state {
  WTK_SLIDER_NORMAL,
  WTK_SLIDER_MOVING
}
 Valid states for slider, relevant to pointer operations. More...
 
struct win_windowwtk_slider_as_child (struct wtk_slider *slider)
 Get pointer to slider window. 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...
 
bool wtk_slider_is_moving (struct wtk_slider const *slider)
 Get slider status. More...
 
uint8_t wtk_slider_get_value (struct wtk_slider const *slider)
 Get slider value. More...
 
bool wtk_slider_set_value (struct wtk_slider *slider, uint8_t value)
 Set new slider value. More...
 
static bool wtk_slider_handler (struct win_window *win, enum win_event_type type, void const *data)
 Slider event handler. 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)
 Create a new slider widget. More...