Contiki 2.6

ctk.c File Reference

The Contiki Toolkit CTK, the Contiki GUI. More...

#include <string.h>
#include "contiki.h"
#include "ctk/ctk.h"
#include "ctk/ctk-draw.h"
#include "ctk/ctk-mouse.h"

Go to the source code of this file.

Functions

unsigned char ctk_arch_keyavail (void)
 Checks the key press input queue to see if there are pending keys.
ctk_arch_key_t ctk_arch_getkey (void)
 Retrieves key presses from the VNC client.
void ctk_mode_set (unsigned char m)
 Sets the current CTK mode.
unsigned char ctk_mode_get (void)
 Retrieves the current CTK mode.
void ctk_icon_add (CC_REGISTER_ARG struct ctk_widget *icon, struct process *p)
 Add an icon to the desktop.
void ctk_window_open (CC_REGISTER_ARG struct ctk_window *w)
 Open a window, or bring window to front if already open.
void ctk_window_close (struct ctk_window *w)
 Close a window if it is open.
void ctk_window_clear (struct ctk_window *w)
 Remove all widgets from a window.
void ctk_menu_add (struct ctk_menu *menu)
 Add a menu to the menu bar.
void ctk_menu_remove (struct ctk_menu *menu)
 Remove a menu from the menu bar.
void ctk_window_redraw (struct ctk_window *w)
 Redraw a window.
void ctk_window_new (struct ctk_window *window, unsigned char w, unsigned char h, char *title)
 Create a new window.
void ctk_menu_new (CC_REGISTER_ARG struct ctk_menu *menu, char *title)
 Creates a new menu.
unsigned char ctk_menuitem_add (CC_REGISTER_ARG struct ctk_menu *menu, char *name)
 Adds a menu item to a menu.
void ctk_widget_redraw (struct ctk_widget *widget)
 Redraws a widget.
void CC_FASTCALL ctk_widget_add (CC_REGISTER_ARG struct ctk_window *window, CC_REGISTER_ARG struct ctk_widget *widget)
 Adds a widget to a window.
unsigned char ctk_desktop_width (struct ctk_desktop *d)
 Gets the width of the desktop.
unsigned char ctk_desktop_height (struct ctk_desktop *d)
 Gets the height of the desktop.

Variables

process_event_t ctk_signal_keypress
 Emitted for every key being pressed.
process_event_t ctk_signal_widget_activate
 Emitted when a widget is activated (pressed).
process_event_t ctk_signal_button_activate
 Same as ctk_signal_widget_activate.
process_event_t ctk_signal_widget_select
 Emitted when a widget is selected.
process_event_t ctk_signal_button_hover
 Same as ctk_signal_widget_select.
process_event_t ctk_signal_hyperlink_activate
 Emitted when a hyperlink is activated.
process_event_t ctk_signal_hyperlink_hover
 Same as ctk_signal_widget_select.
process_event_t ctk_signal_menu_activate
 Emitted when a menu item is activated.
process_event_t ctk_signal_window_close
 Emitted when a window is closed.

Detailed Description

The Contiki Toolkit CTK, the Contiki GUI.

Author:
Adam Dunkels <adam@dunkels.com>

Definition in file ctk.c.