include/gfx/default/wtk.h File Reference

Default configurations for widget toolkit. More...

#include <stdint.h>
#include <gfx/gfx.h>

Go to the source code of this file.

Defines

#define WTK_FRAME_RIGHTBORDER   2
 Left frame border size.
#define WTK_FRAME_TOPBORDER   2
 Top frame border size.
#define WTK_FRAME_BOTTOMBORDER   4
 Bottom frame border size.
#define WTK_FRAME_RESIZE_RADIUS   7
 Radius of resize handle (second quadrant of circle).
#define WTK_FRAME_RESIZE_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)
 Width of resize handle.
#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)
 Height of resize handle.
#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)
 Minimum width of contents window of a frame.
#define WTK_FRAME_MIN_HEIGHT   (WTK_FRAME_RESIZE_HEIGHT - WTK_FRAME_BOTTOMBORDER)
 Minimum height of contents window of a frame.
#define WTK_FRAME_TITLEBAR_HEIGHT   9
 Height of titlebar area.
#define WTK_FRAME_CAPTION_X   3
 Caption text X offset inside title bar.
#define WTK_FRAME_CAPTION_Y   1
 Caption text Y offset inside title bar.
#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR(192, 192, 128)
 Background color of frame contents window.
#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)
 Frame border color.
#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)
 Background color of frame title bar.
#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR(255, 255, 255)
 Caption text foreground color.
#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)
 Resize handle color.
#define WTK_FRAME_SHADESIZE   4
 Size of drop shadow area outside left/bottom/right border. 0 = no shadow.
#define WTK_FRAME_SHADES   { 252, 242, 220, 180 }
 Shade factor of drop shadow, first number is farthest from border.
#define WTK_DRAG_THRESHOLD   4
 Distance from origin before dragging operation kicks in.
#define WTK_DRAG_HANDLE_RADIUS   4
 Radius of drag origin and target handles.
#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)
 Pixmap pixel count for storing drag handle background graphics.
#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR(255, 0, 0)
 Drag origin handle color.
#define WTK_DRAG_TARGET_COLOR   GFX_COLOR(0, 255, 0)
 Drag target handle color.

#define WTK_BUTTON_BORDER_COLOR   GFX_COLOR(0, 0, 0)
 Button border color.
#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR(128, 128, 128)
 Color of button background (text color when highlighted).
#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR(255, 255, 255)
 Color of button text (background color when highlighted).

#define WTK_CHECKBOX_BOX_SIZE   8
 Size of checkbox square.
#define WTK_CHECKBOX_BOX_X   0
 Checkbox square X offset.
#define WTK_CHECKBOX_BOX_Y   0
 Checkbox square Y offset.
#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)
 Checkbox caption text X offset.
#define WTK_CHECKBOX_CAPTION_Y   0
 Checkbox caption text Y offset.
#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR(0, 0, 0)
 Checkbox square frame color.
#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR(128, 0, 0)
 Checkbox square select mark color.
#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR(255, 255, 255)
 Checkbox caption text color.

#define WTK_SLIDER_PARENT_MOVE_SUPPORT   0
 Move support for sliders.
#define WTK_SLIDER_KNOB_WIDTH   10
 Width of the slider knob, including borders, in pixels.
#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR(0, 0, 0)
 Color of all the slider's borders.
#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR(128, 128, 128)
 Color of the slider's background.
#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR(128, 0, 0)
 Color of the slider knob when normal.
#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR(255, 255, 255)
 Color of the slider knob when moving.

#define WTK_STATICTEXT_CAPTION_COLOR   GFX_COLOR(255, 255, 255)
 Static text caption text color.

#define WTK_PROGRESS_BAR_BORDER_COLOR   GFX_COLOR(0, 0, 0)
 Color of the progress bar's frame border.

Typedefs

typedef uint16_t wtk_string_size_t
 Datatype holding size of strings.



#define WTK_RADIOBUTTON_RADIUS   4
 Radius of radio button circle.
#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)
 Radio button circle center X offset.
#define WTK_RADIOBUTTON_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)
 Radio button circle center Y offset.
#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)
 Radio button caption text X offset.
#define WTK_RADIOBUTTON_CAPTION_Y   0
 Radio button caption text Y offset.
#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR(0, 0, 0)
 Radio button circle color.
#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR(128, 0, 0)
 Radio button select mark color.
#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR(255, 255, 255)
 Radio button caption text color.
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups.

Detailed Description

Default configurations for widget toolkit.

Copyright (C) 2009 - 2010 Atmel Corporation. All rights reserved.

Definition in file wtk.h.

Generated on Thu Apr 29 14:09:58 2010 for display-demo by  doxygen 1.6.3