Multiple updates to the documentation

svn path=/trunk/gtk-sharp/; revision=112910
This commit is contained in:
Miguel de Icaza 2008-09-12 21:41:55 +00:00
parent fc871aacca
commit 56e4f16beb
3 changed files with 51 additions and 18 deletions

View File

@ -12,7 +12,7 @@
<remarks>
<para>
The <see cref="T:Gdk.Pixbuf" /> class is used to represent an image in
memory. The in-memory representation uses either a three
memory, typically on the client side (this is different from <see cref="T:Gdk.Pixmap" /> that represents a server-side image). The in-memory representation uses either a three
byte RGB representation or a four byte RGBA representation.
</para>
<para>
@ -1945,4 +1945,4 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(buffer, 10, 10);
</Docs>
</Member>
</Members>
</Type>
</Type>

View File

@ -9,10 +9,16 @@
<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>
<Docs>
<summary>Offscreen drawable.</summary>
<remarks>Pixmaps are offscreen drawables. They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a <see cref="T:Gdk.Window" />) with <see cref="M:Gdk.Pixmap.Draw()" />.
<para>
<remarks>
<para>Pixmaps are offscreen drawables that reside on the server on the X11 platform. They can be drawn upon with the standard drawing primitives, then copied to another drawable (such as a <see cref="T:Gdk.Window" />) with <see cref="M:Gdk.Pixmap.Draw()" />.
</para>
<para>
The depth of a pixmap is the number of bits per pixels. Bitmaps are simply pixmaps with a depth of 1. (That is, they are monochrome bitmaps - each pixel can be either on or off).
</para></remarks>
</para>
<para>
For client-side images, see the <see cref="T:Gdk.Pixbuf" /> class.
</para>
</remarks>
</Docs>
<Base>
<BaseTypeName>Gdk.Drawable</BaseTypeName>
@ -425,4 +431,4 @@ For example in the X backend, a native pixmap handle is an Xlib XID.
</Docs>
</Member>
</Members>
</Type>
</Type>

View File

@ -38,10 +38,12 @@ namespace GtkDialogSample
Application.Init ();
win = new Window ("Test");
win.SetDefaultSize (250, 250);
win.DeleteEvent += new DeleteEventHandler (on_win_delete);
win.DeleteEvent += delegate {
Application.Quit ();
}
Button btn = new Button ("Show About");
btn.Clicked += new EventHandler (on_btn_clicked);
btn.Clicked += on_btn_clicked;
win.Add (btn);
win.ShowAll ();
@ -54,7 +56,7 @@ namespace GtkDialogSample
("Sample", win, Gtk.DialogFlags.DestroyWithParent);
dialog.Modal = true;
dialog.AddButton ("Close", ResponseType.Close);
dialog.Response += new ResponseHandler (on_dialog_response);
dialog.Response += on_dialog_response;
dialog.Run ();
dialog.Destroy ();
}
@ -63,11 +65,6 @@ namespace GtkDialogSample
{
Console.WriteLine (args.ResponseId);
}
void on_win_delete (object obj, DeleteEventArgs args)
{
Application.Quit ();
}
}
}
</code>
@ -297,9 +294,39 @@ namespace GtkDialogSample
<param name="flags">dialog characteristic such as modality and destruction policy.</param>
<param name="button_data">a list of button text/response pairs if desired.</param>
<remarks>
Creates a new <see cref="T:Gtk.Dialog" /> with the specified title and parent widget.
The <see cref="T:Gtk.DialogFlags" /> argument can be used to make the dialog modal (<see cref="F:Gtk.DialogFlags.Modal" />)
and/or to have it destroyed along with its parent (<see cref="F:Gtk.DialogFlags.DestroyWithParent" />).
<para>Creates a new <see cref="T:Gtk.Dialog" /> with the specified title and parent widget.</para>
<para>
The <see cref="T:Gtk.DialogFlags" /> argument can be used to make the dialog modal (<see cref="F:Gtk.DialogFlags.Modal" />)
and/or to have it destroyed along with its parent (<see cref="F:Gtk.DialogFlags.DestroyWithParent" />).
</para>
<example>
<code lang="C#">
using System;
using Gtk;
class MainClass
{
public static void Main (string[] args)
{
Application.Init ();
// Shows two buttons that use stock icons, and a custom button
// Add button will return 1000
// Delete button will return 2000
// "My Own Butotn" will return 3000
Dialog d = new Gtk.Dialog ("What to do?", null, DialogFlags.Modal,
Stock.Add, 1000,
Stock.Delete, 2000,
"My Own Button", 3000);
int response = d.Run ();
if (response == (int) ResponseType.DeleteEvent)
Console.WriteLine ("The user closed the dialog box");
Console.WriteLine (response);
}
}
</code>
</example>
</remarks>
<since version="Gtk# 2.4" />
</Docs>
@ -577,4 +604,4 @@ namespace GtkDialogSample
</Docs>
</Member>
</Members>
</Type>
</Type>