gtk-sharp2.10.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Adds scrollbars to its child widget.
GtkScrolledWindow is a subclass: it's a container the accepts a single child widget. GtkScrolledWindow adds scrollbars to the child widget and optionally draws a beveled frame around the child widget.
The scrolled window can work in two ways. Some widgets have native scrolling support; these widgets have "slots" for objects. Widgets with native scroll support include , , and .
The position of the scrollbars is controlled by the scroll adjustments. See for the properties in an adjustment - for , used by , the property represents the position of the scrollbar, which must be between the and - . The property represents the size of the visible scrollable area. The and properties are used when the user asks to step down (using the small stepper arrows) or page down (using for example the PageDown key).
Gtk.BinMethodSystem.VoidUsed to add children without native scrolling capabilities.
A
Used to add children without native scrolling capabilities. This is simply a convenience function; it is equivalent to adding the unscrollable child to a viewport, then adding the viewport to the scrolled window. If a child has native scrolling, use instead of this function.
The viewport scrolls the child by moving its , and takes the size of the child to be the size of its toplevel . This will be very wrong for most widgets that support native scrolling; for example, if you add a widget such as with a viewport, the whole widget will scroll, including the column headings. Thus, widgets with native scrolling support should not be used with the proxy.
A widget supports scrolling natively if the set_scroll_adjustments_signal field in GtkWidgetClass is non-zero, i.e. has been filled in with a valid signal identifier.
MethodSystem.VoidSets the scrollbar policy for the horizontal and vertical scrollbars.
Policy for horizontal bar.
Policy for vertical bar.
Sets the scrollbar policy for the horizontal and vertical scrollbars. The policy determines when the scrollbar should appear; it is a value from the enumeration. If , the scrollbar is always present; if , the scrollbar is never present; if , the scrollbar is present only if needed (that is, if the slider part of the bar would be smaller than the trough - the display is larger than the page size).
MethodSystem.VoidRetrieves the current policy values for the horizontal and vertical scrollbars.
Location to store the policy for the horizontal scrollbar.
Location to store the policy for the horizontal scrollbar.
Retrieves the current policy values for the horizontal and vertical scrollbars.
ConstructorInternal constructor
Pointer to the C object.
This is an internal constructor, and should not be used by user code.ConstructorCreates a new scrolled window.
Horizontal adjustment.
Vertical adjustment.
Creates a new scrolled window. The two arguments are the scrolled window's adjustments; these will be shared with the scrollbars and the child widget to keep the bars in sync with the child. Usually you want to pass for the adjustments, which will cause the scrolled window to create them for you.
ConstructorBasic constructor.PropertyGtk.CornerTypeDetermines the location of the child widget with respect to the scrollbars.
Determines the location of the child widget with respect to the scrollbars. The default is , meaning the child is in the top left, with the scrollbars underneath and to the right. Other values in are , , and .
PropertyGtk.PolicyTypeWhen the horizontal scrollbar is displayed.A GLib.Property(Name="hscrollbar-policy")PropertyGtk.AdjustmentSets the for the horizontal scrollbar.The horizontal GtkAdjustment.GLib.Property(Name="hadjustment")PropertyGtk.PolicyTypeWhen the vertical scrollbar is displayed.A GLib.Property(Name="vscrollbar-policy")PropertyGtk.AdjustmentSets or Gets the for the vertical scrollbar.The vertical GtkAdjustment.GLib.Property(Name="vadjustment")PropertyGtk.ShadowTypeGets the shadow type of the scrolled window.The current shadow type.GLib.Property(Name="shadow-type")PropertyGtk.CornerTypeWhere the contents are located with respect to the scrollbars.A GLib.Property(Name="window-placement")EventGtk.ScrollChildHandlerRaised when the child widget is scrolled.GLib.Signal(CName="scroll_child")EventGtk.MoveFocusOutHandlerRaised when the focus moves out of the scrolled window.GLib.Signal(CName="move_focus_out")PropertyGLib.GTypeGType Property.a Returns the native value for .MethodSystem.VoidDefault handler for the event.
a Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDefault handler for the event.
a
a Override this method in a subclass to provide a default handler for the event.ConstructorProtected Constructor.
a Chain to this constructor if you have manually registered a native value for your subclass.System.Obsolete(Message=null, IsError=False)PropertyGtk.WidgetVertical Scrollbar.the vertical if it exists, or .PropertyGtk.WidgetHorizontal Scrollbar.the horizontal if it exists, or .