Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

The Widget toolkit implements many common widgets for use on a graphical display using the functionality of Window system and Graphics library.

WTK.jpg

The following widgets are implemented:

Dependencies

This component driver depends on the following modules:

Modules

 Basic frame widget
 Basic frame widget provides a frame with only a background color.
 
 Plot widget
 
 Frame widget
 Frame widget provides a frame with border and a title bar.
 
 Progress bar widget
 
 Button widget
 
 Radio button widget
 
 Slider widget
 
 Icon button widget
 
 Check box widget
 
 Label widget
 

Typedefs

typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 
typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 
typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 
typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 
typedef uint16_t wtk_string_size_t
 Datatype holding the length of strings. More...
 

Functions

void wtk_copy_string (char *dest, char const *source)
 This function copies the string contents, including the zero terminator, from source to destination. More...
 
uint8_t wtk_rescale_value (uint8_t value, uint8_t from_scale, uint8_t to_scale)
 Rescale 8-bit value. 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_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_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...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. 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...
 
#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...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. 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...
 
#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_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_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...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. 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...
 
#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...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. 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...
 
#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_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_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...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. 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...
 
#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...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. 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...
 
#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_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_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...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. 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...
 
#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...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. 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...
 
#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_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_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...
 
typedef uint8_t wtk_radio_group_size_t
 Datatype holding reference count for radio button groups. 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...
 
#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...
 
typedef uint8_t wtk_icon_group_size_t
 Datatype holding reference count for icon button groups. More...
 
#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE
 Icon button select mark color. 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...
 

#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of button background (text color when highlighted).

Referenced by wtk_button_handler().

#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of button background (text color when highlighted).

#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of button background (text color when highlighted).

#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of button background (text color when highlighted).

#define WTK_BUTTON_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of button background (text color when highlighted).

#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE

Color of button text (background color when highlighted).

Referenced by wtk_button_handler().

#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE

Color of button text (background color when highlighted).

#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE

Color of button text (background color when highlighted).

#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE

Color of button text (background color when highlighted).

#define WTK_BUTTON_CAPTION_COLOR   GFX_COLOR_WHITE

Color of button text (background color when highlighted).

#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE

Checkbox square background color.

#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE

Checkbox square background color.

#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE

Checkbox square background color.

#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE

Checkbox square background color.

Referenced by wtk_check_box_handler().

#define WTK_CHECKBOX_BACKGROUND_COLOR   GFX_COLOR_WHITE

Checkbox square background color.

#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK

Checkbox square frame color.

#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK

Checkbox square frame color.

#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK

Checkbox square frame color.

#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK

Checkbox square frame color.

Referenced by wtk_check_box_handler().

#define WTK_CHECKBOX_BOX_COLOR   GFX_COLOR_BLACK

Checkbox square frame color.

#define WTK_CHECKBOX_BOX_X   0

Checkbox square X offset.

#define WTK_CHECKBOX_BOX_X   0

Checkbox square X offset.

#define WTK_CHECKBOX_BOX_X   0

Checkbox square X offset.

#define WTK_CHECKBOX_BOX_X   0

Checkbox square X offset.

Referenced by wtk_check_box_handler().

#define WTK_CHECKBOX_BOX_X   0

Checkbox square X offset.

#define WTK_CHECKBOX_BOX_Y   0

Checkbox square Y offset.

#define WTK_CHECKBOX_BOX_Y   0

Checkbox square Y offset.

#define WTK_CHECKBOX_BOX_Y   0

Checkbox square Y offset.

Referenced by wtk_check_box_handler().

#define WTK_CHECKBOX_BOX_Y   0

Checkbox square Y offset.

#define WTK_CHECKBOX_BOX_Y   0

Checkbox square Y offset.

#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK

Checkbox caption text color.

#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK

Checkbox caption text color.

#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK

Checkbox caption text color.

#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK

Checkbox caption text color.

