2003-02-12 02:00:12 +00:00
<Type Name= "Clipboard" FullName= "Gtk.Clipboard" >
2003-11-17 02:58:23 +00:00
<TypeSignature Language= "C#" Value= "public class Clipboard : GLib.Opaque, IWrapper" Maintainer= "John Luke" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-11-17 02:58:23 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 02:00:12 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 02:00:12 +00:00
<Attributes />
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 02:00:12 +00:00
<Docs >
2003-11-17 02:58:23 +00:00
<summary > An object that stores clipboard data.</summary>
<remarks >
<para > The <see cref= "T:Gtk.Clipboard" /> object represents a clipboard of data shared between different processes or between different widgets in the same process. Each clipboard is identified by a name encoded as a <see cref= "T:Gdk.Atom" /> . (Conversion to and from strings can be done with <see cref= "M:Gdk.Atom.Intern(System.String,System.Boolean)" /> and <see cref= "M:Gdk.Atom.Name()" /> .) The default clipboard corresponds to the "CLIPBOARD" atom; another commonly used clipboard is the "PRIMARY" clipboard, which, in X, traditionally contains the currently selected text.</para>
* generator/Parameters.cs (IsHidden): method to check if a
parameter should be hidden in the managed sig (eg, because it's
user_data, or it's the length of the preceding array/string, etc).
(VisibleCount): the number of parameters that will actually be
exposed in the managed signature.
(IsAccessor): test VisibleCount, not Count
(AccessorReturnType, AccessorName): deal with the fact that the
accessor parameter might not be the first one.
* generator/CallbackGen.cs:
* generator/Signature.cs: use Parameters.IsHidden.
* generator/Method.cs (Initialize): set is_set based on
VisibleCount, not Count.
(Validate): call base.Validate() before Initialize() so that
VisibleCount will be correct in Initialize.
* generator/MethodBody.cs (GetCallString, CallArrayLength,
Initialize): update to deal with accessors with multiple args.
* gtk/Clipboard.custom (SetText): implement as an Obsolete variant
of the Text property
* gtk/IconTheme.custom (SearchPath, SetSearchPath): obsolete
SetSearchPath, implement a setter on SearchPath instead.
* gtk/ListStore.custom (SetColumnTypes):
* gtk/TreeStore.custom (SetColumnTypes): implement as an Obsolete
variant of the ColumnTypes property.
* glade/XML.custom (CustomHandler): implement as a property
(SetCustomHandler): Mark this obsolete
* glade/Global.custom (SetCustomHandler): deprecate in favor of
XML.CustomHandler.
* gnomedb/Editor.custom (SetText): implement as an Obsolete
variant of the Text property
svn path=/trunk/gtk-sharp/; revision=43898
2005-05-02 20:10:03 +00:00
<para > To support having a number of different formats on the clipboard at the same time, the clipboard mechanism allows providing callbacks instead of the actual data. When you set the contents of the clipboard, you can either supply the data directly (eg, via the <see cref= "M:Gtk.Clipboard.Text" /> property), or you can supply a callback to be called at a later time when the data is needed (via <see cref= "M:Gtk.Clipboard.SetWithData()" /> or <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> .) Providing a callback also avoids having to make copies of the data when it is not needed.</para>
2003-12-04 21:09:30 +00:00
<para >
<see cref= "M:Gtk.Clipboard.SetWithData()" /> and <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> are quite similar; the choice between the two depends mostly on which is more convenient in a particular situation. The former is most useful when you want to have a blob of data with callbacks to convert it into the various data types that you advertise. When the clear_func you provided is called, you simply free the data blob. The latter is more useful when the contents of clipboard reflect the internal state of a <see cref= "T:GLib.Object" /> (As an example, for the PRIMARY clipboard, when an entry widget provides the contents for the clipboar the contents are simply the text within the selected region.) If the contents change, the entry widget can call <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> to update the timestamp for clipboard ownership, without having to worry about clear_func being called.</para>
2003-11-17 02:58:23 +00:00
<para > Requesting the data from the clipboard is essentially asynchronous. If the contents of the clipboard are provided within the same process, then a direct function call will be made to retrieve the data, but if they are provided by another process, then the data needs to be retrieved from the other process, which may take some time. To avoid blocking the user interface, the call to request the selection, <see cref= "M:Gtk.Clipboard.RequestContents()" /> takes a callback that will be called when the contents are received (or when the request fails.) If you do not want to deal with providing a separate callback, you can also use <see cref= "M:Gtk.Clipboard.WaitForContents()" /> . What this does is run the GLib main loop recursively waiting for the contents. This can simplify the code flow, but you still have to be aware that other callbacks in your program can be called while this recursive mainloop is running.</para>
2004-11-05 21:25:40 +00:00
<para > Along with the functions to get the clipboard contents as an arbitrary data chunk, there are also functions to retrieve it as text, <see cref= "M:Gtk.Clipboard.RequestText()" /> and <see cref= "M:Gtk.Clipboard.WaitForText()" /> . These functions take care of determining which formats are advertised by the clipboard provider, asking for the clipboard in the best available format and converting the results into the UTF-8 encoding. (The standard form for representing strings in Gtk#.)</para>
2004-08-24 17:01:00 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
2005-02-15 21:53:03 +00:00
<BaseTypeName > GLib.Object</BaseTypeName>
2003-02-12 02:00:12 +00:00
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "Get" >
<MemberSignature Language= "C#" Value= "public static Gtk.Clipboard Get (Gdk.Atom selection);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Clipboard</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "selection" Type= "Gdk.Atom" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Returns the clipboard object for the given selection.</summary>
<param name= "selection" > an object of type <see cref= "T:Gdk.Atom" /> </param>
<returns > an object of type <see cref= "T:Gtk.Clipboard" /> </returns>
<remarks > See <see cref= "M:Gtk.Clipboard.GetForDisplay()" /> for complete details.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Clear" >
<MemberSignature Language= "C#" Value= "public void Clear ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Clears the contents of the clipboard.</summary>
<remarks > Generally this should only be called between the time you call <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> or <see cref= "M:Gtk.Clipboard.SetWithData()" /> , and when the clear_func you supplied is called. Otherwise, the clipboard may be owned by someone else.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "WaitIsTextAvailable" >
<MemberSignature Language= "C#" Value= "public bool WaitIsTextAvailable ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Test to see if there is text available to be pasted.</summary>
<returns > an object of type <see cref= "T:System.Boolean" /> </returns>
<remarks >
<para > This is done by requesting the TARGETS atom and checking if it contains any of the names: STRING, TEXT, COMPOUND_TEXT, UTF8_STRING. This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</para>
<para > This function is a little faster than calling <see cref= "M:Gtk.ClipboardWaitForText()" /> since it does not need to retrieve the actual text.</para>
2003-12-04 21:09:30 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "WaitForContents" >
<MemberSignature Language= "C#" Value= "public Gtk.SelectionData WaitForContents (Gdk.Atom target);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.SelectionData</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "target" Type= "Gdk.Atom" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Requests the contents of the clipboard using the given target.</summary>
<param name= "target" > an object of type <see cref= "T:Gdk.Atom" /> </param>
<returns > an object of type <see cref= "T:Gtk.SelectionData" /> </returns>
<remarks > This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "WaitForText" >
<MemberSignature Language= "C#" Value= "public string WaitForText ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Requests the contents of the clipboard as text and converts the result to UTF-8 if necessary.</summary>
<returns > an object of type <see cref= "T:System.String" /> </returns>
<remarks > This function waits for the data to be received using the main loop, so events, timeouts, etc, may be dispatched during the wait.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Clipboard (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of Clipboard, wrapping the C object.</returns>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Owner" >
<MemberSignature Language= "C#" Value= "public GLib.Object Owner { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.Object</ReturnType>
</ReturnValue>
<Docs >
2003-11-17 02:58:23 +00:00
<summary > The owner of the clipboard, if any; otherwise <see langword= "null" /> .</summary>
<returns > an object of type <see cref= "T:GLib.Object" /> </returns>
<remarks > If the clipboard contents callbacks were set with <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> , and the <see cref= "M:Gtk.Clipboard.SetWithData()" /> or <see cref= "M:Gtk.Clipboard.Clear()" /> has not been subsequently called, it will return the owner set by <see cref= "M:Gtk.Clipboard.SetWithOwner()" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
* generator/Parameters.cs (IsHidden): method to check if a
parameter should be hidden in the managed sig (eg, because it's
user_data, or it's the length of the preceding array/string, etc).
(VisibleCount): the number of parameters that will actually be
exposed in the managed signature.
(IsAccessor): test VisibleCount, not Count
(AccessorReturnType, AccessorName): deal with the fact that the
accessor parameter might not be the first one.
* generator/CallbackGen.cs:
* generator/Signature.cs: use Parameters.IsHidden.
* generator/Method.cs (Initialize): set is_set based on
VisibleCount, not Count.
(Validate): call base.Validate() before Initialize() so that
VisibleCount will be correct in Initialize.
* generator/MethodBody.cs (GetCallString, CallArrayLength,
Initialize): update to deal with accessors with multiple args.
* gtk/Clipboard.custom (SetText): implement as an Obsolete variant
of the Text property
* gtk/IconTheme.custom (SearchPath, SetSearchPath): obsolete
SetSearchPath, implement a setter on SearchPath instead.
* gtk/ListStore.custom (SetColumnTypes):
* gtk/TreeStore.custom (SetColumnTypes): implement as an Obsolete
variant of the ColumnTypes property.
* glade/XML.custom (CustomHandler): implement as a property
(SetCustomHandler): Mark this obsolete
* glade/Global.custom (SetCustomHandler): deprecate in favor of
XML.CustomHandler.
* gnomedb/Editor.custom (SetText): implement as an Obsolete
variant of the Text property
svn path=/trunk/gtk-sharp/; revision=43898
2005-05-02 20:10:03 +00:00
<Member MemberName= "Text" >
<MemberSignature Language= "C#" Value= "public string Text { set; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Docs >
<summary > Sets the contents of the clipboard to the given UTF-8 string.</summary>
<returns > a <see cref= "T:System.String" /> </returns>
<remarks > Gtk# will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.</remarks>
</Docs>
</Member>
<Member MemberName= "SetText" Deprecated= "true" >
2003-03-07 01:30:00 +00:00
<MemberSignature Language= "C#" Value= "public void SetText (string text);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "text" Type= "System.String" />
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
* generator/Parameters.cs (IsHidden): method to check if a
parameter should be hidden in the managed sig (eg, because it's
user_data, or it's the length of the preceding array/string, etc).
(VisibleCount): the number of parameters that will actually be
exposed in the managed signature.
(IsAccessor): test VisibleCount, not Count
(AccessorReturnType, AccessorName): deal with the fact that the
accessor parameter might not be the first one.
* generator/CallbackGen.cs:
* generator/Signature.cs: use Parameters.IsHidden.
* generator/Method.cs (Initialize): set is_set based on
VisibleCount, not Count.
(Validate): call base.Validate() before Initialize() so that
VisibleCount will be correct in Initialize.
* generator/MethodBody.cs (GetCallString, CallArrayLength,
Initialize): update to deal with accessors with multiple args.
* gtk/Clipboard.custom (SetText): implement as an Obsolete variant
of the Text property
* gtk/IconTheme.custom (SearchPath, SetSearchPath): obsolete
SetSearchPath, implement a setter on SearchPath instead.
* gtk/ListStore.custom (SetColumnTypes):
* gtk/TreeStore.custom (SetColumnTypes): implement as an Obsolete
variant of the ColumnTypes property.
* glade/XML.custom (CustomHandler): implement as a property
(SetCustomHandler): Mark this obsolete
* glade/Global.custom (SetCustomHandler): deprecate in favor of
XML.CustomHandler.
* gnomedb/Editor.custom (SetText): implement as an Obsolete
variant of the Text property
svn path=/trunk/gtk-sharp/; revision=43898
2005-05-02 20:10:03 +00:00
<summary > Deprecated method to set the contents of the clipboard.</summary>
2003-11-17 02:58:23 +00:00
<param name= "text" > an object of type <see cref= "T:System.String" /> </param>
* generator/Parameters.cs (IsHidden): method to check if a
parameter should be hidden in the managed sig (eg, because it's
user_data, or it's the length of the preceding array/string, etc).
(VisibleCount): the number of parameters that will actually be
exposed in the managed signature.
(IsAccessor): test VisibleCount, not Count
(AccessorReturnType, AccessorName): deal with the fact that the
accessor parameter might not be the first one.
* generator/CallbackGen.cs:
* generator/Signature.cs: use Parameters.IsHidden.
* generator/Method.cs (Initialize): set is_set based on
VisibleCount, not Count.
(Validate): call base.Validate() before Initialize() so that
VisibleCount will be correct in Initialize.
* generator/MethodBody.cs (GetCallString, CallArrayLength,
Initialize): update to deal with accessors with multiple args.
* gtk/Clipboard.custom (SetText): implement as an Obsolete variant
of the Text property
* gtk/IconTheme.custom (SearchPath, SetSearchPath): obsolete
SetSearchPath, implement a setter on SearchPath instead.
* gtk/ListStore.custom (SetColumnTypes):
* gtk/TreeStore.custom (SetColumnTypes): implement as an Obsolete
variant of the ColumnTypes property.
* glade/XML.custom (CustomHandler): implement as a property
(SetCustomHandler): Mark this obsolete
* glade/Global.custom (SetCustomHandler): deprecate in favor of
XML.CustomHandler.
* gnomedb/Editor.custom (SetText): implement as an Obsolete
variant of the Text property
svn path=/trunk/gtk-sharp/; revision=43898
2005-05-02 20:10:03 +00:00
<remarks > Replaced by the <see cref= "M:Gtk.Clipboard.Text" /> property.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "Display" >
<MemberSignature Language= "C#" Value= "public Gdk.Display Display { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Display</ReturnType>
</ReturnValue>
<Docs >
2003-11-17 02:58:23 +00:00
<summary > The <see cref= "T:Gdk.Display" /> associated with the clipboard.</summary>
2003-07-17 06:38:40 +00:00
<returns > a <see cref= "T:Gdk.Display" /> </returns>
2003-12-04 21:09:30 +00:00
<remarks >
</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
<Member MemberName= "GetForDisplay" >
<MemberSignature Language= "C#" Value= "public static Gtk.Clipboard GetForDisplay (Gdk.Display display, Gdk.Atom selection);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Clipboard</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "display" Type= "Gdk.Display" />
<Parameter Name= "selection" Type= "Gdk.Atom" />
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Returns the clipboard object for the given selection.</summary>
2003-07-17 06:38:40 +00:00
<param name= "display" > a <see cref= "T:Gdk.Display" /> </param>
<param name= "selection" > a <see cref= "T:Gdk.Atom" /> </param>
<returns > a <see cref= "T:Gtk.Clipboard" /> </returns>
2003-11-17 02:58:23 +00:00
<remarks >
<para > Cut/copy/paste menu items and keyboard shortcuts should use the default clipboard, returned by passing GDK_SELECTION_CLIPBOARD for selection. (GDK_NONE is supported as a synonym for GDK_SELECTION_CLIPBOARD for backwards compatibility reasons.) The currently-selected object or text should be provided on the clipboard identified by GDK_SELECTION_PRIMARY. Cut/copy/paste menu items conceptually copy the contents of the GDK_SELECTION_PRIMARY clipboard to the default clipboard, i.e. they copy the selection to what the user sees as the clipboard.</para>
<para > (Passing GDK_NONE is the same as using gdk_atom_intern ("CLIPBOARD", <see langword= "false" /> ). See http://www.freedesktop.org/standards/clipboards.txt for a detailed discussion of the "CLIPBOARD" vs. "PRIMARY" selections under the X window system. On Win32 the GDK_SELECTION_PRIMARY clipboard is essentially ignored.)</para>
<para > It is possible to have arbitrary named clipboards; if you do invent new clipboards, you should prefix the selection name with an underscore (because the ICCCM requires that nonstandard atoms are underscore-prefixed), and namespace it as well. For example, if your application called "Foo" has a special-purpose clipboard, you might call it "_FOO_SPECIAL_CLIPBOARD".</para>
2003-12-04 21:09:30 +00:00
</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-07-17 06:38:40 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Disposes the resources associated with the object.</summary>
2003-12-04 21:09:30 +00:00
<remarks >
</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "SetWithData" >
2003-12-04 21:09:30 +00:00
<MemberSignature Language= "C#" Value= "public bool SetWithData (Gtk.TargetEntry[] targets, Gtk.ClipboardGetFunc get_func, Gtk.ClipboardClearFunc clear_func);" />
2003-10-28 00:48:23 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-12-04 21:09:30 +00:00
<Parameter Name= "targets" Type= "Gtk.TargetEntry[]" />
2003-10-28 00:48:23 +00:00
<Parameter Name= "get_func" Type= "Gtk.ClipboardGetFunc" />
<Parameter Name= "clear_func" Type= "Gtk.ClipboardClearFunc" />
</Parameters>
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.</summary>
2003-12-04 21:09:30 +00:00
<param name= "targets" > a <see cref= "T:Gtk.TargetEntry[]" /> </param>
2003-10-28 00:48:23 +00:00
<param name= "get_func" > a <see cref= "T:Gtk.ClipboardGetFunc" /> </param>
<param name= "clear_func" > a <see cref= "T:Gtk.ClipboardClearFunc" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
<Member MemberName= "SetWithOwner" >
2003-12-04 21:09:30 +00:00
<MemberSignature Language= "C#" Value= "public bool SetWithOwner (Gtk.TargetEntry[] targets, Gtk.ClipboardGetFunc get_func, Gtk.ClipboardClearFunc clear_func, GLib.Object owner);" />
2003-10-28 00:48:23 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-12-04 21:09:30 +00:00
<Parameter Name= "targets" Type= "Gtk.TargetEntry[]" />
2003-10-28 00:48:23 +00:00
<Parameter Name= "get_func" Type= "Gtk.ClipboardGetFunc" />
<Parameter Name= "clear_func" Type= "Gtk.ClipboardClearFunc" />
<Parameter Name= "owner" Type= "GLib.Object" />
</Parameters>
<Docs >
2003-11-17 02:58:23 +00:00
<summary > Virtually sets the contents of the specified clipboard by providing a list of supported formats for the clipboard data and a function to call to get the actual data when it is requested.</summary>
2003-12-04 21:09:30 +00:00
<param name= "targets" > a <see cref= "T:Gtk.TargetEntry[]" /> </param>
2003-10-28 00:48:23 +00:00
<param name= "get_func" > a <see cref= "T:Gtk.ClipboardGetFunc" /> </param>
<param name= "clear_func" > a <see cref= "T:Gtk.ClipboardClearFunc" /> </param>
<param name= "owner" > a <see cref= "T:GLib.Object" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
2003-11-17 02:58:23 +00:00
<remarks > The difference between this function and <see cref= "M:Gtk.Clipboard.SetWithData()" /> is that a <see cref= "T:GLib.Object" /> is passed in.</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.Clipboard" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "RequestContents" >
<MemberSignature Language= "C#" Value= "public void RequestContents (Gdk.Atom target, Gtk.ClipboardReceivedFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "target" Type= "Gdk.Atom" />
<Parameter Name= "cb" Type= "Gtk.ClipboardReceivedFunc" />
</Parameters>
<Docs >
2004-09-06 14:51:09 +00:00
<summary > Requests the contents of clipboard as the given target.
When the results of the result are later received the supplied
callback will be called.</summary>
<param name= "target" > a <see cref= "T:Gdk.Atom" /> representing the form into which the clipboard-owning program should convert the selection.</param>
<param name= "cb" > a <see cref= "T:Gtk.ClipboardReceivedFunc" /> , a function to call when the clipboard results are received.</param>
2004-11-05 21:25:40 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "RequestText" >
<MemberSignature Language= "C#" Value= "public void RequestText (Gtk.ClipboardTextReceivedFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "cb" Type= "Gtk.ClipboardTextReceivedFunc" />
</Parameters>
<Docs >
2004-11-05 21:25:40 +00:00
<summary > Fetch the clipboard's text and fire the function <paramref name= "cb" /> on it.</summary>
2003-12-24 01:35:30 +00:00
<param name= "cb" > a <see cref= "T:Gtk.ClipboardTextReceivedFunc" /> </param>
2004-11-05 21:25:40 +00:00
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Clipboard (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gtk.Clipboard" /> </returns>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2004-06-01 18:05:26 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Clipboard ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2004-09-06 14:51:09 +00:00
<summary > Proctected constructor.</summary>
2004-06-01 18:05:26 +00:00
<returns > a <see cref= "T:Gtk.Clipboard" /> </returns>
2004-11-05 21:25:40 +00:00
<remarks />
</Docs>
</Member>
<Member MemberName= "WaitForTargets" >
<MemberSignature Language= "C#" Value= "public bool WaitForTargets (Gdk.Atom targets, out int n_targets);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "targets" Type= "Gdk.Atom" />
<Parameter Name= "n_targets" Type= "System.Int32&" RefType= "out" />
</Parameters>
<Docs >
2004-12-02 06:33:01 +00:00
<summary >
Returns a list of targets that are present on the clipboard, or
2004-12-29 18:36:31 +00:00
<see langword= "null" /> if there aren't any targets available.
2004-12-02 06:33:01 +00:00
</summary>
2004-11-05 21:25:40 +00:00
<param name= "targets" > a <see cref= "T:Gdk.Atom" /> </param>
<param name= "n_targets" > a <see cref= "T:System.Int32" /> </param>
2004-12-02 06:33:01 +00:00
<returns > a <see cref= "T:System.Boolean" /> ,TRUE if any
targets are present on the clipboard, otherwise FALSE.</returns>
<remarks >
2004-12-29 18:36:31 +00:00
<para >
2004-12-02 06:33:01 +00:00
This function waits for the data to be received using the main
loop, so events, timeouts, etc, may be dispatched during the wait.
</para>
2004-12-29 18:36:31 +00:00
</remarks>
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "RequestTargets" >
<MemberSignature Language= "C#" Value= "public void RequestTargets (Gtk.ClipboardTargetsReceivedFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "cb" Type= "Gtk.ClipboardTargetsReceivedFunc" />
</Parameters>
<Docs >
2004-12-02 06:33:01 +00:00
<summary >
Requests the contents of the clipboard as list of supported targets.
2004-12-29 18:36:31 +00:00
When the list is later received, <paramref name= "cb" /> will be called.
2004-12-02 06:33:01 +00:00
</summary>
2004-11-05 21:25:40 +00:00
<param name= "cb" > a <see cref= "T:Gtk.ClipboardTargetsReceivedFunc" /> </param>
2004-12-02 06:33:01 +00:00
<remarks >
2004-12-29 18:36:31 +00:00
The "targets" parameter to <paramref name= "cb" /> will contain the resulting targets if
the request succeeded, or <see langword= "null" /> if it failed. Added in GTK 2.4.
2004-12-02 06:33:01 +00:00
</remarks>
2004-06-01 18:05:26 +00:00
</Docs>
</Member>
2005-04-21 17:10:54 +00:00
<Member MemberName= "Image" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf Image { set; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:Gdk.Pixbuf" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "OwnerChange" >
<MemberSignature Language= "C#" Value= "public event Gtk.OwnerChangeHandler OwnerChange;" />
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > Gtk.OwnerChangeHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "OnOwnerChange" >
<MemberSignature Language= "C#" Value= "protected virtual void OnOwnerChange (ref Gdk.EventOwnerChange evnt);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "evnt" Type= "Gdk.EventOwnerChange&" RefType= "ref" />
</Parameters>
<Docs >
2005-04-22 17:20:16 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Clipboard.OwnerChange" /> event.</summary>
2005-04-21 17:10:54 +00:00
<param name= "evnt" > a <see cref= "T:Gdk.EventOwnerChange" /> </param>
2005-04-22 17:20:16 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Clipboard.OwnerChange" /> event.</remarks>
2005-04-21 17:10:54 +00:00
</Docs>
</Member>
<Member MemberName= "WaitForImage" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf WaitForImage ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:Gdk.Pixbuf" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "Store" >
<MemberSignature Language= "C#" Value= "public void Store ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "SetCanStore" >
<MemberSignature Language= "C#" Value= "public void SetCanStore (Gtk.TargetEntry targets, int n_targets);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "targets" Type= "Gtk.TargetEntry" />
<Parameter Name= "n_targets" Type= "System.Int32" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "targets" > a <see cref= "T:Gtk.TargetEntry" /> </param>
<param name= "n_targets" > a <see cref= "T:System.Int32" /> </param>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "WaitIsTargetAvailable" >
<MemberSignature Language= "C#" Value= "public bool WaitIsTargetAvailable (Gdk.Atom target);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "target" Type= "Gdk.Atom" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "target" > a <see cref= "T:Gdk.Atom" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "WaitIsImageAvailable" >
<MemberSignature Language= "C#" Value= "public bool WaitIsImageAvailable ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:System.Boolean" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= "RequestImage" >
<MemberSignature Language= "C#" Value= "public void RequestImage (Gtk.ClipboardImageReceivedFunc cb);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "cb" Type= "Gtk.ClipboardImageReceivedFunc" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "cb" > a <see cref= "T:Gtk.ClipboardImageReceivedFunc" /> </param>
<remarks > To be added</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2004-12-29 18:36:31 +00:00
</Type>