2002-10-09 Miguel de Icaza <miguel@ximian.com>

* glue/adjustment.c (gtksharp_gtk_adjustment_get_page_size): Added
	the glue.

	* gtk/Adjustment.custom: Added some more methods

svn path=/trunk/gtk-sharp/; revision=8110
This commit is contained in:
Miguel de Icaza 2002-10-09 20:04:50 +00:00
parent 537d076d86
commit bf28355d1e
3 changed files with 78 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2002-10-09 Miguel de Icaza <miguel@ximian.com>
* glue/adjustment.c (gtksharp_gtk_adjustment_get_page_size): Added
the glue.
* gtk/Adjustment.custom: Added some more methods
2002-10-08 Kristian Rietveld <kris@gtk.org>
(So Miguel told me just to go ahead and commit -kris)

View file

@ -21,3 +21,33 @@ gtksharp_gtk_adjustment_set_bounds (GtkAdjustment *adj,
gtk_adjustment_changed (adj);
}
gdouble
gtksharp_gtk_adjustment_get_lower (GtkAdjustment *adj)
{
return adj->lower;
}
gdouble
gtksharp_gtk_adjustment_get_upper (GtkAdjustment *adj)
{
return adj->upper;
}
gdouble
gtksharp_gtk_adjustment_get_step_increment (GtkAdjustment *adj)
{
return adj->step_increment;
}
gdouble
gtksharp_gtk_adjustment_get_page_increment (GtkAdjustment *adj)
{
return adj->page_increment;
}
gdouble
gtksharp_gtk_adjustment_get_page_size (GtkAdjustment *adj)
{
return adj->page_size;
}

View file

@ -17,3 +17,44 @@ public void SetBounds (double lower, double upper, double step_increment, double
gtksharp_gtk_adjustment_set_bounds (this.Handle, lower, upper, step_increment, page_increment, page_size);
}
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_lower (IntPtr i);
public double Lower {
get {
return gtksharp_gtk_adjustment_get_lower (this.Handle);
}
}
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_upper (IntPtr i);
public double Upper {
get {
return gtksharp_gtk_adjustment_get_upper (this.Handle);
}
}
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_step_increment (IntPtr i);
public double StepIncrement {
get {
return gtksharp_gtk_adjustment_get_step_increment (this.Handle);
}
}
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_page_increment (IntPtr i);
public double PageIncrement {
get {
return gtksharp_gtk_adjustment_get_page_increment (this.Handle);
}
}
[DllImport ("gtksharpglue")]
static extern double gtksharp_gtk_adjustment_get_page_size (IntPtr i);
public double PageSize {
get {
return gtksharp_gtk_adjustment_get_page_size (this.Handle);
}
}