#define WTK_CHECKBOX_CAPTION_COLOR   GFX_COLOR_BLACK

Checkbox caption text color.

Referenced by wtk_check_box_handler().

#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)

Checkbox caption text X offset.

#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)

Checkbox caption text X offset.

#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)

Checkbox caption text X offset.

Referenced by wtk_check_box_handler(), and wtk_check_box_size_hint().

#define WTK_CHECKBOX_CAPTION_X   (WTK_CHECKBOX_BOX_SIZE + 4)

Checkbox caption text X 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_CAPTION_Y   0

Checkbox caption text Y offset.

#define WTK_CHECKBOX_CAPTION_Y   0

Checkbox caption text Y offset.

Referenced by wtk_check_box_handler(), and wtk_check_box_size_hint().

#define WTK_CHECKBOX_CAPTION_Y   0

Checkbox caption text Y offset.

#define WTK_CHECKBOX_CAPTION_Y   0

Checkbox caption text Y offset.

#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED

Checkbox square select mark color.

#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED

Checkbox square select mark color.

#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED

Checkbox square select mark color.

#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED

Checkbox square select mark color.

#define WTK_CHECKBOX_SELECT_COLOR   GFX_COLOR_DK_RED

Checkbox square select mark color.

Referenced by wtk_check_box_handler().

#define WTK_DRAG_HANDLE_RADIUS   4

Radius of drag origin and target handles.

#define WTK_DRAG_HANDLE_RADIUS   4

Radius of drag origin and target handles.

#define WTK_DRAG_HANDLE_RADIUS   4

Radius of drag origin and target handles.

Referenced by wtk_continue_drag(), wtk_start_drag(), and wtk_stop_drag().

#define WTK_DRAG_HANDLE_RADIUS   4

Radius of drag origin and target handles.

#define WTK_DRAG_HANDLE_RADIUS   4

Radius of drag origin and target handles.

#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED

Drag origin handle color.

#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED

Drag origin handle color.

#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED

Drag origin handle color.

Referenced by wtk_start_drag().

#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED

Drag origin handle color.

#define WTK_DRAG_ORIGIN_COLOR   GFX_COLOR_RED

Drag origin handle color.

#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)

Pixmap pixel count for storing drag handle background graphics.

#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)

Pixmap pixel count for storing drag handle background graphics.

#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)

Pixmap pixel count for storing drag handle background graphics.

Referenced by wtk_continue_drag(), wtk_start_drag(), and wtk_stop_drag().

#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)

Pixmap pixel count for storing drag handle background graphics.

#define WTK_DRAG_PIXMAP_SIZE   (WTK_DRAG_HANDLE_RADIUS * 2 + 1)

Pixmap pixel count for storing drag handle background graphics.

#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN

Drag target handle color.

#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN

Drag target handle color.

Referenced by wtk_continue_drag(), and wtk_start_drag().

#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN

Drag target handle color.

#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN

Drag target handle color.

#define WTK_DRAG_TARGET_COLOR   GFX_COLOR_GREEN

Drag target handle color.

#define WTK_DRAG_THRESHOLD   4

Distance from origin before dragging operation kicks in.

#define WTK_DRAG_THRESHOLD   4

Distance from origin before dragging operation kicks in.

Referenced by wtk_is_drag_threshold_exceeded().

#define WTK_DRAG_THRESHOLD   4

Distance from origin before dragging operation kicks in.

#define WTK_DRAG_THRESHOLD   4

Distance from origin before dragging operation kicks in.

#define WTK_DRAG_THRESHOLD   4

Distance from origin before dragging operation kicks in.

#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY

Background color of frame contents window.

#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY

Background color of frame contents window.

#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY

Background color of frame contents window.

#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY

Background color of frame contents window.

#define WTK_FRAME_BACKGROUND_COLOR   GFX_COLOR_GRAY

Background color of frame contents window.

#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)

Frame border color.

#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)

Frame border color.

