gdk-sharp 0.0.0.0 neutral Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. Information exchange through the Window Server selection mechanism. The X selection mechanism provides a way to transfer arbitrary chunks of data between programs. A selection is a essentially a named clipboard, identified by a string interned as a GdkAtom. By claiming ownership of a selection, an application indicates that it will be responsible for supplying its contents. The most common selections are PRIMARY and CLIPBOARD. The contents of a selection can be represented in a number of formats, called targets. Each target is identified by an atom. A list of all possible targets supported by the selection owner can be retrieved by requesting the special target TARGETS. When a selection is retrieved, the data is accompanied by a type (an atom), and a format (an integer, representing the number of bits per item). See Properties and Atoms for more information. The functions in this section only contain the lowlevel parts of the selection protocol. A considerably more complicated implementation is needed on top of this. GTK+ contains such an implementation in the functions in gtkselection.h and programmers should use those functions instead of the ones presented here. If you plan to implement selection handling directly on top of the functions here, you should refer to the X Inter-client Communication Conventions Manual (ICCCM). System.Object Field Gdk.Atom An Atom representing the PRIMARY selection. Field Gdk.Atom The atom for the secondary selection Field Gdk.Atom The atom representing the clipboard. Method System.Boolean Sets the owner as the current owner of the selection selection. The a or NULL to indicate that the the owner for the given should be unset. An atom identifying a selection. Timestamp to use when setting the selection. If this is older than the timestamp given last time the owner was set for the given selection, the request will be ignored. if TRUE, and the new owner is different from the current owner, the current owner will be sent a SelectionClear event. TRUE if the selection owner was successfully changed to owner, otherwise FALSE. Method System.Void Sends a response to SelectionRequest event. window to which to deliver response. selection that was requested. target that was selected. property in which the selection owner stored the data, or GDK_NONE to indicate that the request was rejected. timestamp. To be added Method System.Void Send a response to SelectionRequest event. The window to which to deliver response. selection that was requested. target that was selected. property in which the selection owner stored the data, or GDK_NONE to indicate that the request was rejected. timestamp. To be added Method Gdk.Window Determine the owner of the given selection. The where the selection is an atom indentifying a selection. if there is a selection owner for this window, and it is a window known to the current process, the that owns the selection, otherwise Note that the return value may be owned by a different process if a foreign window was previously created for that window, but a new foreign window will never be created by this call. Method System.Void Retrieves the contents of a selection in a given form. The An atom identifying the selection to get the contents of. the form in which to retrieve the selection. the timestamp to use when retrieving the selection. The selection owner may refuse the request if it did not own the selection at the time indicated by the timestamp. Method System.Boolean Sets the owner of the given selection. a or NULL to indicate that the the owner for the given should be unset. An identifying a selection. timestamp to use when setting the selection. If this is older than the timestamp given last time the owner was set for the given selection, the request will be ignored. If and the new owner is different from the current owner, the current owner will be sent a SelectionClear event. if the selection owner was successfully changed to owner, otherwise Method Gdk.Window Determines the owner of the given selection. an atom indentifying a selection. If there is a selection owner for this window, and it is a window known to the current process, the that owns the selection, otherwise . Note that the return value may be owned by a different process if a foreign window was previously created for that window, but a new foreign window will never be created by this call. Constructor To be added a To be added Method System.Boolean Retrieves selection data that was stored by the selection data in response to a call to gdk_selection_convert(). This function will not be used by applications, who should use the GtkClipboard API instead. the window on which the data is stored location to store a pointer to the retrieved data. If the retrieval failed, NULL we be stored here, otherwise, it will be non-NULL and the returned data should be freed with g_free() when you are finished using it. The length of the allocated memory is one more than the the length of the returned data, and the final byte will always be zero, to ensure nul-termination of strings. location to store the type of the property. location to store the format of the property. the length of the retrieved data. To be added