module Gtk::Scrollable

Overview

Gtk::Scrollable is 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.


[View source]

Class Method Detail

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

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def border : Gtk::Border #

[View source]
def hadjustment : Gtk::Adjustment | Nil #

[View source]
def hadjustment=(hadjustment : Gtk::Adjustment | Nil) : Nil #

[View source]
def hscroll_policy : Gtk::ScrollablePolicy #

[View source]
def hscroll_policy=(policy : Gtk::ScrollablePolicy) : Nil #

[View source]
abstract def to_unsafe #

[View source]
def vadjustment : Gtk::Adjustment | Nil #

[View source]
def vadjustment=(vadjustment : Gtk::Adjustment | Nil) : Nil #

[View source]
def vscroll_policy : Gtk::ScrollablePolicy #

[View source]
def vscroll_policy=(policy : Gtk::ScrollablePolicy) : Nil #

[View source]