1.38 <GtkConstraintGuide>

Class: <GtkConstraintGuide>

It derives from <GObject>.

An invisible layout element in a <GtkConstraintLayout>.

The <GtkConstraintLayout> treats guides like widgets. They can be used as the source or target of a <GtkConstraint>.

Guides have a minimum, maximum and natural size. Depending on the constraints that are applied, they can act like a guideline that widgets can be aligned to, or like flexible space.

Unlike a <GtkWidget>, a <GtkConstraintGuide> will not be drawn.

Properties

Property: constraint-guide:max-height self

The maximum height of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:max-height self) value).

Property: constraint-guide:max-width self

The maximum width of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:max-width self) value).

Property: constraint-guide:min-height self

The minimum height of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:min-height self) value).

Property: constraint-guide:min-width self

The minimum width of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:min-width self) value).

Property: constraint-guide:name self

A name that identifies the <GtkConstraintGuide>, for debugging.

Its value is a string, or #f.

Set it with (set! (constraint-guide:name self) value).

Property: constraint-guide:nat-height self

The preferred, or natural, height of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:nat-height self) value).

Property: constraint-guide:nat-width self

The preferred, or natural, width of the guide.

Its value is a 32-bit integer.

Set it with (set! (constraint-guide:nat-width self) value).

Property: constraint-guide:strength self

The <GtkConstraintStrength> to be used for the constraint on the natural size of the guide.

Its value is a <GtkConstraintStrength> (or, to set it, one of its symbols).

Set it with (set! (constraint-guide:strength self) value).

Procedures

Method: constraint-guide:get-max-size self ⇒ width height
Method: get-max-size self ⇒ width height

Gets the maximum size of self.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Returned: a 32-bit integer.

return location for the maximum width

height

Returned: a 32-bit integer.

return location for the maximum height

Method: constraint-guide:get-min-size self ⇒ width height
Method: get-min-size self ⇒ width height

Gets the minimum size of self.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Returned: a 32-bit integer.

return location for the minimum width

height

Returned: a 32-bit integer.

return location for the minimum height

Method: constraint-guide:get-name self ⇒ %return
Method: get-name self ⇒ %return

Retrieves the name set using constraint-guide:set-name.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide>

%return

Returned: a string, or #f.

the name of the guide

Method: constraint-guide:get-nat-size self ⇒ width height
Method: get-nat-size self ⇒ width height

Gets the natural size of self.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Returned: a 32-bit integer.

return location for the natural width

height

Returned: a 32-bit integer.

return location for the natural height

Method: constraint-guide:get-strength self ⇒ %return
Method: get-strength self ⇒ %return

Retrieves the strength set using constraint-guide:set-strength.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide>

%return

Returned: a <GtkConstraintStrength>.

the strength of the constraint on the natural size

Procedure: constraint-guide:new ⇒ %return

Creates a new <GtkConstraintGuide> object.

%return

Returned: a <GtkConstraintGuide>.

a new <GtkConstraintGuide> object.

Method: constraint-guide:set-max-size self width height
Method: set-max-size self width height

Sets the maximum size of self.

If self is attached to a <GtkConstraintLayout>, the constraints will be updated to reflect the new size.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Passed: a 32-bit integer.

the new maximum width, or -1 to not change it

height

Passed: a 32-bit integer.

the new maximum height, or -1 to not change it

Method: constraint-guide:set-min-size self width height
Method: set-min-size self width height

Sets the minimum size of self.

If self is attached to a <GtkConstraintLayout>, the constraints will be updated to reflect the new size.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Passed: a 32-bit integer.

the new minimum width, or -1 to not change it

height

Passed: a 32-bit integer.

the new minimum height, or -1 to not change it

Method: constraint-guide:set-name self [name]
Method: set-name self [name]

Sets a name for the given <GtkConstraintGuide>.

The name is useful for debugging purposes.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide>

name

Passed, or left out: a string, or #f.

a name for the self

Method: constraint-guide:set-nat-size self width height
Method: set-nat-size self width height

Sets the natural size of self.

If self is attached to a <GtkConstraintLayout>, the constraints will be updated to reflect the new size.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide> object

width

Passed: a 32-bit integer.

the new natural width, or -1 to not change it

height

Passed: a 32-bit integer.

the new natural height, or -1 to not change it

Method: constraint-guide:set-strength self strength
Method: set-strength self strength

Sets the strength of the constraint on the natural size of the given <GtkConstraintGuide>.

self

Passed: a <GtkConstraintGuide>.

a <GtkConstraintGuide>

strength

Passed: a <GtkConstraintStrength>, or one of its symbols.

the strength of the constraint