Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

ctk-textedit.c File Reference


Detailed Description

An experimental CTK text edit widget.

Author:
Adam Dunkels <adam@dunkels.com>
This module contains an experimental CTK widget which is implemented in the application process rather than in the CTK process. The widget is instantiated in a similar fashion as other CTK widgets, but is different from other widgets in that it requires a signal handler function to be called by the process signal handler function.

Definition in file ctk-textedit.c.

#include "ctk-textedit.h"
#include <string.h>

Go to the source code of this file.

Functions

void ctk_textedit_init (struct ctk_textedit *t)
void ctk_textedit_add (struct ctk_window *w, struct ctk_textedit *t)
 Add a CTK textedit widget to a window.
void ctk_textedit_eventhandler (struct ctk_textedit *t, process_event_t s, process_data_t data)
 The CTK textedit signal handler.


Function Documentation

void ctk_textedit_add struct ctk_window w,
struct ctk_textedit t
 

Add a CTK textedit widget to a window.

Parameters:
w A pointer to the window to which the entry is to be added.
t A pointer to the CTK textentry structure.

Definition at line 70 of file ctk-textedit.c.

References CTK_WIDGET_ADD, CTK_WIDGET_FLAG_MONOSPACE, and CTK_WIDGET_SET_FLAG.

void ctk_textedit_eventhandler struct ctk_textedit t,
process_event_t  s,
process_data_t  data
 

The CTK textedit signal handler.

This function must be called as part of the normal signal handler of the process that contains the CTK textentry structure.

Parameters:
t A pointer to the CTK textentry structure.
s The signal number.
data The signal data.

Definition at line 89 of file ctk-textedit.c.

References ctk_signal_keypress, ctk_signal_widget_activate, CTK_WIDGET_FOCUS, CTK_WIDGET_REDRAW, ctk_label::h, ctk_textedit::label, ctk_label::text, ctk_label::w, ctk_label::window, ctk_textedit::xpos, and ctk_textedit::ypos.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4