gtkmm 4.16.0
|
This interface is implemented by widgets with native scrolling ability. More...
#include <gtkmm/scrollable.h>
Public Types | |
enum class | Policy { MINIMUM , NATURAL } |
Public Member Functions | |
Scrollable (Scrollable &&src) noexcept | |
Scrollable & | operator= (Scrollable &&src) noexcept |
~Scrollable () noexcept override | |
GtkScrollable * | gobj () |
Provides access to the underlying C GObject. | |
const GtkScrollable * | gobj () const |
Provides access to the underlying C GObject. | |
Glib::RefPtr< Adjustment > | get_hadjustment () |
Retrieves the Gtk::Adjustment used for horizontal scrolling. | |
Glib::RefPtr< const Adjustment > | get_hadjustment () const |
Retrieves the Gtk::Adjustment used for horizontal scrolling. | |
void | set_hadjustment (const Glib::RefPtr< Adjustment > &hadjustment) |
Sets the horizontal adjustment of the Gtk::Scrollable . | |
void | unset_hadjustment () |
This method removes the hadjustment. | |
Glib::RefPtr< Adjustment > | get_vadjustment () |
Retrieves the Gtk::Adjustment used for vertical scrolling. | |
Glib::RefPtr< const Adjustment > | get_vadjustment () const |
Retrieves the Gtk::Adjustment used for vertical scrolling. | |
void | set_vadjustment (const Glib::RefPtr< Adjustment > &vadjustment) |
Sets the vertical adjustment of the Gtk::Scrollable . | |
void | unset_vadjustment () |
This method removes the vadjustment. | |
Policy | get_hscroll_policy () const |
Gets the horizontal Gtk::Scrollable::Policy . | |
void | set_hscroll_policy (Policy policy) |
Sets the Gtk::Scrollable::Policy . | |
Policy | get_vscroll_policy () const |
Gets the vertical Gtk::Scrollable::Policy . | |
void | set_vscroll_policy (Policy policy) |
Sets the Gtk::Scrollable::Policy . | |
bool | get_border (Border &border) const |
Returns the size of a non-scrolling border around the outside of the scrollable. | |
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > | property_hadjustment () |
Horizontal Gtk::Adjustment of the scrollable widget. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > | property_hadjustment () const |
Horizontal Gtk::Adjustment of the scrollable widget. | |
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > | property_vadjustment () |
Vertical Gtk::Adjustment of the scrollable widget. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > | property_vadjustment () const |
Vertical Gtk::Adjustment of the scrollable widget. | |
Glib::PropertyProxy< Policy > | property_hscroll_policy () |
Determines when horizontal scrolling should start. | |
Glib::PropertyProxy_ReadOnly< Policy > | property_hscroll_policy () const |
Determines when horizontal scrolling should start. | |
Glib::PropertyProxy< Policy > | property_vscroll_policy () |
Determines when vertical scrolling should start. | |
Glib::PropertyProxy_ReadOnly< Policy > | property_vscroll_policy () const |
Determines when vertical scrolling should start. | |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
Protected Member Functions | |
Scrollable () | |
You should derive from this class to use it. | |
virtual bool | get_border_vfunc (Border &border) const |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gtk::Scrollable > | wrap (GtkScrollable *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
This interface is implemented by widgets with native scrolling ability.
|
strong |
Enumerator | |
---|---|
MINIMUM | Scrollable adjustments are based on the minimum size. |
NATURAL | Scrollable adjustments are based on the natural size. |
|
protected |
You should derive from this class to use it.
|
noexcept |
|
overridenoexcept |
bool Gtk::Scrollable::get_border | ( | Border & | border | ) | const |
Returns the size of a non-scrolling border around the outside of the scrollable.
An example for this would be treeview headers. GTK can use this information to display overlaid graphics, like the overshoot indication, at the right position.
border | Return location for the results. |
true
if border has been set. Glib::RefPtr< Adjustment > Gtk::Scrollable::get_hadjustment | ( | ) |
Retrieves the Gtk::Adjustment
used for horizontal scrolling.
Gtk::Adjustment
. Glib::RefPtr< const Adjustment > Gtk::Scrollable::get_hadjustment | ( | ) | const |
Retrieves the Gtk::Adjustment
used for horizontal scrolling.
Gtk::Adjustment
. Policy Gtk::Scrollable::get_hscroll_policy | ( | ) | const |
Gets the horizontal Gtk::Scrollable::Policy
.
Gtk::Scrollable::Policy
.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
Glib::RefPtr< Adjustment > Gtk::Scrollable::get_vadjustment | ( | ) |
Retrieves the Gtk::Adjustment
used for vertical scrolling.
Gtk::Adjustment
. Glib::RefPtr< const Adjustment > Gtk::Scrollable::get_vadjustment | ( | ) | const |
Retrieves the Gtk::Adjustment
used for vertical scrolling.
Gtk::Adjustment
. Policy Gtk::Scrollable::get_vscroll_policy | ( | ) | const |
Gets the vertical Gtk::Scrollable::Policy
.
Gtk::Scrollable::Policy
.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
|
noexcept |
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > Gtk::Scrollable::property_hadjustment | ( | ) |
Horizontal Gtk::Adjustment
of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > Gtk::Scrollable::property_hadjustment | ( | ) | const |
Horizontal Gtk::Adjustment
of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
Glib::PropertyProxy< Policy > Gtk::Scrollable::property_hscroll_policy | ( | ) |
Determines when horizontal scrolling should start.
Default value: Gtk::Scrollabel::Policy::MINIMUM
Glib::PropertyProxy_ReadOnly< Policy > Gtk::Scrollable::property_hscroll_policy | ( | ) | const |
Determines when horizontal scrolling should start.
Default value: Gtk::Scrollabel::Policy::MINIMUM
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > Gtk::Scrollable::property_vadjustment | ( | ) |
Vertical Gtk::Adjustment
of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > Gtk::Scrollable::property_vadjustment | ( | ) | const |
Vertical Gtk::Adjustment
of the scrollable widget.
This adjustment is shared between the scrollable widget and its parent.
Glib::PropertyProxy< Policy > Gtk::Scrollable::property_vscroll_policy | ( | ) |
Determines when vertical scrolling should start.
Default value: Gtk::Scrollabel::Policy::MINIMUM
Glib::PropertyProxy_ReadOnly< Policy > Gtk::Scrollable::property_vscroll_policy | ( | ) | const |
Determines when vertical scrolling should start.
Default value: Gtk::Scrollabel::Policy::MINIMUM
void Gtk::Scrollable::set_hadjustment | ( | const Glib::RefPtr< Adjustment > & | hadjustment | ) |
Sets the horizontal adjustment of the Gtk::Scrollable
.
hadjustment | A Gtk::Adjustment . |
Sets the Gtk::Scrollable::Policy
.
The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.
policy | The horizontal Gtk::Scrollable::Policy . |
void Gtk::Scrollable::set_vadjustment | ( | const Glib::RefPtr< Adjustment > & | vadjustment | ) |
Sets the vertical adjustment of the Gtk::Scrollable
.
vadjustment | A Gtk::Adjustment . |
Sets the Gtk::Scrollable::Policy
.
The policy determines whether vertical scrolling should start below the minimum height or below the natural height.
policy | The vertical Gtk::Scrollable::Policy . |
void Gtk::Scrollable::unset_hadjustment | ( | ) |
This method removes the hadjustment.
void Gtk::Scrollable::unset_vadjustment | ( | ) |
This method removes the vadjustment.
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |