module Gtk::Scrollable

Overview

An interface for widgets with native scrolling ability.

To implement this interface you should override the Gtk::Scrollable#hadjustment and Gtk::Scrollable#vadjustment properties.

Creating a scrollable widget

All scrollable widgets should do the following.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/scrollable.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

def self.g_type : UInt64 #

Instance Method Detail

def border : Gtk::Border #

def hadjustment : Gtk::Adjustment | Nil #

def hadjustment=(hadjustment : Gtk::Adjustment | Nil) : Nil #

def hscroll_policy : Gtk::ScrollablePolicy #

def hscroll_policy=(policy : Gtk::ScrollablePolicy) : Nil #

abstract def to_unsafe #

def vadjustment : Gtk::Adjustment | Nil #

def vadjustment=(vadjustment : Gtk::Adjustment | Nil) : Nil #

def vscroll_policy : Gtk::ScrollablePolicy #

def vscroll_policy=(policy : Gtk::ScrollablePolicy) : Nil #