Referenced by wtk_frame_handler().

#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)

Frame border color.

#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)

Frame border color.

#define WTK_FRAME_BORDER_COLOR   GFX_COLOR(240, 240, 240)

Frame border color.

#define WTK_FRAME_BOTTOMBORDER   4

Bottom frame border size.

#define WTK_FRAME_BOTTOMBORDER   4

Bottom frame border size.

#define WTK_FRAME_BOTTOMBORDER   4

Bottom frame border size.

Referenced by wtk_frame_handler(), and wtk_resize_frame().

#define WTK_FRAME_BOTTOMBORDER   4

Bottom frame border size.

#define WTK_FRAME_BOTTOMBORDER   4

Bottom frame border size.

#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE

Caption text foreground color.

#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE

Caption text foreground color.

#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE

Caption text foreground color.

#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE

Caption text foreground color.

#define WTK_FRAME_CAPTION_COLOR   GFX_COLOR_WHITE

Caption text foreground color.

Referenced by wtk_frame_handler().

#define WTK_FRAME_CAPTION_X   3

Caption text X offset inside title bar.

Referenced by wtk_frame_handler().

#define WTK_FRAME_CAPTION_X   3

Caption text X offset inside title bar.

#define WTK_FRAME_CAPTION_X   3

Caption text X offset inside title bar.

#define WTK_FRAME_CAPTION_X   3

Caption text X offset inside title bar.

#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_CAPTION_Y   1

Caption text Y offset inside title bar.

Referenced by wtk_frame_handler().

#define WTK_FRAME_CAPTION_Y   1

Caption text Y offset inside title bar.

#define WTK_FRAME_CAPTION_Y   1

Caption text Y offset inside title bar.

#define WTK_FRAME_CAPTION_Y   1

Caption text Y offset inside title bar.

#define WTK_FRAME_MIN_HEIGHT   (WTK_FRAME_RESIZE_HEIGHT - WTK_FRAME_BOTTOMBORDER)

Minimum height 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.

Referenced by wtk_resize_frame().

#define WTK_FRAME_MIN_HEIGHT   (WTK_FRAME_RESIZE_HEIGHT - WTK_FRAME_BOTTOMBORDER)

Minimum height 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_MIN_HEIGHT   (WTK_FRAME_RESIZE_HEIGHT - WTK_FRAME_BOTTOMBORDER)

Minimum height of contents window of a frame.

#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)

Minimum width of contents window of a frame.

#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)

Minimum width of contents window of a frame.

#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)

Minimum width of contents window of a frame.

#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)

Minimum width of contents window of a frame.

Referenced by wtk_resize_frame().

#define WTK_FRAME_MIN_WIDTH   (WTK_FRAME_RESIZE_WIDTH - WTK_FRAME_RIGHTBORDER)

Minimum width of contents window of a frame.

#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)

Resize handle color.

#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)

Resize handle color.

Referenced by wtk_frame_handler().

#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)

Resize handle color.

#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)

Resize handle color.

#define WTK_FRAME_RESIZE_COLOR   GFX_COLOR(64, 192, 192)

Resize handle color.

#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)

Height of resize handle.

#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)

Height of resize handle.

#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)

Height of resize handle.

#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)

Height of resize handle.

Referenced by wtk_frame_create(), and wtk_resize_frame().

#define WTK_FRAME_RESIZE_HEIGHT   (WTK_FRAME_RESIZE_RADIUS + 1)

Height of resize handle.

#define WTK_FRAME_RESIZE_RADIUS   7

Radius of resize handle (second quadrant of circle).

Referenced by wtk_frame_handler().

#define WTK_FRAME_RESIZE_RADIUS   7

Radius of resize handle (second quadrant of circle).

#define WTK_FRAME_RESIZE_RADIUS   7

Radius of resize handle (second quadrant of circle).

#define WTK_FRAME_RESIZE_RADIUS   7

Radius of resize handle (second quadrant of circle).

