Virtual Method
GtkScaleget_layout_offsets
Declaration [src]
void
get_layout_offsets (
GtkScale* scale,
int* x,
int* y
)
Description [src]
Obtains the coordinates where the scale will draw the
PangoLayout
representing the text in the scale.
Remember when using the PangoLayout
function you need to
convert to and from pixels using PANGO_PIXELS()
or PANGO_SCALE
.
If the GtkScale:draw-value
property is FALSE
, the return
values are undefined.
Parameters
x |
int* |
Location to store X offset of layout. |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. | |
y |
int* |
Location to store Y offset of layout. |
|
The argument will be set by the function. | |
The argument can be NULL . | |
The called function takes ownership of the data, and is responsible for freeing it. |