Class: Fzeet::ScreenDC

Inherits:
Handle
  • Object
show all
Includes:
DCMethods
Defined in:
lib/fzeet/windows/core/Common.rb

Instance Method Summary collapse

Methods included from DCMethods

#background, #background=, #color, #color=, #fillRect, #line, #move, #select, #sms, #text, #textExtent

Constructor Details

#initializeScreenDC

Returns a new instance of ScreenDC.



318
319
320
# File 'lib/fzeet/windows/core/Common.rb', line 318

def initialize
	@handle = Windows.DetonateLastError(FFI::Pointer::NULL, :GetDC, nil); attach
end

Instance Method Details

#disposeObject



322
# File 'lib/fzeet/windows/core/Common.rb', line 322

def dispose; Windows.ReleaseDC(nil, @handle); detach end