* en/Gtk/EventBox.xml:

* en/Gtk/Fixed.xml: Add more updates from John Luke <jluke@cfl.rr.com>.

svn path=/trunk/gtk-sharp/; revision=14224
This commit is contained in:
Duncan Mak 2003-05-02 22:36:47 +00:00
parent d413d07870
commit 3481db90db
3 changed files with 112 additions and 32 deletions

View file

@ -1,6 +1,11 @@
2003-05-02 Duncan Mak <duncan@ximian.com>
* en/Gtk/EventBox.xml:
* en/Gtk/Fixed.xml: Add more updates from John Luke <jluke@cfl.rr.com>.
2003-05-01 Duncan Mak <duncan@ximian.com>
* en/Gtk/ToggleButton.xml: Add updated from John Luke <jluke@cfl.rr.com>.
* en/Gtk/ToggleButton.xml: Add updates from John Luke <jluke@cfl.rr.com>.
2003-04-24 Pedro Mart<72>nez Juli<6C> <yoros@wanadoo.es>

View file

@ -7,8 +7,64 @@
</AssemblyInfo>
<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>To be added</summary>
<remarks>To be added</remarks>
<summary>A widget used to catch events for widgets which do not have their own window.</summary>
<remarks>The <see cref="T:Gtk.EventBox"/> widget is a subclass of <see cref="T:Gtk.Bin"/> which also has its own window. It is useful since it allows you to catch events for widgets which do not have their own window.
<para><example>
<code lang="C#">
using Gtk;
using GtkSharp;
using Gdk;
using System;
public class eventbox
{
static void delete_event (object obj, DeleteEventArgs args)
{
Application.Quit();
}
static void exitbutton_event (object obj, ButtonPressEventArgs args)
{
Application.Quit();
}
public static void Main (string[] args)
{
Gtk.Window window;
EventBox eventbox;
Label label;
Application.Init();
window = new Gtk.Window ("Eventbox");
window.DeleteEvent += new DeleteEventHandler (delete_event);
window.BorderWidth = 10;
eventbox = new EventBox ();
window.Add (eventbox);
eventbox.Show();
label = new Label ("Click here to quit");
eventbox.Add(label);
label.Show();
label.SetSizeRequest(110, 20);
eventbox.ButtonPressEvent += new ButtonPressEventHandler (exitbutton_event);
eventbox.Realize();
window.Show();
Application.Run();
}
}
</code>
</example></para>
</remarks>
</Docs>
<Base>
<BaseTypeName>Gtk.Bin</BaseTypeName>
@ -63,9 +119,13 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gtk.EventBox'</returns>
<remarks>To be added</remarks>
<summary>Creates a new <see cref="T:Gtk.EventBox"/>.</summary>
<returns>an object of type <see cref="T:Gtk.EventBox"/></returns>
<remarks>Creates a new <see cref="T:Gtk.EventBox"/>.
<example>
<code lang="C#">EventBox eb = new EventBox();</code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -75,8 +135,8 @@
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Docs>
<summary>The GLib Type for Gtk.EventBox</summary>
<returns>The GLib Type for the Gtk.EventBox class.</returns>
<summary>The <see cref="T:GLib.Type"/> for <see cref="T:Gtk.EventBox"/></summary>
<returns>The <see cref="T:GLib.Type"/> for the <see cref="T:Gtk.EventBox"/> class.</returns>
<remarks />
</Docs>
</Member>
@ -90,11 +150,11 @@
<Docs>
<summary>Internal constructor</summary>
<param name="gtype">GLib type for the type</param>
<returns>Creates a new instance of EventBox, using the GLib-provided type</returns>
<returns>Creates a new instance of <see cref="T:Gtk.EventBox"/>, using the GLib-provided type</returns>
<remarks>
<para>This is a constructor used by derivative types of <see cref="T:Gtk.EventBox" /> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -7,8 +7,20 @@
</AssemblyInfo>
<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>To be added</summary>
<remarks>To be added</remarks>
<summary>A container which allows you to position widgets at fixed coordinates</summary>
<remarks>
<para>The <see cref="T:Gtk.Fixed"/> widget is a container which can place child widgets at fixed positions and with fixed sizes, given in pixels. <see cref="T:Gtk.Fixed"/> performs no automatic layout management.</para>
<para>For most applications, you should not use this container! It keeps you from having to learn about the other Gtk# containers, but it results in broken applications. With <see cref="T:Gtk.Fixed"/>, the following things will result in truncated text, overlapping widgets, and other display bugs:
<list type="bullet">
<item>Themes, which may change widget sizes.</item>
<item>Fonts other than the one you used to write the app will of course change the size of widgets containing text; keep in mind that users may use a larger font because of difficulty reading the default, or they may be using Windows or the framebuffer port of GTK+, where different fonts are available.</item>
<item>Translation of text into other languages changes its size. Also, display of non-English text will use a different font in many cases.</item>
</list>
</para>
<para>In addition, the fixed widget can't properly be mirrored in right-to-left languages such as Hebrew and Arabic. i.e. normally GTK+ will flip the interface to put labels to the right of the thing they label, but it can't do that with <see cref="T:Gtk.Fixed"/>. So your application will not be usable in right-to-left languages.</para>
<para>Finally, fixed positioning makes it kind of annoying to add/remove GUI elements, since you have to reposition all the other elements. This is a long-term maintenance problem for your application.</para>
<para>If you know none of these things are an issue for your application, and prefer the simplicity of <see cref="T:Gtk.Fixed"/>, by all means use the widget. But you should be aware of the tradeoffs.</para>
</remarks>
</Docs>
<Base>
<BaseTypeName>Gtk.Container</BaseTypeName>
@ -41,11 +53,11 @@
<Parameter Name="y" Type="System.Int32" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="widget">To be added: an object of type 'Gtk.Widget'</param>
<param name="x">To be added: an object of type 'int'</param>
<param name="y">To be added: an object of type 'int'</param>
<remarks>To be added</remarks>
<summary>Moves a child of a <see cref="T:Gtk.Fixed"/> container to the given position.</summary>
<param name="widget">an object of type <see cref="T:Gtk.Widget"/></param>
<param name="x">an object of type <see cref="T:System.Int32"/></param>
<param name="y">an object of type <see cref="T:System.Int32"/></param>
<remarks>Moves a child of a <see cref="T:Gtk.Fixed"/> container to the given position.</remarks>
</Docs>
</Member>
<Member MemberName="Put">
@ -60,11 +72,11 @@
<Parameter Name="y" Type="System.Int32" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="widget">To be added: an object of type 'Gtk.Widget'</param>
<param name="x">To be added: an object of type 'int'</param>
<param name="y">To be added: an object of type 'int'</param>
<remarks>To be added</remarks>
<summary>Adds a widget to a <see cref="T:Gtk.Fixed"/> container at the given position.</summary>
<param name="widget">an object of type <see cref="T:Gtk.Widget"/></param>
<param name="x">an object of type <see cref="T:System.Int32"/></param>
<param name="y">an object of type <see cref="T:System.Int32"/></param>
<remarks>Adds a widget to a <see cref="T:Gtk.Fixed"/> container at the given position.</remarks>
</Docs>
</Member>
<Member MemberName="Finalize">
@ -101,9 +113,9 @@
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gtk.Fixed'</returns>
<remarks>To be added</remarks>
<summary>Creates a new <see cref="T:Gtk.Fixed"/> object.</summary>
<returns>an object of type <see cref="T:Gtk.Fixed"/></returns>
<remarks>Creates a new <see cref="T:Gtk.Fixed"/> object.</remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -113,8 +125,8 @@
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Docs>
<summary>The GLib Type for Gtk.Fixed</summary>
<returns>The GLib Type for the Gtk.Fixed class.</returns>
<summary>The <see cref="T:GLib.Type"/> for <see cref="T:Gtk.Fixed"/></summary>
<returns>The <see cref="T:GLib.Type"/> for the <see cref="T:Gtk.Fixed"/> class.</returns>
<remarks />
</Docs>
</Member>
@ -128,10 +140,13 @@
<Parameter Name="value" Type="System.Boolean" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="value">To be added: an object of type 'bool'</param>
<returns>To be added: an object of type 'bool'</returns>
<remarks>To be added</remarks>
<summary>Determines if <see cref="T:Gtk.Fixed"/> has a seperate <see cref="T:Gdk.Window"/></summary>
<param name="value">an object of type <see cref="T:System.Boolean"/></param>
<returns>an object of type <see cref="T:System.Boolean"/></returns>
<remarks>
<para>Gets whether the <see cref="T:Gtk.Fixed"/> has it's own <see cref="T:Gdk.Window"/>.</para>
<para>Sets whether a <see cref="T:Gtk.Fixed"/> widget is created with a separate <see cref="T:Gdk.Window"/> or not. (By default, it will be created without a seperate <see cref="T:Gdk.Window"/>). This function must be called while the <see cref="T:Gtk.Fixed"/> is not realized, for instance, immediately after the window is created.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
@ -151,4 +166,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>