class Cairo::UserDataKey

Overview

UserDataKey is used for attaching user data to cairo data structures. The actual contents of the struct is never used, and there is no need to initialize the object; only the unique address of a UserDataKey object is used. Typically, you would just use the address of a static UserDataKey object.

Defined in:

cairo/user_data_key.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(unused : Int32) #

[View source]
def self.new(key : LibCairo::UserDataKeyT) #

[View source]
def self.new #

[View source]

Instance Method Detail

def to_unsafe : LibCairo::PUserDataKeyT #

Returns the pointer of the underlieing structure.


[View source]
def unused : Int32 #

Not used.


[View source]
def unused=(unused : Int32) #

[View source]
def user_data_key : LibCairo::UserDataKeyT #

Returns the underlieing structure.


[View source]