Class: Fzeet::SystemIcon

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ SystemIcon

Returns a new instance of SystemIcon.



180
181
182
# File 'lib/fzeet/windows/core/Common.rb', line 180

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.



184
185
186
# File 'lib/fzeet/windows/core/Common.rb', line 184

def id
  @id
end

Instance Method Details

#disposeObject



186
# File 'lib/fzeet/windows/core/Common.rb', line 186

def dispose; detach end