Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

gtkadjustment.h 4.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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, write to the
  16. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17. * Boston, MA 02111-1307, USA.
  18. */
  19. /*
  20. * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  21. * file for a list of people on the GTK+ Team. See the ChangeLog
  22. * files for a list of changes. These files are distributed with
  23. * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  24. */
  25. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  26. #error "Only <gtk/gtk.h> can be included directly."
  27. #endif
  28. #ifndef __GTK_ADJUSTMENT_H__
  29. #define __GTK_ADJUSTMENT_H__
  30. #include <gdk/gdk.h>
  31. #include <gtk/gtkobject.h>
  32. G_BEGIN_DECLS
  33. #define GTK_TYPE_ADJUSTMENT (gtk_adjustment_get_type ())
  34. #define GTK_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustment))
  35. #define GTK_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass))
  36. #define GTK_IS_ADJUSTMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ADJUSTMENT))
  37. #define GTK_IS_ADJUSTMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ADJUSTMENT))
  38. #define GTK_ADJUSTMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ADJUSTMENT, GtkAdjustmentClass))
  39. typedef struct _GtkAdjustment GtkAdjustment;
  40. typedef struct _GtkAdjustmentClass GtkAdjustmentClass;
  41. struct _GtkAdjustment
  42. {
  43. GtkObject parent_instance;
  44. gdouble GSEAL (lower);
  45. gdouble GSEAL (upper);
  46. gdouble GSEAL (value);
  47. gdouble GSEAL (step_increment);
  48. gdouble GSEAL (page_increment);
  49. gdouble GSEAL (page_size);
  50. };
  51. struct _GtkAdjustmentClass
  52. {
  53. GtkObjectClass parent_class;
  54. void (* changed) (GtkAdjustment *adjustment);
  55. void (* value_changed) (GtkAdjustment *adjustment);
  56. /* Padding for future expansion */
  57. void (*_gtk_reserved1) (void);
  58. void (*_gtk_reserved2) (void);
  59. void (*_gtk_reserved3) (void);
  60. void (*_gtk_reserved4) (void);
  61. };
  62. GType gtk_adjustment_get_type (void) G_GNUC_CONST;
  63. GtkObject* gtk_adjustment_new (gdouble value,
  64. gdouble lower,
  65. gdouble upper,
  66. gdouble step_increment,
  67. gdouble page_increment,
  68. gdouble page_size);
  69. void gtk_adjustment_changed (GtkAdjustment *adjustment);
  70. void gtk_adjustment_value_changed (GtkAdjustment *adjustment);
  71. void gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
  72. gdouble lower,
  73. gdouble upper);
  74. gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment);
  75. void gtk_adjustment_set_value (GtkAdjustment *adjustment,
  76. gdouble value);
  77. gdouble gtk_adjustment_get_lower (GtkAdjustment *adjustment);
  78. void gtk_adjustment_set_lower (GtkAdjustment *adjustment,
  79. gdouble lower);
  80. gdouble gtk_adjustment_get_upper (GtkAdjustment *adjustment);
  81. void gtk_adjustment_set_upper (GtkAdjustment *adjustment,
  82. gdouble upper);
  83. gdouble gtk_adjustment_get_step_increment (GtkAdjustment *adjustment);
  84. void gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
  85. gdouble step_increment);
  86. gdouble gtk_adjustment_get_page_increment (GtkAdjustment *adjustment);
  87. void gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
  88. gdouble page_increment);
  89. gdouble gtk_adjustment_get_page_size (GtkAdjustment *adjustment);
  90. void gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
  91. gdouble page_size);
  92. void gtk_adjustment_configure (GtkAdjustment *adjustment,
  93. gdouble value,
  94. gdouble lower,
  95. gdouble upper,
  96. gdouble step_increment,
  97. gdouble page_increment,
  98. gdouble page_size);
  99. G_END_DECLS
  100. #endif /* __GTK_ADJUSTMENT_H__ */