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) #

def self.new(data : Pointer(Void)? = nil, minimum_size : Int32? = nil, natural_size : Int32? = nil) #

Instance Method Detail

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

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


def data : Pointer(Void)? #

def data! #

def data=(value : Pointer(Void)?) #

def minimum_size : Int32 #

def minimum_size=(value : Int32) #

def natural_size : Int32 #

def natural_size=(value : Int32) #

def to_unsafe #