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



274
275
276
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 274

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

.NSMenu(*args) ⇒ Object



340
341
342
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 340

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

.NSMenuItem(*args) ⇒ Object



389
390
391
# File 'lib/ruby-sdl-ffi/sdl/mac.rb', line 389

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