Class: Fzeet::IndirectFont
- Includes:
- FontMethods
- Defined in:
- lib/fzeet/windows/core/Common.rb
Instance Attribute Summary collapse
-
#logfont ⇒ Object
readonly
Returns the value of attribute logfont.
Instance Method Summary collapse
- #dispose ⇒ Object
-
#initialize(logfont) ⇒ IndirectFont
constructor
A new instance of IndirectFont.
Constructor Details
#initialize(logfont) ⇒ IndirectFont
Returns a new instance of IndirectFont.
228 229 230 |
# File 'lib/fzeet/windows/core/Common.rb', line 228 def initialize(logfont) @handle = Windows.DetonateLastError(FFI::Pointer::NULL, :CreateFontIndirect, @logfont = logfont); attach end |
Instance Attribute Details
#logfont ⇒ Object (readonly)
Returns the value of attribute logfont.
232 233 234 |
# File 'lib/fzeet/windows/core/Common.rb', line 232 def logfont @logfont end |
Instance Method Details
#dispose ⇒ Object
234 |
# File 'lib/fzeet/windows/core/Common.rb', line 234 def dispose; Windows.DeleteObject(@handle); detach end |