Project

General

Profile

Range » History » Revision 2

Revision 1 (iri, 03/31/2011 07:35 PM) → Revision 2/3 (iri, 03/31/2011 07:53 PM)

h1. Range 

 Widgets which visualize an adjustment : scale, scroll bar, ... objects 

 !>http://library.gnome.org/devel/gtk/unstable/scales.png! 

 {{toc}} 

 h2. _gtkRangeSetValues 

 Sets min et max, step and page size to a range object. 

 Prototype : *fun [ObjGtkWidget [I I] [I I]] ObjGtkWidget* 

 table. 
 |*range*|ObjGtkWidget|a valid existing object| 
 |*min_max*|[I I]|the min and the max values availables| 
 |*step_page*|[I I]|the step and the page sizes values| 

 +Return+ : ObjGtkWidget : the same object or nil if error 

 * _step_ is used when the user clicks on the arrow button / cursor or when he moves the cursor with the arrow keys (by example). 
 * _page_ is used when th user click on the body or he moves the cursor with the page up / page down keys (by example). 

 h2. _gtkRangeGet 

 Returns the current value or nil if error 

 Prototype : *fun [ObjGtkWidget] F* 

 h2. _gtkRangeSet 

 Sets the current value 

 Prototype : *fun [ObjGtkWidget I] ObjGtkWidget* 

 table. 
 |*range*|ObjGtkWidget|a valid existing object| 
 |*value*|F|the new value. It will be forced to inside the range if it is outside.| 

 +Return+ : ObjGtkWidget : the same object or nil if error 




 


 Return [[Api]]