Module: SDL::Mac::Cocoa

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

Defined Under Namespace

Classes: NSMenu, NSMenuItem

Constant Summary collapse

NSNibOwner =
ObjC::NSString( ObjC::NSString(self.vNSNibOwner).to_s )
NSNibTopLevelObjects =
ObjC::NSString( ObjC::NSString(self.vNSNibTopLevelObjects).to_s )
NSAlphaShiftKeyMask =
1 << 16
NSShiftKeyMask =
1 << 17
NSControlKeyMask =
1 << 18
NSAlternateKeyMask =
1 << 19
NSCommandKeyMask =
1 << 20
NSNumericPadKeyMask =
1 << 21
NSHelpKeyMask =
1 << 22
NSFunctionKeyMask =
1 << 23

Class Method Summary collapse

Class Method Details

.NSAppObject



280
281
282
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 280

def self.NSApp
  @nsapp ||= ObjC::NSClass("NSApplication").msg("sharedApplication")
end

.NSMenu(*args) ⇒ Object



346
347
348
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 346

def self.NSMenu( *args )
  NSMenu.new( *args )
end

.NSMenuItem(*args) ⇒ Object



395
396
397
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 395

def self.NSMenuItem( *args )
  NSMenuItem.new( *args )
end