Atmel Software Framework

wtk_label.c File Reference

Label 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_label
 This is the label control struct. More...
 

Functions

struct win_windowwtk_label_as_child (struct wtk_label *label)
 This function returns a reference to the window that should be used when managing the widget, such as move, resize, destroy and reparenting. More...
 
bool wtk_label_change (struct wtk_label *label, const char *caption)
 Set new caption for label, return false if out of mem. More...
 
static bool wtk_label_handler (struct win_window *win, enum win_event_type type, void const *data)
 This function is the window event handler for label widgets. More...
 
void wtk_label_size_hint (struct win_point *size, const char *caption)
 Get minimum widget size. More...
 
struct wtk_labelwtk_label_create (struct win_window *parent, struct win_area const *area, char const *caption, gfx_color_t text_color, struct gfx_bitmap *background, bool align_right)
 This function creates a new label widget. More...