spin_button.h File Reference

Spin_Button Widget. More...

#include "ntw.h"

Go to the source code of this file.

Functions

double ntw_spin_button_get_value (ntwWidget *widget)
 Get a spin_button's value.
int ntw_spin_button_set_value (ntwWidget *widget, double value)
 Set a spin_button's value.
ntwWidget * ntw_spin_button_new (double min, double max, double step)
 Create spin_button.
void ntw_spin_button_initialize_callback ()


Detailed Description

Spin_Button Widget.

The spin_button widget is a text entry field for input of numbers. There are arrow buttons on the side which allow the number to be incremented or decremented.


Function Documentation

double ntw_spin_button_get_value ntwWidget *  widget  ) 
 

Get a spin_button's value.

Parameters:
widget spin_button to get
Returns:
Value of spin_button

ntwWidget* ntw_spin_button_new double  min,
double  max,
double  step
 

Create spin_button.

Parameters:
min The minimum allowed number
max The maximum allowed number
step The amount of increment/decrement when an arrow button is pressed
Returns:
Newly created spin_button

int ntw_spin_button_set_value ntwWidget *  widget,
double  value
 

Set a spin_button's value.

Parameters:
widget spin_button to set
value Number to set spin_button to
Returns:
-1 on failure


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