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