#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_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)

Width of resize handle.

Referenced by wtk_frame_create(), and wtk_resize_frame().

#define WTK_FRAME_RESIZE_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)

Width of resize handle.

#define WTK_FRAME_RESIZE_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)

Width of resize handle.

#define WTK_FRAME_RESIZE_WIDTH   (WTK_FRAME_RESIZE_RADIUS + 1)

Width of resize handle.

#define WTK_FRAME_RIGHTBORDER   2

Right frame border size.

#define WTK_FRAME_RIGHTBORDER   2

Right frame border size.

Referenced by wtk_frame_handler(), and wtk_resize_frame().

#define WTK_FRAME_RIGHTBORDER   2

Right frame border size.

#define WTK_FRAME_RIGHTBORDER   2

Right frame border size.

#define WTK_FRAME_RIGHTBORDER   2

Right frame border size.

#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)

Background color of frame title bar.

#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)

Background color of frame title bar.

#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)

Background color of frame title bar.

Referenced by wtk_frame_handler().

#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)

Background color of frame title bar.

#define WTK_FRAME_TITLEBAR_COLOR   GFX_COLOR(128, 128, 255)

Background color of frame title bar.

#define WTK_FRAME_TITLEBAR_HEIGHT   9

Height of titlebar area.

Referenced by wtk_frame_create(), wtk_frame_handler(), and wtk_resize_frame().

#define WTK_FRAME_TITLEBAR_HEIGHT   9

Height of titlebar area.

#define WTK_FRAME_TITLEBAR_HEIGHT   9

Height of titlebar area.

#define WTK_FRAME_TITLEBAR_HEIGHT   9

Height of titlebar area.

#define WTK_FRAME_TITLEBAR_HEIGHT   9

Height of titlebar area.

#define WTK_FRAME_TOPBORDER   2

Top frame border size.

Referenced by wtk_frame_create(), wtk_frame_handler(), and wtk_resize_frame().

#define WTK_FRAME_TOPBORDER   2

Top frame border size.

#define WTK_FRAME_TOPBORDER   2

Top frame border size.

#define WTK_FRAME_TOPBORDER   2

Top frame border size.

#define WTK_FRAME_TOPBORDER   2

Top frame border size.

#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE

Icon button select mark color.

#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE

Icon button select mark color.

Referenced by wtk_icon_button_handler().

#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE

Icon button select mark color.

#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE

Icon button select mark color.

#define WTK_ICONBUTTON_SELECT_COLOR   GFX_COLOR_BLUE

Icon button select mark color.

#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK

Color of the plot's frame border.

#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK

Color of the plot's frame border.

#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK

Color of the plot's frame border.

Referenced by wtk_plot_handler().

#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK

Color of the plot's frame border.

#define WTK_PLOT_BORDER_COLOR   GFX_COLOR_BLACK

Color of the plot's frame border.

#define WTK_PLOT_SCALE_FACTOR   128

Scale factor for fixed-point calculation.

#define WTK_PLOT_SCALE_FACTOR   128

Scale factor for fixed-point calculation.

#define WTK_PLOT_SCALE_FACTOR   128

Scale factor for fixed-point calculation.

#define WTK_PLOT_SCALE_FACTOR   128

Scale factor for fixed-point calculation.

#define WTK_PLOT_SCALE_FACTOR   128

Scale factor for fixed-point calculation.

Referenced by wtk_plot_create(), and wtk_plot_draw().

#define WTK_PLOT_TICK_MARKER_LENGTH   5

The length of the tick marker.

#define WTK_PLOT_TICK_MARKER_LENGTH   5

The length of the tick marker.

#define WTK_PLOT_TICK_MARKER_LENGTH   5

The length of the tick marker.

#define WTK_PLOT_TICK_MARKER_LENGTH   5

The length of the tick marker.

Referenced by wtk_plot_grid_draw().

#define WTK_PLOT_TICK_MARKER_LENGTH   5

