Microchip® Advanced Software Framework

services/wtk/training/conf_wtk.h File Reference

Configurations for Widget Toolkit library.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define WTK_FRAME_LEFTBORDER   2
 Left frame border size. More...
 
#define WTK_FRAME_RIGHTBORDER   2
 Right frame border size. More...
 
#define WTK_FRAME_TOPBORDER   2
 Top frame border size. More...
 
#define WTK_FRAME_BOTTOMBORDER   4
 Bottom frame border size. More...
 
#define WTK_FRAME_RESIZE_RADIUS   7
 Radius of resize handle (second quadrant of circle). More...
 
#define WTK_FRAME_RESIZE_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)
 Width of resize handle. More...
 
#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)
 Height of resize handle. More...
 
#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)
 Minimum width of contents window of a frame. More...
 
#define WTK_FRAME_MIN_HEIGHT   (WTK_FRAME_RESIZE_HEIGHT - WTK_FRAME_BOTTOMBORDER)
 Minimum height of contents window of a frame. More...
 
#define WTK_FRAME_TITLEBAR_HEIGHT   9
 Height of titlebar area. More...
 
#define WTK_FRAME_CAPTION_X   3
 Caption text X offset inside title bar. More...
 
#define WTK_FRAME_CAPTION_Y   1
 Caption text Y offset inside title bar. More...
 
#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY
 Background color of frame contents window. More...
 
#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)
 Frame border color. More...
 
#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)
 Background color of frame title bar. More...
 
#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE
 Caption text foreground color. More...
 
#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)
 Resize handle color. More...
 
#define WTK_DRAG_THRESHOLD   4
 Distance from origin before dragging operation kicks in. More...
 
#define WTK_DRAG_HANDLE_RADIUS   4
 Radius of drag origin and target handles. More...
 
#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)
 Pixmap pixel count for storing drag handle background graphics. More...
 
#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED
 Drag origin handle color. More...
 
#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN
 Drag target handle color. More...
 
#define WTK_BUTTON_BORDER_COLOR   GFX_COLOR_BLACK
 Button border color. More...
 
#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY
 Color of button background (text color when highlighted). More...
 
#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE
 Color of button text (background color when highlighted). More...
 
#define WTK_CHECKBOX_BOX_SIZE   12
 Size of checkbox square. More...
 
#define WTK_CHECKBOX_BOX_X   0
 Checkbox square X offset. More...
 
#define WTK_CHECKBOX_BOX_Y   0
 Checkbox square Y offset. More...
 
#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)
 Checkbox caption text X offset. More...
 
#define WTK_CHECKBOX_CAPTION_Y   0
 Checkbox caption text Y offset. More...
 
#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK
 Checkbox square frame color. More...
 
#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE
 Checkbox square background color. More...
 
#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED
 Checkbox square select mark color. More...
 
#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK
 Checkbox caption text color. More...
 
#define WTK_SLIDER_PARENT_MOVE_SUPPORT   false
 Move support for sliders. More...
 
#define WTK_SLIDER_KNOB_WIDTH   10
 Width of the slider knob, including borders, in pixels. More...
 
#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK
 Color of all the slider's borders. More...
 
#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY
 Color of the slider's background. More...
 
#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED
 Color of the slider knob when normal. More...
 
#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE
 Color of the slider knob when moving. More...
 
#define WTK_PROGRESS_BAR_BORDER_COLOR   GFX_COLOR_BLACK
 Color of the progress bar's frame border. More...
 
#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK
 Color of the plot's frame border. More...
 
#define WTK_PLOT_SCALE_FACTOR   128
 Scale factor for fixed-point calculation. More...
 
#define WTK_PLOT_TICK_MARKER_LENGTH   5
 The length of the tick marker. More...
 

Typedefs

typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 
#define WTK_RADIOBUTTON_RADIUS   6
 Radius of radio button circle. More...
 
#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)
 Radio button circle center X offset. More...
 
#define WTK_RADIOBUTTON_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)
 Radio button circle center Y offset. More...
 
#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)
 Radio button caption text X offset. More...
 
#define WTK_RADIOBUTTON_CAPTION_Y   0
 Radio button caption text Y offset. More...
 
#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK
 Radio button circle color. More...
 
#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE
 Radio button circle background color. More...
 
#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED
 Radio button select mark color. More...
 
#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK
 Radio button caption text color. More...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. More...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...