Class: Fzeet::SystemCursor
- Includes:
- CursorMethods
- 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) ⇒ SystemCursor
constructor
A new instance of SystemCursor.
Constructor Details
#initialize(id) ⇒ SystemCursor
Returns a new instance of SystemCursor.
196 197 198 |
# File 'lib/fzeet/windows/core/Common.rb', line 196 def initialize(id) @handle = Windows.DetonateLastError(FFI::Pointer::NULL, :LoadCursor, nil, @id = Fzeet.constant(id, :idc_)); attach end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
200 201 202 |
# File 'lib/fzeet/windows/core/Common.rb', line 200 def id @id end |
Instance Method Details
#dispose ⇒ Object
202 |
# File 'lib/fzeet/windows/core/Common.rb', line 202 def dispose; detach end |