Class: Fzeet::SystemIcon
- Includes:
- IconMethods
- Defined in:
- lib/fzeet/Common.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Handle
Instance Method Summary collapse
- #dispose ⇒ Object
-
#initialize(id) ⇒ SystemIcon
constructor
A new instance of SystemIcon.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
206 207 208 |
# File 'lib/fzeet/Common.rb', line 206 def id @id end |
Instance Method Details
#dispose ⇒ Object
208 |
# File 'lib/fzeet/Common.rb', line 208 def dispose; detach end |