ConstraintGuide

open class ConstraintGuide(pointer: <Error class: unknown class><<Error class: unknown class>>) : ConstraintTarget

A GtkConstraintGuide is 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.

Skipped during bindings generation

  • parameter width: width: Out parameter is not supported

  • parameter width: width: Out parameter is not supported

  • parameter width: width: Out parameter is not supported

  • method max-height: Property has no getter nor setter

  • method max-width: Property has no getter nor setter

  • method min-height: Property has no getter nor setter

  • method min-width: Property has no getter nor setter

  • method nat-height: Property has no getter nor setter

  • method nat-width: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor()

Creates a new GtkConstraintGuide object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkConstraintGuidePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkConstraintTargetPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var name: String?

A name that identifies the GtkConstraintGuide, for debugging.

Link copied to clipboard

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

Functions

Link copied to clipboard
open fun getName(): String?

Retrieves the name set using gtk_constraint_guide_set_name().

Link copied to clipboard

Retrieves the strength set using gtk_constraint_guide_set_strength().

Link copied to clipboard
open fun setMaxSize(width: Int, height: Int)

Sets the maximum size of @guide.

Link copied to clipboard
open fun setMinSize(width: Int, height: Int)

Sets the minimum size of @guide.

Link copied to clipboard
open fun setName(name: String? = null)

Sets a name for the given GtkConstraintGuide.

Link copied to clipboard
open fun setNatSize(width: Int, height: Int)

Sets the natural size of @guide.

Link copied to clipboard
open fun setStrength(strength: ConstraintStrength)

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