text_editor.h File Reference

Text_Editor Widget. More...

#include "ntw.h"

Go to the source code of this file.

Functions

char * ntw_text_editor_get_text (ntwWidget *widget)
 Get a text_editor's text.
int ntw_text_editor_set_text (ntwWidget *widget, char *text)
 Set a text_editor's text.
uint8 ntw_text_editor_get_editable (ntwWidget *widget)
 Get text_editor editability.
int ntw_text_editor_set_editable (ntwWidget *widget, uint8 editable)
 Set text_editor editability.
ntwWidget * ntw_text_editor_new ()
 Create text_editor.
void ntw_text_editor_initialize_callback ()


Detailed Description

Text_Editor Widget.

A text_editor widget displays any UTF-8 encoded text as multiple lines. The text may be set as editable or not. Any changes the user makes to an editable text_editor widget will be handled by the default handler.


Function Documentation

uint8 ntw_text_editor_get_editable ntwWidget *  widget  ) 
 

Get text_editor editability.

Get the status of the text_editor editable flag.

Parameters:
widget text_editor widget
Returns:
TRUE if editable, FALSE if not

char* ntw_text_editor_get_text ntwWidget *  widget  ) 
 

Get a text_editor's text.

Parameters:
widget text_editor widget
Returns:
text_editor's text string

ntwWidget* ntw_text_editor_new  ) 
 

Create text_editor.

Returns:
Newly created text_editor

int ntw_text_editor_set_editable ntwWidget *  widget,
uint8  editable
 

Set text_editor editability.

Set the ability of a user to change the text in a text_editor. TRUE is editable, FALSE is non-editable. Default is TRUE.

Parameters:
widget text_editor widget
editable TRUE for editable, FALSE otherwise
Returns:
-1 on failure

int ntw_text_editor_set_text ntwWidget *  widget,
char *  text
 

Set a text_editor's text.

Parameters:
widget text_editor widget
text new text string
Returns:
-1 on failure.


Generated on Wed Jun 28 17:00:07 2006 for NTW Server C Library by  doxygen 1.4.6