2003-02-12 02:00:12 +00:00
<Type Name= "Tooltips" FullName= "Gtk.Tooltips" >
2003-05-15 06:05:07 +00:00
<TypeSignature Language= "C#" Value= "public class Tooltips : Gtk.Object, IWrapper, IDisposable" Maintainer= "John Luke" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +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-05-10 02:51:23 +00:00
<summary > Add Tooltips to your widgets.</summary>
<remarks >
2003-07-17 06:38:40 +00:00
<para > Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a short amount of time.
They are especially helpful for adding more verbose descriptions of things such as <see cref= "T:Gtk.Button" /> in a toolbar.</para>
<para > An individual tooltip belongs to a group of tooltips.
A group is created by calling the constructor <see cref= "C:Gtk.Tooltips()" /> .
Every tooltip in the group can then be turned off with <see cref= "M:Gtk.Tooltips.Disable()" /> and on with <see cref= "M:Gtk.Tooltips.Enable()" /> .</para>
<para > To assign a tip to a particular <see cref= "T:Gtk.Widget" /> , <see cref= "M:Gtk.Tooltips.SetTip(Gtk.Widget,System.String,System.String)" /> is used.</para>
<para > Note: Tooltips can only be set on widgets which have their own X window.
To add a tooltip to a <see cref= "T:Gtk.Widget" /> that does not have its own <see cref= "T:Gtk.Window" /> , place the widget inside a <see cref= "T:Gtk.EventBox" /> and add a tooltip to that instead.</para>
<para > The default appearance of all tooltips in a program is determined by the current Gtk theme that the user has selected.</para>
<example >
<code lang= "C#" >
2003-05-10 02:51:23 +00:00
using Gtk;
class ToolTipsExample
{
static void Main()
{
Application.Init();
Window win = new Window("Tooltips");
Button load_button, save_button;
HBox hbox;
Tooltips button_bar_tips;
button_bar_tips = new Tooltips ();
// Create the buttons and pack them into a Gtk.HBox
hbox = new HBox (true, 2);
win.Add(hbox);
load_button = new Button ("Load a file");
hbox.Add(load_button);
save_button = new Button ("Save a file");
hbox.Add(save_button);
// Add the tips
button_bar_tips.SetTip (load_button,
"Load a new document into this window",
"longer explanation");
button_bar_tips.SetTip (save_button,
"Saves the current document to a file",
"longer explanation");
win.ShowAll();
Application.Run();
}
}
</code>
2003-07-17 06:38:40 +00:00
</example>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "Enable" >
<MemberSignature Language= "C#" Value= "public void Enable ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-05-10 02:51:23 +00:00
<summary > Allows the user to see your tooltips as they navigate your application.</summary>
<remarks > Allows the user to see your tooltips as they navigate your application.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Disable" >
<MemberSignature Language= "C#" Value= "public void Disable ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-05-10 02:51:23 +00:00
<summary > Causes all tooltips in the tooltips group to become inactive.</summary>
<remarks > Causes all tooltips in the tooltips group to become inactive.
2003-07-17 06:38:40 +00:00
Any widgets that have tips associated with that group will no longer display their tips until they are enabled again with <see cref= "M:Gtk.Tooltips.Enable()" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ForceWindow" >
<MemberSignature Language= "C#" Value= "public void ForceWindow ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-05-10 02:51:23 +00:00
<summary > Ensures that the window used for displaying the given tooltip is created.</summary>
<remarks > Ensures that the window used for displaying the given tooltip is created.
(Applications should never have to call this function, since Gtk# takes care of this.) </remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "SetTip" >
<MemberSignature Language= "C#" Value= "public void SetTip (Gtk.Widget widget, string tip_text, string tip_private);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "tip_text" Type= "System.String" />
<Parameter Name= "tip_private" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Adds a tooltip containing the specified message to the specified <see cref= "T:Gtk.Widget" /> .</summary>
<param name= "widget" > an object of type <see cref= "T:Gtk.Widget" /> </param>
<param name= "tip_text" > an object of type <see cref= "System.String" /> </param>
<param name= "tip_private" > an object of type <see cref= "System.String" /> </param>
<remarks > Adds a tooltip containing the specified message to the specified <see cref= "T:Gtk.Widget" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Tooltips (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 Tooltips, 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= ".ctor" >
<MemberSignature Language= "C#" Value= "public Tooltips ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-05-10 02:51:23 +00:00
<summary > Creates an empty group of tooltips.</summary>
2003-07-17 06:38:40 +00:00
<returns > an object of type <see cref= "T:Gtk.Tooltips" /> </returns>
<remarks > Creates an empty group of tooltips. This function initializes a <see cref= "T:Gtk.TooltipsData" /> structure.
2003-05-10 02:51:23 +00:00
Without at least one such structure, you can not add individual tips to your application.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2003-12-24 01:35:30 +00:00
<summary > To be added</summary>
<returns > a <see cref= "T:GLib.GType" /> </returns>
<remarks > To be added</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected Tooltips (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2003-12-24 01:35:30 +00:00
<summary > To be added</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gtk.Tooltips" /> </returns>
<remarks > To be added</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2004-02-26 18:46:28 +00:00
</Type>