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

KCurrentProcess =

Some relevant constants (but not part of the same enum)

2
KProcessTransformToForegroundApplication =
1

Class Method Summary collapse

Class Method Details

.make_current_frontObject

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



429
430
431
432
433
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 429

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