Project

General

Profile

Actions

Range » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
iri, 03/31/2011 07:53 PM


Range

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

_gtkRangeSetValues

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

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

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).

_gtkRangeGet

Returns the current value or nil if error

Prototype : fun [ObjGtkWidget] F

_gtkRangeSet

Sets the current value

Prototype : fun [ObjGtkWidget I] ObjGtkWidget

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

Updated by iri over 13 years ago · 2 revisions