2002-08-11 22:48:00 +00:00
|
|
|
//
|
|
|
|
// Gtk.Adjustment.custom - Allow customization of values in the GtkAdjustment
|
|
|
|
//
|
|
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
//
|
|
|
|
|
2004-05-07 18:41:32 +00:00
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
|
|
static extern IntPtr gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size);
|
|
|
|
|
|
|
|
public Adjustment (double value, double lower, double upper, double step_increment, double page_increment, double page_size) : base (IntPtr.Zero)
|
|
|
|
{
|
|
|
|
if (GetType () != typeof (Adjustment)) {
|
|
|
|
CreateNativeObject (new string [0], new GLib.Value [0]);
|
|
|
|
Value = value;
|
|
|
|
Lower = lower;
|
|
|
|
Upper = upper;
|
|
|
|
StepIncrement = step_increment;
|
|
|
|
PageIncrement = page_increment;
|
|
|
|
PageSize = page_size;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Raw = gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size);
|
|
|
|
}
|
|
|
|
|
2002-08-11 22:48:00 +00:00
|
|
|
[DllImport("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_bounds (IntPtr i, double lower, double upper, double step_increment, double page_increment, double page_size);
|
|
|
|
|
|
|
|
/// <summary>Sets the Adjustment boundaries</summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// This method is used to change the lower, upper, step_increment, page_increment and
|
|
|
|
/// page_size parameters of the Adjustment object after it has been created
|
|
|
|
/// </remarks>
|
|
|
|
public void SetBounds (double lower, double upper, double step_increment, double page_increment, double page_size)
|
|
|
|
{
|
|
|
|
gtksharp_gtk_adjustment_set_bounds (this.Handle, lower, upper, step_increment, page_increment, page_size);
|
|
|
|
}
|
|
|
|
|
2002-10-09 20:04:50 +00:00
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern double gtksharp_gtk_adjustment_get_lower (IntPtr i);
|
|
|
|
|
2004-05-07 18:41:32 +00:00
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_lower (IntPtr i, double lower);
|
|
|
|
|
2002-10-09 20:04:50 +00:00
|
|
|
public double Lower {
|
|
|
|
get {
|
|
|
|
return gtksharp_gtk_adjustment_get_lower (this.Handle);
|
|
|
|
}
|
2004-05-07 18:41:32 +00:00
|
|
|
set {
|
|
|
|
gtksharp_gtk_adjustment_set_lower (Handle, value);
|
|
|
|
}
|
2002-10-09 20:04:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern double gtksharp_gtk_adjustment_get_upper (IntPtr i);
|
2004-05-07 18:41:32 +00:00
|
|
|
|
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_upper (IntPtr i, double upper);
|
|
|
|
|
2002-10-09 20:04:50 +00:00
|
|
|
public double Upper {
|
|
|
|
get {
|
|
|
|
return gtksharp_gtk_adjustment_get_upper (this.Handle);
|
|
|
|
}
|
2004-05-07 18:41:32 +00:00
|
|
|
set {
|
|
|
|
gtksharp_gtk_adjustment_set_upper (Handle, value);
|
|
|
|
}
|
2002-10-09 20:04:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern double gtksharp_gtk_adjustment_get_step_increment (IntPtr i);
|
2004-05-05 18:44:18 +00:00
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_step_increment (IntPtr i, double step_increment);
|
2002-10-09 20:04:50 +00:00
|
|
|
public double StepIncrement {
|
|
|
|
get {
|
|
|
|
return gtksharp_gtk_adjustment_get_step_increment (this.Handle);
|
|
|
|
}
|
2004-05-05 18:44:18 +00:00
|
|
|
|
|
|
|
set {
|
|
|
|
gtksharp_gtk_adjustment_set_step_increment (Handle, value);
|
|
|
|
}
|
2002-10-09 20:04:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern double gtksharp_gtk_adjustment_get_page_increment (IntPtr i);
|
2002-11-08 23:32:27 +00:00
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_page_increment (IntPtr i, double page_increment);
|
2002-10-09 20:04:50 +00:00
|
|
|
public double PageIncrement {
|
|
|
|
get {
|
|
|
|
return gtksharp_gtk_adjustment_get_page_increment (this.Handle);
|
2002-11-08 23:32:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
set {
|
|
|
|
gtksharp_gtk_adjustment_set_page_increment (Handle, value);
|
2002-10-09 20:04:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern double gtksharp_gtk_adjustment_get_page_size (IntPtr i);
|
2002-11-08 23:32:27 +00:00
|
|
|
[DllImport ("gtksharpglue")]
|
|
|
|
static extern void gtksharp_gtk_adjustment_set_page_size (IntPtr i, double page_size);
|
2002-10-09 20:04:50 +00:00
|
|
|
public double PageSize {
|
|
|
|
get {
|
|
|
|
return gtksharp_gtk_adjustment_get_page_size (this.Handle);
|
|
|
|
}
|
2002-11-08 23:32:27 +00:00
|
|
|
|
|
|
|
set {
|
|
|
|
gtksharp_gtk_adjustment_set_page_size (Handle, value);
|
|
|
|
}
|
2002-10-09 20:04:50 +00:00
|
|
|
}
|
|
|
|
|