Scrollbar
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, AccessibleRange
, Buildable
, ConstraintTarget
, Orientable
- Constructors:
Scrollbar(**properties)
new(orientation:Gtk.Orientation, adjustment:Gtk.Adjustment=None) -> Gtk.Widget
Constructors
- class Scrollbar
- classmethod new(orientation: Orientation, adjustment: Adjustment | None = None) Widget
Creates a new scrollbar with the given orientation.
- Parameters:
orientation – the scrollbar’s orientation.
adjustment – the
Adjustment
to use, orNone
to create a new adjustment.
Methods
- class Scrollbar
- get_adjustment() Adjustment
Returns the scrollbar’s adjustment.
- set_adjustment(adjustment: Adjustment | None = None) None
Makes the scrollbar use the given adjustment.
- Parameters:
adjustment – the adjustment to set
Properties
- class Scrollbar
- props.adjustment: Adjustment
The
GtkAdjustment
controlled by this scrollbar.