summaryrefslogtreecommitdiff
path: root/gtk/gtkscale.h
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-02-12 23:58:46 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-02-12 23:58:46 +0000
commitf6a32cf0d13e4f7c2bb238cbf79e69243dafb93b (patch)
treec6b4a7e5fb387f5bc11bac0a7c838d3d37a53716 /gtk/gtkscale.h
parent0c4c9f0d1c482740670368466a3aedabec833169 (diff)
downloadgtk+-f6a32cf0d13e4f7c2bb238cbf79e69243dafb93b.tar.gz
Fix for #104811, Padraig O'Briain:
Fri Feb 13 00:54:59 2004 Matthias Clasen <maclas@gmx.de> Fix for #104811, Padraig O'Briain: * gtk/gtkscale.h: * gtk/gtkscale.c (_gtk_scale_clear_layout): * gtk/gtkscale.c (gtk_scale_get_layout_offsets): * gtk/gtkscale.c (gtk_scale_get_layout): New functions to determine the text and its position from a GtkScale, to make it more accessible. * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): Implementations of the new GtkScale vfunc.
Diffstat (limited to 'gtk/gtkscale.h')
-rw-r--r--gtk/gtkscale.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h
index 82f3fea0cb..3623142519 100644
--- a/gtk/gtkscale.h
+++ b/gtk/gtkscale.h
@@ -66,8 +66,10 @@ struct _GtkScaleClass
void (* draw_value) (GtkScale *scale);
+ void (* get_layout_offsets) (GtkScale *scale,
+ gint *x,
+ gint *y);
/* Padding for future expansion */
- void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
@@ -85,12 +87,18 @@ void gtk_scale_set_value_pos (GtkScale *scale,
GtkPositionType pos);
GtkPositionType gtk_scale_get_value_pos (GtkScale *scale);
+PangoLayout *gtk_scale_get_layout (GtkScale *scale);
+void gtk_scale_get_layout_offsets (GtkScale *scale,
+ gint *x,
+ gint *y);
+void _gtk_scale_clear_layout (GtkScale *scale);
void _gtk_scale_get_value_size (GtkScale *scale,
gint *width,
gint *height);
-gchar *_gtk_scale_format_value (GtkScale *scale,
- gdouble value);
+gchar *_gtk_scale_format_value (GtkScale *scale,
+ gdouble value);
+
#ifdef __cplusplus
}