2003-02-12 02:00:12 +00:00
<Type Name= "Statusbar" FullName= "Gtk.Statusbar" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Lee Mallabone" Value= "public class Statusbar : Gtk.HBox" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit Statusbar extends Gtk.HBox" />
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
</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>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > Gtk.HBox</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-05 19:21:53 +00:00
<summary > Report messages of minor importance to the user.</summary>
2003-03-07 01:30:00 +00:00
<remarks >
<para > The Statusbar widget displays textual messages to the user. Statusbars are typically placed at the bottom of application <see cref= "T:Gtk.Window" /> s.</para>
<para > A Statusbar may provide a regular commentary of the application's status (as is usually the case in a web browser, for example), or may be used to simply output a message when the status changes, (when an upload is complete in an FTP client, for example).</para>
<para > As a finishing touch to the StatusBar, it can have a "resize grip" added in the lower right corner. This is a triangular area that can be clicked on to resize the window containing the statusbar.</para>
2003-08-06 22:20:11 +00:00
<para > Status bars in Gtk maintain a stack of messages. The message at the top of the each bar's stack is the one that will currently be displayed.</para>
2003-03-07 01:30:00 +00:00
<para > Any messages added to a statusbar's stack must specify a <paramref name= "context_id" /> that is used to uniquely identify the source of a message. This <paramref name= "context_id" /> can be generated with <see cref= "M:Gtk.Statusbar.GetContextId" /> , given a message. Note that messages are stored in a stack, and when choosing which message to display, the stack structure is adhered to, regardless of the context identifier of a message.</para>
<para > Messages are added to the bar's stack with <see cref= "M:Gtk.Statusbar.Push" /> , and the message at the top of the stack can be removed using <see cref= "M:Gtk.Statusbar.Pop" /> . A message can be removed from anywhere in the stack if it's <paramref name= "message_id" /> was recorded at the time it was added. This is done using <see cref= "M:Gtk.Statusbar.Remove" /> .</para>
2004-06-19 18:25:02 +00:00
<example >
<code lang= "C#" >
2003-08-06 22:20:11 +00:00
using System;
using Gtk;
class StatusbarSample
{
Statusbar sb;
const int id = 1;
int count;
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
static void Main ()
{
2004-06-19 18:25:02 +00:00
new StatusbarSample ();
2003-08-06 22:20:11 +00:00
}
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
StatusbarSample ()
{
Application.Init ();
count = 0;
Window win = new Window ("StatusbarSample");
win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
win.SetDefaultSize (150, 100);
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
VBox vbox = new VBox (false, 1);
win.Add (vbox);
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
Button btn = new Button ("Add to counter");
btn.Clicked += new EventHandler (OnButtonClicked);
vbox.Add (btn);
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
sb = new Statusbar ();
sb.Push (id, "Welcome!");
sb.HasResizeGrip = false;
vbox.Add (sb);
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
win.ShowAll ();
Application.Run ();
}
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
void OnButtonClicked (object obj, EventArgs args)
{
count ++;
string message = String.Format ("Pushed {0} times", count);
sb.Pop (id);
sb.Push (id, message);
}
2004-06-19 18:25:02 +00:00
2003-08-06 22:20:11 +00:00
void OnWinDelete (object obj, DeleteEventArgs args)
{
Application.Quit ();
}
2004-06-19 18:25:02 +00:00
}
</code>
</example>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Members >
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Statusbar ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The main way to create a new status bar.</summary>
2003-03-07 01:30:00 +00:00
<remarks >
2011-11-09 16:01:51 +00:00
<para > Creates a new Statusbar with an empty message stack.</para>
2003-03-07 01:30:00 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Statusbar (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
2003-02-12 02:00:12 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "raw" > Pointer to the C object.</param>
<summary > Internal constructor</summary>
2003-03-07 01:30:00 +00:00
<remarks >
2011-11-09 16:01:51 +00:00
<para > This is an internal constructor, and should not be used by user code.</para>
2003-03-07 01:30:00 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GetContextId" >
<MemberSignature Language= "C#" Value= "public uint GetContextId (string context_description);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance unsigned int32 GetContextId(string context_description) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "context_description" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-05 19:21:53 +00:00
<param name= "context_description" > A description of the message you want to generate an identifier for.</param>
2011-11-09 16:01:51 +00:00
<summary > Generates an identifier based on the <paramref name= "context_description" /> .</summary>
2003-03-05 19:21:53 +00:00
<returns > An integer identifier</returns>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype GLib.GType GType" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > GType Property.</summary>
<value > a <see cref= "T:GLib.GType" /> </value>
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.Statusbar" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "MessageArea" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget MessageArea { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Widget MessageArea" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gtk.Widget</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "OnTextPopped" >
<MemberSignature Language= "C#" Value= "protected virtual void OnTextPopped (uint context_id, string text);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnTextPopped(unsigned int32 context_id, string text) cil managed" />
<MemberType > Method</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideTextPopped", Type=typeof(Gtk.Statusbar))</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "context_id" Type= "System.UInt32" />
<Parameter Name= "text" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > a <see cref= "T:System.UInt32" /> </param>
<param name= "text" > a <see cref= "T:System.String" /> </param>
<summary > Default handler for the <see cref= "M:Gtk.Statusbar.TextPopped" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Statusbar.TextPopped" /> event.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "OnTextPushed" >
<MemberSignature Language= "C#" Value= "protected virtual void OnTextPushed (uint context_id, string text);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnTextPushed(unsigned int32 context_id, string text) cil managed" />
<MemberType > Method</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideTextPushed", Type=typeof(Gtk.Statusbar))</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "context_id" Type= "System.UInt32" />
<Parameter Name= "text" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > a <see cref= "T:System.UInt32" /> </param>
<param name= "text" > a <see cref= "T:System.String" /> </param>
<summary > Default handler for the <see cref= "M:Gtk.Statusbar.TextPushed" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Statusbar.TextPushed" /> event.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Pop" >
<MemberSignature Language= "C#" Value= "public void Pop (uint context_id);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Pop(unsigned int32 context_id) cil managed" />
<MemberType > Method</MemberType>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "context_id" Type= "System.UInt32" />
</Parameters>
2003-12-24 01:35:30 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > A context identifier</param>
<summary > Removes the message at the top of the Statusbar's stack.</summary>
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Push" >
<MemberSignature Language= "C#" Value= "public uint Push (uint context_id, string text);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance unsigned int32 Push(unsigned int32 context_id, string text) cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.UInt32</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
<Parameters >
<Parameter Name= "context_id" Type= "System.UInt32" />
<Parameter Name= "text" Type= "System.String" />
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > The new message's context ID, as generated by <see cref= "M:Gtk.Statusbar.GenerateContextId" /> .</param>
<param name= "text" > The message to display to the user.</param>
<summary > Pushes a new message onto the stack.</summary>
<returns > The message's new message id for use with <see cref= "M:Gtk.Statusbar.Remove" /> .</returns>
<remarks >
<para > Note that the <paramref name= "context_id" /> and the returned <paramref name= "message_id" /> are equivalent and are both required for <see cref= "M:Gtk.Statusbar.Remove" /> to work.</para>
</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Remove" >
<MemberSignature Language= "C#" Value= "public void Remove (uint context_id, uint message_id);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Remove(unsigned int32 context_id, unsigned int32 message_id) cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "context_id" Type= "System.UInt32" />
2011-11-09 16:01:51 +00:00
<Parameter Name= "message_id" Type= "System.UInt32" />
2003-12-24 01:35:30 +00:00
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > A context identifier.</param>
<param name= "message_id" > A message identifier.</param>
<summary > Forces the removal of a message from a statusbar's stack.</summary>
<remarks >
<para > The exact <paramref name= "context_id" /> and <paramref name= "message_id" /> must be specified.</para>
</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "RemoveAll" >
<MemberSignature Language= "C#" Value= "public void RemoveAll (uint context_id);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void RemoveAll(unsigned int32 context_id) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2003-03-07 01:30:00 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "context_id" Type= "System.UInt32" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context_id" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
</Member>
<Member MemberName= "TextPopped" >
<MemberSignature Language= "C#" Value= "public event Gtk.TextPoppedHandler TextPopped;" />
<MemberSignature Language= "ILAsm" Value= ".event class Gtk.TextPoppedHandler TextPopped" />
<MemberType > Event</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("text-popped")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.TextPoppedHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > An event that is raised when a message is popped off the Statusbar's message stack using the <see cref= "M:Gtk.Statusbar.Pop" /> method.</summary>
<remarks >
<para > Connect to this event with a <see cref= "T:Gtk.TextPoppedHandler" /> .</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "TextPushed" >
<MemberSignature Language= "C#" Value= "public event Gtk.TextPushedHandler TextPushed;" />
<MemberSignature Language= "ILAsm" Value= ".event class Gtk.TextPushedHandler TextPushed" />
<MemberType > Event</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Signal("text-pushed")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > Gtk.TextPushedHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > An event that is raised when a message is pushed onto the Statusbar's message stack using the <see cref= "M:Gtk.Statusbar.Push" /> method.</summary>
<remarks >
<para > Connect to this event with a <see cref= "T:Gtk.TextPushedHandler" /> .</para>
</remarks>
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>