aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xquartz/pbproxy/x-selection.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-03-27 17:04:46 +0200
committermarha <marha@users.sourceforge.net>2012-03-27 17:04:46 +0200
commitec617f09d07e32d6f57c0da133f53ad3d43a568a (patch)
tree336f2ef770cf4bd48005f99fcbac22ec64ff51db /xorg-server/hw/xquartz/pbproxy/x-selection.h
parent1d6d472342aee7b9c68e9f1d92762ef808d35ac2 (diff)
downloadvcxsrv-ec617f09d07e32d6f57c0da133f53ad3d43a568a.tar.gz
vcxsrv-ec617f09d07e32d6f57c0da133f53ad3d43a568a.tar.bz2
vcxsrv-ec617f09d07e32d6f57c0da133f53ad3d43a568a.zip
fontconfig libxcb xcb-proto mesa xserver git update 27 Mar 2012
Diffstat (limited to 'xorg-server/hw/xquartz/pbproxy/x-selection.h')
-rw-r--r--xorg-server/hw/xquartz/pbproxy/x-selection.h123
1 files changed, 62 insertions, 61 deletions
diff --git a/xorg-server/hw/xquartz/pbproxy/x-selection.h b/xorg-server/hw/xquartz/pbproxy/x-selection.h
index f5c6c9bd5..38967dc45 100644
--- a/xorg-server/hw/xquartz/pbproxy/x-selection.h
+++ b/xorg-server/hw/xquartz/pbproxy/x-selection.h
@@ -1,32 +1,32 @@
/* x-selection.h -- proxies between NSPasteboard and X11 selections
-
- Copyright (c) 2002, 2008 Apple Computer, Inc. All rights reserved.
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation files
- (the "Software"), to deal in the Software without restriction,
- including without limitation the rights to use, copy, modify, merge,
- publish, distribute, sublicense, and/or sell copies of the Software,
- and to permit persons to whom the Software is furnished to do so,
- subject to the following conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
- HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
-
- Except as contained in this notice, the name(s) of the above
- copyright holders shall not be used in advertising or otherwise to
- promote the sale, use or other dealings in this Software without
- prior written authorization.
-*/
+ *
+ * Copyright (c) 2002-2012 Apple Inc. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation files
+ * (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge,
+ * publish, distribute, sublicense, and/or sell copies of the Software,
+ * and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
+ * HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the name(s) of the above
+ * copyright holders shall not be used in advertising or otherwise to
+ * promote the sale, use or other dealings in this Software without
+ * prior written authorization.
+ */
#ifndef X_SELECTION_H
#define X_SELECTION_H 1
@@ -48,13 +48,15 @@ struct propdata {
struct atom_list {
Atom primary, clipboard, text, utf8_string, string, targets, multiple,
- cstring, image_png, image_jpeg, incr, atom, clipboard_manager,
- compound_text, atom_pair;
+ cstring, image_png, image_jpeg, incr, atom, clipboard_manager,
+ compound_text, atom_pair;
};
- @interface x_selection:NSObject {
+@interface x_selection : NSObject
+{
@private
- /* The unmapped window we use for fetching selections. */
+
+ /* The unmapped window we use for fetching selections. */
Window _selection_window;
Atom request_atom;
@@ -65,15 +67,14 @@ struct atom_list {
Atom selection;
} pending;
- /*
+ /*
* This is the number of times the user has requested a copy.
- * Once the copy is completed, we --pending_copy, and if the
+ * Once the copy is completed, we --pending_copy, and if the
* pending_copy is > 0 we do it again.
*/
int pending_copy;
-
- /*
- * This is used for the same purpose as pending_copy, but for the
+ /*
+ * This is used for the same purpose as pending_copy, but for the
* CLIPBOARD. It also prevents a race with INCR transfers.
*/
int pending_clipboard;
@@ -81,30 +82,30 @@ struct atom_list {
struct atom_list atoms[1];
}
- -(void) x_active:(Time) timestamp;
- -(void) x_inactive:(Time) timestamp;
-
- -(void) x_copy:(Time) timestamp;
-
- -(void) clear_event:(XSelectionClearEvent *) e;
- -(void) request_event:(XSelectionRequestEvent *) e;
- -(void) notify_event:(XSelectionEvent *) e;
- -(void) property_event:(XPropertyEvent *) e;
- -(void) xfixes_selection_notify:(XFixesSelectionNotifyEvent *) e;
- -(void) handle_selection:(Atom)
-selection type:(Atom)
-type propdata:(struct propdata *) pdata;
-
--(void) claim_clipboard;
- -(BOOL) set_clipboard_manager_status:(BOOL) value;
--(void) own_clipboard;
- -(void) copy_completed:(Atom) selection;
-
--(void) reload_preferences;
--(BOOL) is_active;
- -(void) send_none:(XSelectionRequestEvent *) e;
+- (void)x_active:(Time)timestamp;
+- (void)x_inactive:(Time)timestamp;
+
+- (void)x_copy:(Time)timestamp;
+
+- (void)clear_event:(XSelectionClearEvent *)e;
+- (void)request_event:(XSelectionRequestEvent *)e;
+- (void)notify_event:(XSelectionEvent *)e;
+- (void)property_event:(XPropertyEvent *)e;
+- (void)xfixes_selection_notify:(XFixesSelectionNotifyEvent *)e;
+- (void)handle_selection:(Atom) selection type:(Atom) type propdata:(struct
+ propdata
+ *)pdata;
+- (void)claim_clipboard;
+- (BOOL)set_clipboard_manager_status:(BOOL)value;
+- (void)own_clipboard;
+- (void)copy_completed:(Atom)selection;
+
+- (void)reload_preferences;
+- (BOOL)is_active;
+- (void)send_none:(XSelectionRequestEvent *)e;
@end
+
/* main.m */
-extern x_selection *_selection_object;
+extern x_selection * _selection_object;
-#endif /* X_SELECTION_H */
+#endif /* X_SELECTION_H */