class Gtk::RequestedSize

Overview

Represents a request of a screen object in a given orientation. These are primarily used in container implementations when allocating a natural size for children calling. See #distribute_natural_allocation.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/requested_size.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibGtk::RequestedSize, transfer : GICrystal::Transfer) #

[View source]
def self.new(minimum_size : Int32 | Nil = nil, natural_size : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def data : Pointer(Void) | Nil #

[View source]
def data! #

[View source]
def minimum_size : Int32 #

[View source]
def minimum_size=(value : Int32) #

[View source]
def natural_size : Int32 #

[View source]
def natural_size=(value : Int32) #

[View source]
def to_unsafe #

[View source]