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

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

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

[View source]
def activate=(value : Gio::Activate) #

[View source]
def change_state : Gio::ChangeState #

[View source]
def change_state=(value : Gio::ChangeState) #

[View source]
def name : String | Nil #

[View source]
def name! #

[View source]
def padding : Enumerable(UInt64) #

[View source]
def padding=(value : Enumerable(UInt64)) #

[View source]
def parameter_type : String | Nil #

[View source]
def parameter_type! #

[View source]
def state : String | Nil #

[View source]
def state! #

[View source]
def to_unsafe #

[View source]