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

ctk-textedit.h File Reference


Detailed Description

Header file for the experimental application level CTK textedit widget.

Author:
Adam Dunkels <adam@dunkels.com>

Definition in file ctk-textedit.h.

#include "ctk/ctk.h"

Go to the source code of this file.

Data Structures

struct  ctk_textedit

Defines

#define CTK_TEXTEDIT(tx, ty, tw, th, ttext)   {CTK_LABEL(tx, ty, tw, th, ttext)}, 0, 0
 Instantiating macro for the CTK textedit widget.

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.


Define Documentation

#define CTK_TEXTEDIT tx,
ty,
tw,
th,
ttext   )     {CTK_LABEL(tx, ty, tw, th, ttext)}, 0, 0
 

Instantiating macro for the CTK textedit widget.

Parameters:
tx The x position of the widget.
ty The y position of the widget.
tw The width of the widget.
th The height of the widget.
ttext The text buffer to be edited.

Definition at line 57 of file ctk-textedit.h.


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