gtkmm
4.2.0
|
This interface is implemented by widgets with native scrolling ability. More...
#include <gtkmm/scrollable.h>
Public Types | |
enum | Policy { Policy::MINIMUM, Policy::NATURAL } |
Defines the policy to be used in a scrollable widget when updating the scrolled window adjustments in a given orientation. More... | |
![]() | |
typedef internal::func_destroy_notify | func_destroy_notify |
![]() | |
typedef internal::func_destroy_notify | func_destroy_notify |
Public Member Functions | |
Scrollable (Scrollable&& src) noexcept | |
Scrollable& | operator= (Scrollable&& src) noexcept |
~Scrollable () noexcept override | |
GtkScrollable* | gobj () |
Provides access to the underlying C GObject. More... | |
const GtkScrollable* | gobj () const |
Provides access to the underlying C GObject. More... | |
Glib::RefPtr< Adjustment > | get_hadjustment () |
Retrieves the GtkAdjustment used for horizontal scrolling. More... | |
Glib::RefPtr< const Adjustment > | get_hadjustment () const |
Retrieves the GtkAdjustment used for horizontal scrolling. More... | |
void | set_hadjustment (const Glib::RefPtr< Adjustment >& hadjustment) |
Sets the horizontal adjustment of the GtkScrollable . More... | |
void | unset_hadjustment () |
This method removes the hadjustment. More... | |
Glib::RefPtr< Adjustment > | get_vadjustment () |
Retrieves the GtkAdjustment used for vertical scrolling. More... | |
Glib::RefPtr< const Adjustment > | get_vadjustment () const |
Retrieves the GtkAdjustment used for vertical scrolling. More... | |
void | set_vadjustment (const Glib::RefPtr< Adjustment >& vadjustment) |
Sets the vertical adjustment of the GtkScrollable . More... | |
void | unset_vadjustment () |
This method removes the vadjustment. More... | |
Policy | get_hscroll_policy () const |
Gets the horizontal GtkScrollablePolicy . More... | |
void | set_hscroll_policy (Policy policy) |
Sets the GtkScrollablePolicy . More... | |
Policy | get_vscroll_policy () const |
Gets the vertical GtkScrollablePolicy . More... | |
void | set_vscroll_policy (Policy policy) |
Sets the GtkScrollablePolicy . More... | |
bool | get_border (Border& border) const |
Returns the size of a non-scrolling border around the outside of the scrollable. More... | |
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > | property_hadjustment () |
Horizontal GtkAdjustment of the scrollable widget. More... | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > | property_hadjustment () const |
Horizontal GtkAdjustment of the scrollable widget. More... | |
Glib::PropertyProxy< Glib::RefPtr< Adjustment > > | property_vadjustment () |
Vertical GtkAdjustment of the scrollable widget. More... | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Adjustment > > | property_vadjustment () const |
Vertical GtkAdjustment of the scrollable widget. More... | |
Glib::PropertyProxy< Policy > | property_hscroll_policy () |
Determines when horizontal scrolling should start. More... | |
Glib::PropertyProxy_ReadOnly< Policy > | property_hscroll_policy () const |
Determines when horizontal scrolling should start. More... | |
Glib::PropertyProxy< Policy > | property_vscroll_policy () |
Determines when vertical scrolling should start. More... | |
Glib::PropertyProxy_ReadOnly< Policy > | property_vscroll_policy () const |
Determines when vertical scrolling should start. More... | |
![]() | |
Interface () | |
Interface (Interface &&src) noexcept | |
Interface & | operator= (Interface &&src) noexcept |
Interface (const Glib::Interface_Class &interface_class) | |
Interface (GObject *castitem) | |
~Interface () noexcept override | |
Interface (const Interface &)=delete | |
Interface & | operator= (const Interface &)=delete |
GObject * | gobj () |
const GObject * | gobj () const |
![]() | |
ObjectBase (const ObjectBase &)=delete | |
ObjectBase & | operator= (const ObjectBase &)=delete |
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
PropertyType | get_property (const Glib::ustring &property_name) const |
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
void | freeze_notify () |
void | thaw_notify () |
virtual void | reference () const |
virtual void | unreference () const |
GObject * | gobj () |
const GObject * | gobj () const |
GObject * | gobj_copy () const |
![]() | |
trackable () noexcept | |
trackable (const trackable &src) noexcept | |
trackable (trackable &&src) noexcept | |
~trackable () | |
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
void | notify_callbacks () |
trackable & | operator= (const trackable &src) |
trackable & | operator= (trackable &&src) noexcept |
void | remove_destroy_notify_callback (notifiable *data) const |
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. More... | |
Protected Member Functions | |
Scrollable () | |
You should derive from this class to use it. More... | |
virtual bool | get_border_vfunc (Border& border) const |
![]() | |
ObjectBase () | |
ObjectBase (const char *custom_type_name) | |
ObjectBase (const std::type_info &custom_type_info) | |
ObjectBase (ObjectBase &&src) noexcept | |
ObjectBase & | operator= (ObjectBase &&src) noexcept |
virtual | ~ObjectBase () noexcept=0 |
void | initialize (GObject *castitem) |
void | initialize_move (GObject *castitem, Glib::ObjectBase *previous_wrapper) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gtk::Scrollable > | wrap (GtkScrollable* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
This interface is implemented by widgets with native scrolling ability.
|
protected |
You should derive from this class to use it.
|
noexcept |
|
overridenoexcept |
|
static |
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.
|
protectedvirtual |
Glib::RefPtr<Adjustment> Gtk::Scrollable::get_hadjustment | ( | ) |
Retrieves the GtkAdjustment
used for horizontal scrolling.
GtkAdjustment
. Glib::RefPtr<const Adjustment> Gtk::Scrollable::get_hadjustment | ( | ) | const |
Retrieves the GtkAdjustment
used for horizontal scrolling.
GtkAdjustment
. Policy Gtk::Scrollable::get_hscroll_policy | ( | ) | const |
Gets the horizontal GtkScrollablePolicy
.
GtkScrollablePolicy
.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
Glib::RefPtr<Adjustment> Gtk::Scrollable::get_vadjustment | ( | ) |
Retrieves the GtkAdjustment
used for vertical scrolling.
GtkAdjustment
. Glib::RefPtr<const Adjustment> Gtk::Scrollable::get_vadjustment | ( | ) | const |
Retrieves the GtkAdjustment
used for vertical scrolling.
GtkAdjustment
. Policy Gtk::Scrollable::get_vscroll_policy | ( | ) | const |
Gets the vertical GtkScrollablePolicy
.
GtkScrollablePolicy
.
|
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 GtkAdjustment
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 GtkAdjustment
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 GtkAdjustment
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 GtkAdjustment
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 GtkScrollable
.
hadjustment | A GtkAdjustment . |
void Gtk::Scrollable::set_hscroll_policy | ( | Policy | policy | ) |
Sets the GtkScrollablePolicy
.
The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.
policy | The horizontal GtkScrollablePolicy . |
void Gtk::Scrollable::set_vadjustment | ( | const Glib::RefPtr< Adjustment >& | vadjustment | ) |
Sets the vertical adjustment of the GtkScrollable
.
vadjustment | A GtkAdjustment . |
void Gtk::Scrollable::set_vscroll_policy | ( | Policy | policy | ) |
Sets the GtkScrollablePolicy
.
The policy determines whether vertical scrolling should start below the minimum height or below the natural height.
policy | The vertical GtkScrollablePolicy . |
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. |