Lines Matching +full:close +full:- +full:pull
31 #include "qemu/help-texts.h"
32 #include "qemu-main.h"
36 #include "ui/kbd-state.h"
39 #include "system/runstate-action.h"
40 #include "system/cpu-throttle.h"
42 #include "qapi/qapi-commands-block.h"
43 #include "qapi/qapi-commands-machine.h"
44 #include "qapi/qapi-commands-misc.h"
46 #include "qemu-version.h"
48 #include "qemu/main-loop.h"
50 #include "qemu/error-report.h"
109 static NSInteger cbchangecount = -1;
299 ------------------------------------------------------
301 ------------------------------------------------------
309 * pointing device an absolute-position one?"], but is only updated on
313 * and whether we capture the mouse when in non-absolute mode.
325 - (void) switchSurface:(pixman_image_t *)image;
326 - (void) grabMouse;
327 - (void) ungrabMouse;
328 - (void) setFullGrab:(id)sender;
329 - (void) handleMonitorInput:(NSEvent *)event;
330 - (bool) handleEvent:(NSEvent *)event;
331 - (bool) handleEventLocked:(NSEvent *)event;
332 - (void) notifyMouseModeChange;
333 - (BOOL) isMouseGrabbed;
334 - (QEMUScreen) gscreen;
335 - (void) raiseAllKeys;
354 - (id)initWithFrame:(NSRect)frameRect
391 - (void) dealloc
409 - (BOOL) isOpaque
414 - (void) viewDidMoveToWindow
419 - (void) selectConsoleLocked:(unsigned int)index
434 - (void) hideCursor
442 - (void) unhideCursor
450 - (void)setMouseX:(int)x y:(int)y on:(bool)on
459 position.y = screen.height - mouseY;
468 - (void)setCursor:(QEMUCursor *)given_cursor
483 bounds.size.width = cursor->width;
484 bounds.size.height = cursor->height;
488 cursor->data,
489 cursor->width * cursor->height * 4,
494 cursor->width, //width
495 cursor->height, //height
498 cursor->width * 4, //bytesPerRow
516 - (void) drawRect:(NSRect) rect
566 clipRect.origin.y = (float)h - (clipRect.origin.y + clipRect.size.height);
579 - (NSSize)fixAspectRatio:(NSSize)max
616 - (NSSize) screenSafeAreaSize
620 size.width -= insets.left + insets.right;
621 size.height -= insets.top + insets.bottom;
625 - (void) resizeWindow
640 - (void) updateBounds
646 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
648 - (void) updateUIInfoLocked
696 - (void) updateUIInfo
701 * startup phase -- we haven't yet registered dcl with the QEMU UI
715 - (void) switchSurface:(pixman_image_t *)image
739 - (void) setFullGrab:(id)sender
769 - (void) toggleKey: (int)keycode {
774 - (void) handleMonitorInput:(NSEvent *)event
838 - (bool) handleEvent:(NSEvent *)event
845 - (bool) handleEventLocked:(NSEvent *)event
854 * Check -[NSEvent modifierFlags] here.
857 * -[NSEvent modifierFlags], NSEventTypeFlagsChanged but these operations
866 * ---------------------------
872 * ---------------
879 * -[NSEvent keyCode] of an event whose -[NSEvent type] is
882 * - It does not work when the application is inactive as described above.
883 * - It malfactions *after* the modifier state is changed while the
884 * application is inactive. It is because -[NSEvent keyCode] does not tell
1014 [self selectConsoleLocked:key - '0' - 1]; /* ascii math */
1034 // don't pass the guest a spurious key-up if we treated this
1035 // command-key combo as a host UI action
1047 * This is in-line with standard Mac OS X UI behaviour.
1076 - (void) handleMouseEvent:(NSEvent *)event button:(InputButton)button down:(bool)down
1089 - (void) handleMouseEvent:(NSEvent *)event
1102 qemu_input_queue_abs(dcl.con, INPUT_AXIS_Y, screen.height - p.y * d, 0, screen.height);
1112 - (void) mouseExited:(NSEvent *)event
1119 - (void) mouseEntered:(NSEvent *)event
1126 - (void) mouseMoved:(NSEvent *)event
1131 - (void) mouseDown:(NSEvent *)event
1136 - (void) rightMouseDown:(NSEvent *)event
1141 - (void) otherMouseDown:(NSEvent *)event
1146 - (void) mouseDragged:(NSEvent *)event
1151 - (void) rightMouseDragged:(NSEvent *)event
1156 - (void) otherMouseDragged:(NSEvent *)event
1161 - (void) mouseUp:(NSEvent *)event
1170 - (void) rightMouseUp:(NSEvent *)event
1175 - (void) otherMouseUp:(NSEvent *)event
1180 - (void) grabMouse
1185 …[[self window] setTitle:[NSString stringWithFormat:@"QEMU %s - (Press " UC_CTRL_KEY " " UC_ALT_KE…
1187 … [[self window] setTitle:@"QEMU - (Press " UC_CTRL_KEY " " UC_ALT_KEY " G to release Mouse)"];
1193 - (void) ungrabMouse
1207 - (void) notifyMouseModeChange {
1226 - (BOOL) isMouseGrabbed {return isMouseGrabbed;}
1227 - (QEMUScreen) gscreen {return screen;}
1234 - (void) raiseAllKeys
1241 - (void) raiseAllButtons
1254 ------------------------------------------------------
1256 ------------------------------------------------------
1262 - (void)doToggleFullScreen:(id)sender;
1263 - (void)showQEMUDoc:(id)sender;
1264 - (void)zoomToFit:(id) sender;
1265 - (void)displayConsole:(id)sender;
1266 - (void)pauseQEMU:(id)sender;
1267 - (void)resumeQEMU:(id)sender;
1268 - (void)displayPause;
1269 - (void)removePause;
1270 - (void)restartQEMU:(id)sender;
1271 - (void)powerDownQEMU:(id)sender;
1272 - (void)ejectDeviceMedia:(id)sender;
1273 - (void)changeDeviceMedia:(id)sender;
1274 - (BOOL)verifyQuit;
1275 - (void)openDocumentation:(NSString *)filename;
1276 - (IBAction) do_about_menu_item: (id) sender;
1277 - (void)adjustSpeed:(id)sender;
1281 - (id) init
1328 - (void) dealloc
1339 - (void)applicationDidFinishLaunching: (NSNotification *) note
1345 - (void)applicationWillTerminate:(NSNotification *)aNotification
1362 - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
1367 - (NSApplicationTerminateReply)applicationShouldTerminate:
1374 - (void)windowDidChangeScreen:(NSNotification *)notification
1379 - (void)windowDidEnterFullScreen:(NSNotification *)notification
1384 - (void)windowDidExitFullScreen:(NSNotification *)notification
1390 - (void)windowDidResize:(NSNotification *)notification
1396 /* Called when the user clicks on a window's close button */
1397 - (BOOL)windowShouldClose:(id)sender
1409 - (NSApplicationPresentationOptions) window:(NSWindow *)window
1419 * [-NSWindowDelegate windowDidResignKey:] is used here instead of
1420 * [-NSApplicationDelegate applicationWillResignActive:] because it cannot
1423 - (void) windowDidResignKey: (NSNotification *)aNotification
1434 - (void) doToggleFullScreen:(id)sender
1439 - (void) setFullGrab:(id)sender
1447 - (void) openDocumentation: (NSString *) filename
1473 - (void)showQEMUDoc:(id)sender
1481 - (void)zoomToFit:(id) sender
1490 - (void)toggleZoomInterpolation:(id) sender
1502 - (void)displayConsole:(id)sender
1510 - (void)pauseQEMU:(id)sender
1521 - (void)resumeQEMU:(id) sender
1532 - (void)displayPause
1536 xCoord = ([cocoaView frame].size.width - [pauseLabel frame].size.width)/2;
1537 …yCoord = [cocoaView frame].size.height - [pauseLabel frame].size.height - ([pauseLabel frame].size…
1545 - (void)removePause
1551 - (void)restartQEMU:(id)sender
1559 - (void)powerDownQEMU:(id)sender
1569 - (void)ejectDeviceMedia:(id)sender
1590 - (void)changeDeviceMedia:(id)sender
1631 - (BOOL)verifyQuit
1646 - (IBAction) do_about_menu_item: (id) sender
1674 - (void)adjustSpeed:(id)sender
1709 - (void)sendEvent:(NSEvent *)event
1777 for (p = 10; p >= 0; p--)
1789 throttle_pct = -1 * percentage + 100;
1881 deviceName = [[NSString stringWithFormat: @"%s", currentDevice->value->device] retain];
1883 if(currentDevice->value->removable) {
1884 …em alloc] initWithTitle: [NSString stringWithFormat: @"Change %s...", currentDevice->value->device]
1891 …nuItem alloc] initWithTitle: [NSString stringWithFormat: @"Eject %s", currentDevice->value->device]
1898 currentDevice = currentDevice->next;
1919 - (void)pasteboard:(NSPasteboard *)sender provideDataForType:(NSPasteboardType)type
1931 info->types[QEMU_CLIPBOARD_TYPE_TEXT].available &&
1932 info->types[QEMU_CLIPBOARD_TYPE_TEXT].data == NULL) {
1939 NSData *data = [[NSData alloc] initWithBytes:info->types[QEMU_CLIPBOARD_TYPE_TEXT].data
1940 length:info->types[QEMU_CLIPBOARD_TYPE_TEXT].size];
1963 if (info->owner == &cbpeer || info->selection != QEMU_CLIPBOARD_SELECTION_CLIPBOARD) {
1982 switch (notify->type) {
1984 cocoa_clipboard_update_info(notify->info);
2031 NSRect rect = NSMakeRect(x, [cocoaView gscreen].height - y - h, w, h);
2039 pixman_image_t *image = surface->image;
2059 graphic_hw_update(dcl->con);
2065 cbinfo->types[QEMU_CLIPBOARD_TYPE_TEXT].available = true;
2086 [cocoaView setCursor:qemu_console_get_cursor(dcl->con)];
2096 // Pull this console process up to being a fully-fledged graphical
2108 if (opts->has_full_screen && opts->full_screen) {
2111 if (opts->u.cocoa.has_full_grab && opts->u.cocoa.full_grab) {
2115 if (opts->has_show_cursor && opts->show_cursor) {
2118 if (opts->u.cocoa.has_swap_opt_cmd) {
2119 swap_opt_cmd = opts->u.cocoa.swap_opt_cmd;
2122 if (opts->u.cocoa.has_left_command_key && !opts->u.cocoa.left_command_key) {
2126 if (opts->u.cocoa.has_zoom_to_fit && opts->u.cocoa.zoom_to_fit) {
2130 if (opts->u.cocoa.has_zoom_interpolation && opts->u.cocoa.zoom_interpolation) {