class Gio::ActionEntry

Overview

This struct defines a single action. It is for use with g_action_map_add_action_entries().

The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as nil. All values after @name are optional. Additional optional fields may be added in the future.

See g_action_map_add_action_entries() for an example.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/action_entry.cr

Constructors

Instance Method Summary

Constructor Detail

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

def self.new(data : LibGio::ActionEntry, transfer : GICrystal::Transfer) #

def self.new(activate : Gio::Activate? = nil, change_state : Gio::ChangeState? = nil, padding : Enumerable(UInt64)? = 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 activate : Gio::Activate #

def activate=(value : Gio::Activate) #

def change_state : Gio::ChangeState #

def change_state=(value : Gio::ChangeState) #

def name : String? #

def name! #

def padding : Enumerable(UInt64) #

def padding=(value : Enumerable(UInt64)) #

def parameter_type : String? #

def parameter_type! #

def state : String? #

def state! #

def to_unsafe #