14642e01fSmrg/* X11Application.h -- subclass of NSApplication to multiplex events 235c4bbdfSmrg * 335c4bbdfSmrg * Copyright (c) 2002-2012 Apple Inc. All rights reserved. 435c4bbdfSmrg * 535c4bbdfSmrg * Permission is hereby granted, free of charge, to any person 635c4bbdfSmrg * obtaining a copy of this software and associated documentation files 735c4bbdfSmrg * (the "Software"), to deal in the Software without restriction, 835c4bbdfSmrg * including without limitation the rights to use, copy, modify, merge, 935c4bbdfSmrg * publish, distribute, sublicense, and/or sell copies of the Software, 1035c4bbdfSmrg * and to permit persons to whom the Software is furnished to do so, 1135c4bbdfSmrg * subject to the following conditions: 1235c4bbdfSmrg * 1335c4bbdfSmrg * The above copyright notice and this permission notice shall be 1435c4bbdfSmrg * included in all copies or substantial portions of the Software. 1535c4bbdfSmrg * 1635c4bbdfSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1735c4bbdfSmrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1835c4bbdfSmrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1935c4bbdfSmrg * NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT 2035c4bbdfSmrg * HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 2135c4bbdfSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 2235c4bbdfSmrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2335c4bbdfSmrg * DEALINGS IN THE SOFTWARE. 2435c4bbdfSmrg * 2535c4bbdfSmrg * Except as contained in this notice, the name(s) of the above 2635c4bbdfSmrg * copyright holders shall not be used in advertising or otherwise to 2735c4bbdfSmrg * promote the sale, use or other dealings in this Software without 2835c4bbdfSmrg * prior written authorization. 2935c4bbdfSmrg */ 304642e01fSmrg 314642e01fSmrg#ifndef X11APPLICATION_H 324642e01fSmrg#define X11APPLICATION_H 1 334642e01fSmrg 34c8548ba8Smrg#include <X11/Xdefs.h> 35c8548ba8Smrg 364642e01fSmrg#if __OBJC__ 374642e01fSmrg 384642e01fSmrg#import "X11Controller.h" 394642e01fSmrg 40c8548ba8Smrg@interface X11Application : NSApplication 414642e01fSmrg 42c8548ba8Smrg@property (nonatomic, readwrite, strong) X11Controller *controller; 43c8548ba8Smrg@property (nonatomic, readonly, assign) OSX_BOOL x_active; 4435c4bbdfSmrg 454642e01fSmrg@end 464642e01fSmrg 4735c4bbdfSmrgextern X11Application * X11App; 484642e01fSmrg 494642e01fSmrg#endif /* __OBJC__ */ 504642e01fSmrg 5135c4bbdfSmrgvoid 5235c4bbdfSmrgX11ApplicationSetWindowMenu(int nitems, const char **items, 5335c4bbdfSmrg const char *shortcuts); 5435c4bbdfSmrgvoid 5535c4bbdfSmrgX11ApplicationSetWindowMenuCheck(int idx); 5635c4bbdfSmrgvoid 5735c4bbdfSmrgX11ApplicationSetFrontProcess(void); 5835c4bbdfSmrgvoid 5935c4bbdfSmrgX11ApplicationSetCanQuit(int state); 6035c4bbdfSmrgvoid 6135c4bbdfSmrgX11ApplicationServerReady(void); 6235c4bbdfSmrgvoid 6335c4bbdfSmrgX11ApplicationShowHideMenubar(int state); 6435c4bbdfSmrgvoid 6535c4bbdfSmrgX11ApplicationLaunchClient(const char *cmd); 6635c4bbdfSmrg 6735c4bbdfSmrgBool 6835c4bbdfSmrgX11ApplicationCanEnterRandR(void); 6935c4bbdfSmrg 7035c4bbdfSmrgvoid 7135c4bbdfSmrgX11ApplicationMain(int argc, char **argv, char **envp); 7235c4bbdfSmrg 73475c125cSmrgextern Bool XQuartzScrollInDeviceDirection; 74475c125cSmrg 754642e01fSmrg#endif /* X11APPLICATION_H */ 76