1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
/* -*- C -*- */ 
class GTK2.Scale; 
inherit GTK2.Range; 
 
//! The GTK2.Scale widget is an abstract class, used only for deriving 
//! the subclasses GTK2.Hscale and GTK2.Vscale. 
//! <p> 
//! See W(Range) for generic range documentation 
//! </p> 
 
//! Properties: 
//! int digits 
//! int draw-value 
//! int value-pos 
//! <p> 
//! Style properties: 
//! int slider-length 
//! int value-spacing 
 
signal format_value; 
 
void set_digits(int precision); 
//! Sets the number of decimal places that are displayed in the value. 
 
void set_draw_value(int drawp); 
//! Specifies whether the current value is displayed as a string next 
//! to the slider. 
 
void set_value_pos( int where ); 
//! Sets the position in which the current value is displayed. One of 
//! CONST(GTK_POS) 
 
int get_digits(); 
//! Gets the number of decimal places that are displayed. 
 
int get_draw_value(); 
//! Returns whether the current value is displayed as a string next to the 
//! slider. 
 
int get_value_pos(); 
//! Gets the position in which the current value is displayed. 
 
require pango; 
require gtk24; 
+Pango.Layout get_layout(); 
//! Gets the Pango.Layout used to display the scale. 
 
mapping(string:int) get_layout_offsets() 
//! Obtains the coordinates where the scale will draw the Pango.Layout 
//! representing the text in the scale.  Remember when using the Pango.Layout 
//! function you need to convert to and from pixels using PANGO_SCALE. 
{ 
  pgtk2_verify_inited(); 
  { 
    gint x,y; 
    pgtk2_pop_n_elems(args); 
    gtk_scale_get_layout_offsets(GTK_SCALE(THIS->obj),&x,&y); 
    ref_push_string(_STR("x")); push_int(x); 
    ref_push_string(_STR("y")); push_int(y); 
    f_aggregate_mapping(4); 
  } 
} 
endrequire; 
endrequire;