mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 07:53:17 +02:00
Multiple updates to the documentation
svn path=/trunk/gtk-sharp/; revision=112910
This commit is contained in:
parent
fc871aacca
commit
56e4f16beb
@ -12,7 +12,7 @@
|
|||||||
<remarks>
|
<remarks>
|
||||||
<para>
|
<para>
|
||||||
The <see cref="T:Gdk.Pixbuf" /> class is used to represent an image in
|
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.
|
byte RGB representation or a four byte RGBA representation.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
@ -1945,4 +1945,4 @@ Gdk.Pixbuf pb = new Gdk.Pixbuf(buffer, 10, 10);
|
|||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
@ -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>
|
<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>
|
<Docs>
|
||||||
<summary>Offscreen drawable.</summary>
|
<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()" />.
|
<remarks>
|
||||||
<para>
|
<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).
|
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>
|
</Docs>
|
||||||
<Base>
|
<Base>
|
||||||
<BaseTypeName>Gdk.Drawable</BaseTypeName>
|
<BaseTypeName>Gdk.Drawable</BaseTypeName>
|
||||||
@ -425,4 +431,4 @@ For example in the X backend, a native pixmap handle is an Xlib XID.
|
|||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
@ -38,10 +38,12 @@ namespace GtkDialogSample
|
|||||||
Application.Init ();
|
Application.Init ();
|
||||||
win = new Window ("Test");
|
win = new Window ("Test");
|
||||||
win.SetDefaultSize (250, 250);
|
win.SetDefaultSize (250, 250);
|
||||||
win.DeleteEvent += new DeleteEventHandler (on_win_delete);
|
win.DeleteEvent += delegate {
|
||||||
|
Application.Quit ();
|
||||||
|
}
|
||||||
|
|
||||||
Button btn = new Button ("Show About");
|
Button btn = new Button ("Show About");
|
||||||
btn.Clicked += new EventHandler (on_btn_clicked);
|
btn.Clicked += on_btn_clicked;
|
||||||
win.Add (btn);
|
win.Add (btn);
|
||||||
|
|
||||||
win.ShowAll ();
|
win.ShowAll ();
|
||||||
@ -54,7 +56,7 @@ namespace GtkDialogSample
|
|||||||
("Sample", win, Gtk.DialogFlags.DestroyWithParent);
|
("Sample", win, Gtk.DialogFlags.DestroyWithParent);
|
||||||
dialog.Modal = true;
|
dialog.Modal = true;
|
||||||
dialog.AddButton ("Close", ResponseType.Close);
|
dialog.AddButton ("Close", ResponseType.Close);
|
||||||
dialog.Response += new ResponseHandler (on_dialog_response);
|
dialog.Response += on_dialog_response;
|
||||||
dialog.Run ();
|
dialog.Run ();
|
||||||
dialog.Destroy ();
|
dialog.Destroy ();
|
||||||
}
|
}
|
||||||
@ -63,11 +65,6 @@ namespace GtkDialogSample
|
|||||||
{
|
{
|
||||||
Console.WriteLine (args.ResponseId);
|
Console.WriteLine (args.ResponseId);
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_win_delete (object obj, DeleteEventArgs args)
|
|
||||||
{
|
|
||||||
Application.Quit ();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</code>
|
</code>
|
||||||
@ -297,9 +294,39 @@ namespace GtkDialogSample
|
|||||||
<param name="flags">dialog characteristic such as modality and destruction policy.</param>
|
<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>
|
<param name="button_data">a list of button text/response pairs if desired.</param>
|
||||||
<remarks>
|
<remarks>
|
||||||
Creates a new <see cref="T:Gtk.Dialog" /> with the specified title and parent widget.
|
<para>Creates a new <see cref="T:Gtk.Dialog" /> with the specified title and parent widget.</para>
|
||||||
The <see cref="T:Gtk.DialogFlags" /> argument can be used to make the dialog modal (<see cref="F:Gtk.DialogFlags.Modal" />)
|
<para>
|
||||||
and/or to have it destroyed along with its parent (<see cref="F:Gtk.DialogFlags.DestroyWithParent" />).
|
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>
|
</remarks>
|
||||||
<since version="Gtk# 2.4" />
|
<since version="Gtk# 2.4" />
|
||||||
</Docs>
|
</Docs>
|
||||||
@ -577,4 +604,4 @@ namespace GtkDialogSample
|
|||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
</Members>
|
</Members>
|
||||||
</Type>
|
</Type>
|
Loading…
Reference in New Issue
Block a user