| 1 | /* GTK - The GIMP Toolkit |
| 2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
| 20 | * file for a list of people on the GTK+ Team. See the ChangeLog |
| 21 | * files for a list of changes. These files are distributed with |
| 22 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
| 23 | */ |
| 24 | |
| 25 | #pragma once |
| 26 | |
| 27 | |
| 28 | #if !defined (__GTK_H_INSIDE__cxx . . $ `gtk/gtk.h:27:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!) |
| 29 | #error "Only <gtk/gtk.h> can be included directly." |
| 30 | #endif |
| 31 | |
| 32 | #include <gtk/gtkrange.h>cxx . . $ `<file>/gtk/gtkrange.h`/ |
| 33 | |
| 34 | |
| 35 | G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`! |
| 36 | |
| 37 | #define GTK_TYPE_SCALEcxx . . $ `gtk/gtkscale.h:37:9`! (gtk_scale_get_type ()) |
| 38 | #define GTK_SCALEcxx . . $ `gtk/gtkscale.h:38:9`!(obj) (G_TYPE_CHECK_INSTANCE_CASTcxx . . $ `<external>/9567554376676449156/gtype.h:528:9`! ((obj), GTK_TYPE_SCALEcxx . . $ `gtk/gtkscale.h:37:9`!, GtkScale)) |
| 39 | #define GTK_SCALE_CLASScxx . . $ `gtk/gtkscale.h:39:9`!(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCALE, GtkScaleClass)) |
| 40 | #define GTK_IS_SCALEcxx . . $ `gtk/gtkscale.h:40:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:541:9`! ((obj), GTK_TYPE_SCALEcxx . . $ `gtk/gtkscale.h:37:9`!)) |
| 41 | #define GTK_IS_SCALE_CLASScxx . . $ `gtk/gtkscale.h:41:9`!(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCALE)) |
| 42 | #define GTK_SCALE_GET_CLASScxx . . $ `gtk/gtkscale.h:42:9`!(obj) (G_TYPE_INSTANCE_GET_CLASScxx . . $ `<external>/9567554376676449156/gtype.h:571:9`! ((obj), GTK_TYPE_SCALEcxx . . $ `gtk/gtkscale.h:37:9`!, GtkScaleClass)) |
| 43 | |
| 44 | |
| 45 | typedef struct _GtkScalecxx . . $ _GtkScale# GtkScalecxx . . $ GtkScale#; |
| 46 | typedef struct _GtkScaleClasscxx . . $ _GtkScaleClass# GtkScaleClasscxx . . $ GtkScaleClass#; |
| 47 | |
| 48 | struct _GtkScalecxx . . $ _GtkScale# |
| 49 | { |
| 50 | GtkRangecxx . . $ GtkRange# parent_instancecxx . . $ _GtkScale#parent_instance.; |
| 51 | }; |
| 52 | |
| 53 | struct _GtkScaleClasscxx . . $ _GtkScaleClass# |
| 54 | { |
| 55 | GtkRangeClasscxx . . $ GtkRangeClass# parent_classcxx . . $ _GtkScaleClass#parent_class.; |
| 56 | |
| 57 | void (* get_layout_offsetscxx . . $ _GtkScaleClass#get_layout_offsets.) (GtkScalecxx . . $ GtkScale# *scale, |
| 58 | int *x, |
| 59 | int *y); |
| 60 | |
| 61 | /*< private >*/ |
| 62 | |
| 63 | gpointercxx . . $ gpointer# paddingcxx . . $ _GtkScaleClass#padding.[8]; |
| 64 | }; |
| 65 | |
| 66 | |
| 67 | /** |
| 68 | * GtkScaleFormatValueFunc: |
| 69 | * @scale: The `GtkScale` |
| 70 | * @value: The numeric value to format |
| 71 | * @user_data: (closure): user data |
| 72 | * |
| 73 | * Function that formats the value of a scale. |
| 74 | * |
| 75 | * See [[email protected]_format_value_func]. |
| 76 | * |
| 77 | * Returns: (not nullable): A newly allocated string describing a textual representation |
| 78 | * of the given numerical value. |
| 79 | */ |
| 80 | typedef char * (*GtkScaleFormatValueFunccxx . . $ GtkScaleFormatValueFunc#) (GtkScalecxx . . $ GtkScale# *scale, |
| 81 | double value, |
| 82 | gpointercxx . . $ gpointer# user_data); |
| 83 | |
| 84 | |
| 85 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 86 | GTypecxx . . $ GType# gtk_scale_get_typecxx . . $ gtk_scale_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!; |
| 87 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 88 | GtkWidgetcxx . . $ GtkWidget# * gtk_scale_newcxx . . $ gtk_scale_new(67352fb0657bddbf). (GtkOrientationcxx . . $ GtkOrientation# orientation, |
| 89 | GtkAdjustmentcxx . . $ GtkAdjustment# *adjustment); |
| 90 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 91 | GtkWidgetcxx . . $ GtkWidget# * gtk_scale_new_with_rangecxx . . $ gtk_scale_new_with_range(cceb46993a55f7f0). (GtkOrientationcxx . . $ GtkOrientation# orientation, |
| 92 | double min, |
| 93 | double max, |
| 94 | double step); |
| 95 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 96 | void gtk_scale_set_digitscxx . . $ gtk_scale_set_digits(d6b0a53b58ba0037). (GtkScalecxx . . $ GtkScale# *scale, |
| 97 | int digits); |
| 98 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 99 | int gtk_scale_get_digitscxx . . $ gtk_scale_get_digits(95b96f42f607d433). (GtkScalecxx . . $ GtkScale# *scale); |
| 100 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 101 | void gtk_scale_set_draw_valuecxx . . $ gtk_scale_set_draw_value(d6b0a53b58ba0037). (GtkScalecxx . . $ GtkScale# *scale, |
| 102 | gbooleancxx . . $ gboolean# draw_value); |
| 103 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 104 | gbooleancxx . . $ gboolean# gtk_scale_get_draw_valuecxx . . $ gtk_scale_get_draw_value(95b96f42f607d433). (GtkScalecxx . . $ GtkScale# *scale); |
| 105 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 106 | void gtk_scale_set_has_origincxx . . $ gtk_scale_set_has_origin(d6b0a53b58ba0037). (GtkScalecxx . . $ GtkScale# *scale, |
| 107 | gbooleancxx . . $ gboolean# has_origin); |
| 108 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 109 | gbooleancxx . . $ gboolean# gtk_scale_get_has_origincxx . . $ gtk_scale_get_has_origin(95b96f42f607d433). (GtkScalecxx . . $ GtkScale# *scale); |
| 110 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 111 | void gtk_scale_set_value_poscxx . . $ gtk_scale_set_value_pos(b441e1b0eef64759). (GtkScalecxx . . $ GtkScale# *scale, |
| 112 | GtkPositionTypecxx . . $ GtkPositionType# pos); |
| 113 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 114 | GtkPositionTypecxx . . $ GtkPositionType# gtk_scale_get_value_poscxx . . $ gtk_scale_get_value_pos(fbbc4f475acdfb8). (GtkScalecxx . . $ GtkScale# *scale); |
| 115 | |
| 116 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 117 | PangoLayoutcxx . . $ PangoLayout# * gtk_scale_get_layoutcxx . . $ gtk_scale_get_layout(790a6e13d0a42ca7). (GtkScalecxx . . $ GtkScale# *scale); |
| 118 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 119 | void gtk_scale_get_layout_offsetscxx . . $ gtk_scale_get_layout_offsets(f5d5418caf9935b8). (GtkScalecxx . . $ GtkScale# *scale, |
| 120 | int *x, |
| 121 | int *y); |
| 122 | |
| 123 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 124 | void gtk_scale_add_markcxx . . $ gtk_scale_add_mark(5908a1e09f85dfa3). (GtkScalecxx . . $ GtkScale# *scale, |
| 125 | double value, |
| 126 | GtkPositionTypecxx . . $ GtkPositionType# position, |
| 127 | const char *markup); |
| 128 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 129 | void gtk_scale_clear_markscxx . . $ gtk_scale_clear_marks(368ed8a70865ee50). (GtkScalecxx . . $ GtkScale# *scale); |
| 130 | |
| 131 | GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`! |
| 132 | void gtk_scale_set_format_value_funccxx . . $ gtk_scale_set_format_value_func(6e3ef7601f01470a). (GtkScalecxx . . $ GtkScale# *scale, |
| 133 | GtkScaleFormatValueFunccxx . . $ GtkScaleFormatValueFunc# func, |
| 134 | gpointercxx . . $ gpointer# user_data, |
| 135 | GDestroyNotifycxx . . $ GDestroyNotify# destroy_notify); |
| 136 | |
| 137 | G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ GtkScale_slistautoptr#(GtkScale, g_object_unref) |
| 138 | |
| 139 | G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`! |
| 140 |