The length of the tick marker.

#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE

Radio button circle background color.

#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE

Radio button circle background color.

#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE

Radio button circle background color.

#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE

Radio button circle background color.

Referenced by wtk_radio_button_handler().

#define WTK_RADIOBUTTON_BACKGROUND_COLOR   GFX_COLOR_WHITE

Radio button circle background color.

#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK

Radio button circle color.

#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK

Radio button circle color.

#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK

Radio button circle color.

#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK

Radio button circle color.

#define WTK_RADIOBUTTON_BUTTON_COLOR   GFX_COLOR_BLACK

Radio button circle color.

Referenced by wtk_radio_button_handler().

#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center X offset.

#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center X offset.

Referenced by wtk_radio_button_handler().

#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center X offset.

#define WTK_RADIOBUTTON_BUTTON_X   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center X offset.

#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_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center Y offset.

#define WTK_RADIOBUTTON_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center Y offset.

#define WTK_RADIOBUTTON_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center Y offset.

Referenced by wtk_radio_button_handler(), and wtk_radio_button_size_hint().

#define WTK_RADIOBUTTON_BUTTON_Y   (WTK_RADIOBUTTON_RADIUS)

Radio button circle center Y offset.

#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK

Radio button caption text color.

#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK

Radio button caption text color.

#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK

Radio button caption text color.

#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK

Radio button caption text color.

Referenced by wtk_radio_button_handler().

#define WTK_RADIOBUTTON_CAPTION_COLOR   GFX_COLOR_BLACK

Radio button caption text color.

#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)

Radio button caption text X offset.

Referenced by wtk_radio_button_handler(), and wtk_radio_button_size_hint().

#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)

Radio button caption text X offset.

#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)

Radio button caption text X offset.

#define WTK_RADIOBUTTON_CAPTION_X   ((WTK_RADIOBUTTON_RADIUS * 2) + 4)

Radio button caption text X 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.

Referenced by wtk_radio_button_handler(), and wtk_radio_button_size_hint().

#define WTK_RADIOBUTTON_CAPTION_Y   0

Radio button caption text Y offset.

#define WTK_RADIOBUTTON_CAPTION_Y   0

Radio button caption text Y offset.

#define WTK_RADIOBUTTON_CAPTION_Y   0

Radio button caption text Y offset.

#define WTK_RADIOBUTTON_CAPTION_Y   0

Radio button caption text Y offset.

#define WTK_RADIOBUTTON_RADIUS   6

Radius of radio button circle.

Referenced by wtk_radio_button_handler(), and wtk_radio_button_size_hint().

#define WTK_RADIOBUTTON_RADIUS   6

Radius of radio button circle.

#define WTK_RADIOBUTTON_RADIUS   6

Radius of radio button circle.

#define WTK_RADIOBUTTON_RADIUS   6

Radius of radio button circle.

#define WTK_RADIOBUTTON_RADIUS   6

Radius of radio button circle.

#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED

Radio button select mark color.

#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED

Radio button select mark color.

Referenced by wtk_radio_button_handler().

#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED

Radio button select mark color.

#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED

Radio button select mark color.

#define WTK_RADIOBUTTON_SELECT_COLOR   GFX_COLOR_DK_RED

Radio button select mark color.

#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of the slider's background.

#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of the slider's background.

#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of the slider's background.

Referenced by wtk_slider_handler().

#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of the slider's background.

#define WTK_SLIDER_BACKGROUND_COLOR   GFX_COLOR_GRAY

Color of the slider's background.

#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK

Color of all the slider's borders.

#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK

Color of all the slider's borders.

Referenced by wtk_slider_handler().

#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK

Color of all the slider's borders.

#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK

Color of all the slider's borders.

#define WTK_SLIDER_BORDER_COLOR   GFX_COLOR_BLACK

Color of all the slider's borders.

#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE

Color of the slider knob when moving.

#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE

