Class: Fzeet::SystemIcon

Inherits:
Handle
  • Object
show all
Includes:
IconMethods
Defined in:
lib/fzeet/Common.rb

Instance Attribute Summary collapse

Attributes inherited from Handle

#handle

Instance Method Summary collapse

Methods inherited from Handle

#attach, #detach, #dup, instance, instance?, wrap

Constructor Details

#initialize(id) ⇒ SystemIcon

Returns a new instance of SystemIcon.



202
203
204
# File 'lib/fzeet/Common.rb', line 202

def initialize(id)
	@handle = Windows.DetonateLastError(FFI::Pointer::NULL, :LoadIcon, nil, @id = Fzeet.constant(id, :idi_)); attach
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



206
207
208
# File 'lib/fzeet/Common.rb', line 206

def id
  @id
end

Instance Method Details

#disposeObject



208
# File 'lib/fzeet/Common.rb', line 208

def dispose; detach end