gtkmm 4.16.0
|
An invisible constraint target. More...
#include <gtkmm/constraintguide.h>
Public Member Functions | |
ConstraintGuide (ConstraintGuide &&src) noexcept | |
ConstraintGuide & | operator= (ConstraintGuide &&src) noexcept |
~ConstraintGuide () noexcept override | |
GtkConstraintGuide * | gobj () |
Provides access to the underlying C GObject. | |
const GtkConstraintGuide * | gobj () const |
Provides access to the underlying C GObject. | |
GtkConstraintGuide * | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | set_min_size (int width, int height) |
Sets the minimum size of guide. | |
void | get_min_size (int & width, int &height) const |
Gets the minimum size of guide. | |
void | set_nat_size (int width, int height) |
Sets the natural size of guide. | |
void | get_nat_size (int & width, int &height) const |
Gets the natural size of guide. | |
void | set_max_size (int width, int height) |
Sets the maximum size of guide. | |
void | get_max_size (int & width, int &height) const |
Gets the maximum size of guide. | |
void | set_strength (Constraint::Strength strength) |
Sets the strength of the constraint on the natural size of the given Gtk::ConstraintGuide . | |
Constraint::Strength | get_strength () const |
Retrieves the strength set using set_strength(). | |
void | set_name (const Glib::ustring & name) |
Sets a name for the given Gtk::ConstraintGuide . | |
Glib::ustring | get_name () const |
Retrieves the name set using set_name(). | |
Glib::PropertyProxy< int > | property_min_width () |
The minimum width of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_min_width () const |
The minimum width of the guide. | |
Glib::PropertyProxy< int > | property_min_height () |
The minimum height of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_min_height () const |
The minimum height of the guide. | |
Glib::PropertyProxy< int > | property_nat_width () |
The preferred, or natural, width of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_nat_width () const |
The preferred, or natural, width of the guide. | |
Glib::PropertyProxy< int > | property_nat_height () |
The preferred, or natural, height of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_nat_height () const |
The preferred, or natural, height of the guide. | |
Glib::PropertyProxy< int > | property_max_width () |
The maximum width of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_max_width () const |
The maximum width of the guide. | |
Glib::PropertyProxy< int > | property_max_height () |
The maximum height of the guide. | |
Glib::PropertyProxy_ReadOnly< int > | property_max_height () const |
The maximum height of the guide. | |
Glib::PropertyProxy< Constraint::Strength > | property_strength () |
The Gtk::ConstraintStrength to be used for the constraint on the natural size of the guide. | |
Glib::PropertyProxy_ReadOnly< Constraint::Strength > | property_strength () const |
The Gtk::ConstraintStrength to be used for the constraint on the natural size of the guide. | |
Glib::PropertyProxy< Glib::ustring > | property_name () |
A name that identifies the Gtk::ConstraintGuide , for debugging. | |
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
A name that identifies the Gtk::ConstraintGuide , for debugging. | |
Public Member Functions inherited from Gtk::ConstraintTarget | |
ConstraintTarget (ConstraintTarget &&src) noexcept | |
ConstraintTarget & | operator= (ConstraintTarget &&src) noexcept |
~ConstraintTarget () noexcept override | |
GtkConstraintTarget * | gobj () |
Provides access to the underlying C GObject. | |
const GtkConstraintTarget * | gobj () const |
Provides access to the underlying C GObject. | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. | |
static Glib::RefPtr< ConstraintGuide > | create () |
Static Public Member Functions inherited from Gtk::ConstraintTarget | |
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 | |
ConstraintGuide () | |
Protected Member Functions inherited from Gtk::ConstraintTarget | |
ConstraintTarget () | |
You should derive from this class to use it. | |
Related Symbols | |
(Note that these are not member symbols.) | |
Glib::RefPtr< Gtk::ConstraintGuide > | wrap (GtkConstraintGuide *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
Related Symbols inherited from Gtk::ConstraintTarget | |
Glib::RefPtr< Gtk::ConstraintTarget > | wrap (GtkConstraintTarget *object, bool take_copy=false) |
A Glib::wrap() method for this object. | |
An invisible constraint target.
A ConstraintGuide is an invisible layout element that can be used by widgets inside a Gtk::ConstraintLayout as a source or a target of a Gtk::Constraint. Guides can be used like guidelines or as flexible space.
Unlike a Gtk::Widget, a Gtk::ConstraintGuide will not be drawn.
|
noexcept |
|
overridenoexcept |
|
protected |
|
static |
void Gtk::ConstraintGuide::get_max_size | ( | int & | width, |
int & | height | ||
) | const |
Gets the maximum size of guide.
width | Return location for the maximum width. |
height | Return location for the maximum height. |
void Gtk::ConstraintGuide::get_min_size | ( | int & | width, |
int & | height | ||
) | const |
Gets the minimum size of guide.
width | Return location for the minimum width. |
height | Return location for the minimum height. |
Glib::ustring Gtk::ConstraintGuide::get_name | ( | ) | const |
Retrieves the name set using set_name().
void Gtk::ConstraintGuide::get_nat_size | ( | int & | width, |
int & | height | ||
) | const |
Gets the natural size of guide.
width | Return location for the natural width. |
height | Return location for the natural height. |
Constraint::Strength Gtk::ConstraintGuide::get_strength | ( | ) | const |
Retrieves the strength set using set_strength().
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
GtkConstraintGuide * Gtk::ConstraintGuide::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
noexcept |
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_max_height | ( | ) |
The maximum height of the guide.
Default value: 2147483647
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_max_height | ( | ) | const |
The maximum height of the guide.
Default value: 2147483647
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_max_width | ( | ) |
The maximum width of the guide.
Default value: 2147483647
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_max_width | ( | ) | const |
The maximum width of the guide.
Default value: 2147483647
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_min_height | ( | ) |
The minimum height of the guide.
Default value: 0
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_min_height | ( | ) | const |
The minimum height of the guide.
Default value: 0
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_min_width | ( | ) |
The minimum width of the guide.
Default value: 0
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_min_width | ( | ) | const |
The minimum width of the guide.
Default value: 0
Glib::PropertyProxy< Glib::ustring > Gtk::ConstraintGuide::property_name | ( | ) |
A name that identifies the Gtk::ConstraintGuide
, for debugging.
Default value: ""
Glib::PropertyProxy_ReadOnly< Glib::ustring > Gtk::ConstraintGuide::property_name | ( | ) | const |
A name that identifies the Gtk::ConstraintGuide
, for debugging.
Default value: ""
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_nat_height | ( | ) |
The preferred, or natural, height of the guide.
Default value: 0
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_nat_height | ( | ) | const |
The preferred, or natural, height of the guide.
Default value: 0
Glib::PropertyProxy< int > Gtk::ConstraintGuide::property_nat_width | ( | ) |
The preferred, or natural, width of the guide.
Default value: 0
Glib::PropertyProxy_ReadOnly< int > Gtk::ConstraintGuide::property_nat_width | ( | ) | const |
The preferred, or natural, width of the guide.
Default value: 0
Glib::PropertyProxy< Constraint::Strength > Gtk::ConstraintGuide::property_strength | ( | ) |
The Gtk::ConstraintStrength
to be used for the constraint on the natural size of the guide.
Default value: Gtk::Constraint::Strength::MEDIUM
Glib::PropertyProxy_ReadOnly< Constraint::Strength > Gtk::ConstraintGuide::property_strength | ( | ) | const |
The Gtk::ConstraintStrength
to be used for the constraint on the natural size of the guide.
Default value: Gtk::Constraint::Strength::MEDIUM
void Gtk::ConstraintGuide::set_max_size | ( | int | width, |
int | height | ||
) |
Sets the maximum size of guide.
If guide is attached to a Gtk::ConstraintLayout
, the constraints will be updated to reflect the new size.
width | The new maximum width, or -1 to not change it. |
height | The new maximum height, or -1 to not change it. |
void Gtk::ConstraintGuide::set_min_size | ( | int | width, |
int | height | ||
) |
Sets the minimum size of guide.
If guide is attached to a Gtk::ConstraintLayout
, the constraints will be updated to reflect the new size.
width | The new minimum width, or -1 to not change it. |
height | The new minimum height, or -1 to not change it. |
Sets a name for the given Gtk::ConstraintGuide
.
The name is useful for debugging purposes.
name | A name for the guide. |
void Gtk::ConstraintGuide::set_nat_size | ( | int | width, |
int | height | ||
) |
Sets the natural size of guide.
If guide is attached to a Gtk::ConstraintLayout
, the constraints will be updated to reflect the new size.
width | The new natural width, or -1 to not change it. |
height | The new natural height, or -1 to not change it. |
void Gtk::ConstraintGuide::set_strength | ( | Constraint::Strength | strength | ) |
Sets the strength of the constraint on the natural size of the given Gtk::ConstraintGuide
.
strength | The strength of the constraint. |
|
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. |