window.h File Reference

Window Widget. More...

#include "ntw.h"

Go to the source code of this file.

Functions

uint8 ntw_window_get_modal (ntwWidget *widget)
 Gets window's modal status.
char * ntw_window_get_title (ntwWidget *widget)
 Gets window's title.
int ntw_window_set_modal (ntwWidget *widget, uint8 modal)
 Sets window's modal status.
int ntw_window_set_title (ntwWidget *widget, char *text)
 Sets window's title.
ntwWidget * ntw_window_new (int32 width, int32 height, char *title)
 Create window.


Detailed Description

Window Widget.

A window is a top-level window usually used as the main container for a program. It can contain a single widget.


Function Documentation

uint8 ntw_window_get_modal ntwWidget *  widget  ) 
 

Gets window's modal status.

Parameters:
widget window widget
Returns:
TRUE if modal, FALSE if not

char* ntw_window_get_title ntwWidget *  widget  ) 
 

Gets window's title.

Parameters:
widget window widget
Returns:
window widget's title string

ntwWidget* ntw_window_new int32  width,
int32  height,
char *  title
 

Create window.

The width and height may be specified, but are not guaranteed.

Parameters:
width Width in pixels of the window
height Height in pixels of the window
title Text string displayed in window's title bar
Returns:
Newly created window

int ntw_window_set_modal ntwWidget *  widget,
uint8  modal
 

Sets window's modal status.

Parameters:
widget window widget
modal TRUE or FALSE
Returns:
-1 on failure

int ntw_window_set_title ntwWidget *  widget,
char *  text
 

Sets window's title.

Parameters:
widget window widget
text UTF-8 string to set title to
Returns:
-1 on failure


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