Module: SDL::Mac::HIServices

Extended by:
NiceFFI::Library
Defined in:
lib/ruby-sdl-ffi/sdl/mac.rb

Defined Under Namespace

Classes: ProcessSerialNumber

Constant Summary collapse

KProcessTransformToForegroundApplication =
1

Class Method Summary collapse

Class Method Details

.make_current_frontObject

Does the magic to make the current process a front process.



434
435
436
437
438
439
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 434

def self.make_current_front
  current = ProcessSerialNumber.new( [0, 0] )
  GetCurrentProcess( current )
  TransformProcessType(current,KProcessTransformToForegroundApplication)
  SetFrontProcess( current )
end