All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cocoa.appkit.AppKit.scala Maven / Gradle / Ivy

The newest version!
package cocoa.appkit

import cocoa.foundation.{BOOL, NSInteger, NSString}
import scalanative.native._
import objc.runtime.id


@extern
object AppKit {

  type _NSModalSession = Ptr[Byte]
  type NSThreadPrivate = Ptr[Byte]
  type __appFlags = Ptr[Byte]

  def NSApplicationMain(argc: Int, argv: Ptr[CString]): CInt = extern
  def NSApplicationLoad(): BOOL = extern
  def NSShowsServicesMenuItem(itemName: NSString): BOOL = extern
  def NSSetShowsServicesMenuItem(itemName: NSString, enabled: BOOL): NSInteger = extern
  def NSUpdateDynamicServices(): Unit = extern
//  def NSPerformService(itemName: NSString, pboard: NSPasteboard): BOOL = extern
  def NSRegisterServicesProvider(provider: id, name: NSString): Unit = extern
  def NSUnregisterServicesProvider(name: NSString): Unit = extern

  // from NSEvent.h
//  def NSEventMaskFromType(`type`: NSEventType): NSEventMask = extern
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy