Contiki 2.5
Functions | Variables
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. More...
 
ctk_arch_key_t ctk_arch_getkey (void)
 Retrieves key presses from the VNC client. More...
 
void ctk_mode_set (unsigned char m)
 Sets the current CTK mode. More...
 
unsigned char ctk_mode_get (void)
 Retrieves the current CTK mode. More...
 
void ctk_icon_add (CC_REGISTER_ARG struct ctk_widget *icon, struct process *p)
 Add an icon to the desktop. More...
 
void ctk_window_open (CC_REGISTER_ARG struct ctk_window *w)
 Open a window, or bring window to front if already open. More...
 
void ctk_window_close (struct ctk_window *w)
 Close a window if it is open. More...
 
void ctk_window_clear (struct ctk_window *w)
 Remove all widgets from a window. More...
 
void ctk_menu_add (struct ctk_menu *menu)
 Add a menu to the menu bar. More...
 
void ctk_menu_remove (struct ctk_menu *menu)
 Remove a menu from the menu bar. More...
 
void ctk_window_redraw (struct ctk_window *w)
 Redraw a window. More...
 
void ctk_window_new (struct ctk_window *window, unsigned char w, unsigned char h, char *title)
 Create a new window. More...
 
void ctk_menu_new (CC_REGISTER_ARG struct ctk_menu *menu, char *title)
 Creates a new menu. More...
 
unsigned char ctk_menuitem_add (CC_REGISTER_ARG struct ctk_menu *menu, char *name)
 Adds a menu item to a menu. More...
 
void ctk_widget_redraw (struct ctk_widget *widget)
 Redraws a widget. More...
 
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. More...
 
unsigned char ctk_desktop_width (struct ctk_desktop *d)
 Gets the width of the desktop. More...
 
unsigned char ctk_desktop_height (struct ctk_desktop *d)
 Gets the height of the desktop. More...
 

Variables

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

Detailed Description

The Contiki Toolkit CTK, the Contiki GUI.

Author
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om

Definition in file ctk.c.