Color of the slider knob when moving.

Referenced by wtk_slider_handler().

#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE

Color of the slider knob when moving.

#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE

Color of the slider knob when moving.

#define WTK_SLIDER_KNOB_COLOR_MOVING   GFX_COLOR_WHITE

Color of the slider knob when moving.

#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED

Color of the slider knob when normal.

#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED

Color of the slider knob when normal.

#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED

Color of the slider knob when normal.

Referenced by wtk_slider_handler().

#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED

Color of the slider knob when normal.

#define WTK_SLIDER_KNOB_COLOR_NORMAL   GFX_COLOR_RED

Color of the slider knob when normal.

#define WTK_SLIDER_KNOB_WIDTH   10

Width of the slider knob, including borders, in pixels.

#define WTK_SLIDER_KNOB_WIDTH   10

Width of the slider knob, including borders, in pixels.

Referenced by wtk_slider_create(), wtk_slider_handler(), and wtk_slider_set_value().

#define WTK_SLIDER_KNOB_WIDTH   10

Width of the slider knob, including borders, in pixels.

#define WTK_SLIDER_KNOB_WIDTH   10

Width of the slider knob, including borders, in pixels.

#define WTK_SLIDER_KNOB_WIDTH   10

Width of the slider knob, including borders, in pixels.

typedef uint8_t wtk_icon_group_size_t

Datatype holding reference count for icon button groups.

typedef uint8_t wtk_icon_group_size_t

Datatype holding reference count for icon button groups.

typedef uint8_t wtk_icon_group_size_t

Datatype holding reference count for icon button groups.

typedef uint8_t wtk_icon_group_size_t

Datatype holding reference count for icon button groups.

typedef uint8_t wtk_icon_group_size_t

Datatype holding reference count for icon button groups.

typedef uint8_t wtk_radio_group_size_t

Datatype holding reference count for radio button groups.

typedef uint8_t wtk_radio_group_size_t

Datatype holding reference count for radio button groups.

typedef uint8_t wtk_radio_group_size_t

Datatype holding reference count for radio button groups.

typedef uint8_t wtk_radio_group_size_t

Datatype holding reference count for radio button groups.

typedef uint8_t wtk_radio_group_size_t

Datatype holding reference count for radio button groups.

typedef uint16_t wtk_string_size_t

Datatype holding the length of strings.

typedef uint16_t wtk_string_size_t

Datatype holding the length of strings.

typedef uint16_t wtk_string_size_t

Datatype holding the length of strings.

typedef uint16_t wtk_string_size_t

Datatype holding the length of strings.

typedef uint16_t wtk_string_size_t

Datatype holding the length of strings.

void wtk_copy_string ( char *  dest,
char const *  source 
)

This function copies the string contents, including the zero terminator, from source to destination.

The caller is responsible for providing memory for the destination string, either on the stack, static, or dynamically allocated.

Parameters
destDestination string.
sourceSource string, zero terminated.

References Assert.

Referenced by wtk_button_create(), wtk_check_box_create(), wtk_frame_create(), wtk_label_change(), wtk_label_create(), and wtk_radio_button_create().

uint8_t wtk_rescale_value ( uint8_t  value,
uint8_t  from_scale,
uint8_t  to_scale 
)

Rescale 8-bit value.

This function is used by, e.g., the slider widget for computing the slider knob position from a given value and vice versa. It returns a value with the same data width as the input, meaning value cannot exceed from_scale, or overflows will occur.

The formula is:

new_value = (value / from_scale) * to_scale
Parameters
valueValue to rescale.
from_scaleMaximum of old scale for value.
to_scaleMaximum of scale for new value.
Returns
Rescaled 8-bit value.

References Assert.

Referenced by wtk_plot_add_value(), wtk_plot_set_grid(), wtk_progress_bar_create(), wtk_progress_bar_set_value(), wtk_slider_create(), wtk_slider_handler(), and wtk_slider_set_value().