Atmel Software Framework

wtk_button.c File Reference

Button 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_button
 This is the button control struct. More...
enum  wtk_button_state {
 Valid states for button, relevant to pointer and keyboard operations. More...
struct win_windowwtk_button_as_child (struct wtk_button *button)
 This function returns a reference to the window that should be used when managing the widget, such as move, resize, destroy and reparenting. More...
win_command_t wtk_button_get_command (struct wtk_button *button)
 This function returns the window command of the specified button, as set when the widget was created. More...
static bool wtk_button_handler (struct win_window *win, enum win_event_type type, void const *data)
 This function is the window event handler for button widgets. More...
void wtk_button_size_hint (struct win_point *size, const char *caption)
 Get minimum widget size. More...
struct wtk_buttonwtk_button_create (struct win_window *parent, struct win_area const *area, char const *caption, win_command_t command_data)
 This function creates a new button widget. More...