SDL::Mac::Cocoa::NSMenuItem

Public Class Methods

new( *args ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 356
def initialize( *args )
  if args.empty?
    super( ObjC::NSClass("NSMenuItem").msg_ptr("alloc") )
  else
    super( args[0] )
  end
end
separatorItem() click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 352
def self.separatorItem
  new( msg_ptr("separatorItem") )
end

Public Instance Methods

hasSubmenu?() click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 382
def hasSubmenu?
  msg_bool("hasSubmenu")
end
initWithTitle( title, action=nil, keyEquivalent="" ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 364
def initWithTitle( title, action=nil, keyEquivalent="" )
  ptr = FFI.find_type(:pointer)
  action = ObjC.sel(action) if action.is_a? String
  msg( "initWithTitle:action:keyEquivalent:",
       ptr, ObjC::NSString(title),
       ptr, action,
       ptr, ObjC::NSString(keyEquivalent))
  self
end
title() click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 374
def title
  msg_str("title")
end
title=( t ) click to toggle source
# File lib/ruby-sdl-ffi/sdl/mac.rb, line 378
def title=( t )
  msg("setTitle:", FFI.find_type(:pointer), ObjC::NSString(t))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.