Class: Fzeet::SystemBrush
- Includes:
- BrushMethods
- 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) ⇒ SystemBrush
constructor
A new instance of SystemBrush.
Constructor Details
#initialize(id) ⇒ SystemBrush
Returns a new instance of SystemBrush.
212 213 214 |
# File 'lib/fzeet/windows/core/Common.rb', line 212 def initialize(id) @handle = FFI::Pointer.new((@id = Fzeet.constant(id, :color_, :ctlcolor_)) + 1); attach end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
216 217 218 |
# File 'lib/fzeet/windows/core/Common.rb', line 216 def id @id end |
Instance Method Details
#dispose ⇒ Object
218 |
# File 'lib/fzeet/windows/core/Common.rb', line 218 def dispose; detach end |