Flush
svn path=/trunk/gtk-sharp/; revision=29376
This commit is contained in:
parent
112f066abf
commit
5b00f6f758
2 changed files with 18 additions and 1 deletions
|
@ -60,7 +60,17 @@
|
|||
<Docs>
|
||||
<summary>To be added</summary>
|
||||
<returns>a <see cref="T:System.Int32" /></returns>
|
||||
<remarks>To be added</remarks>
|
||||
<remarks>
|
||||
<para>Returns an <see cref="T:System.Int32" /> of the number of monitors attached to the current <see cref="T:Gdk.Screen" />.</para>
|
||||
<para>The following example will print the number of monitors in the current display to the console.</para>
|
||||
<example>
|
||||
<code lang="C#">Display theDisplay = Display.OpenDefaultLibgtkOnly();
|
||||
Screen defaultScreen = theDisplay.DefaultScreen;
|
||||
int numMonitors = defaultScreen.NMonitors;
|
||||
Console.WriteLine("You have {0} monitors.",numMonitors);
|
||||
</code>
|
||||
</example>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="RootWindow">
|
||||
|
|
|
@ -162,6 +162,13 @@
|
|||
<para>
|
||||
Note 1: Nearly any use of this method creates a race condition, because the size of the <paramref name="window" /> may change between the time that you get the size and the time that you perform some action assuming that size is the current size. To avoid race conditions, connect to <see cref="F:Gtk.Widget.ConfigureEvent" /> on the <paramref name="window" /> and adjust your size-dependent state to match the size delivered in the GdkEventConfigure.
|
||||
</para>
|
||||
<para>The following example will print the height and width of a <see cref="T:Gtk.Window" /> called myWindow to the console. </para>
|
||||
<example>
|
||||
<code lang="C#">int height =0;
|
||||
int width = 0;
|
||||
myWindow.GetSize(out width , out height);
|
||||
Console.WriteLine("Width: {0}, Height: {1}" , width , height);</code>
|
||||
</example>
|
||||
</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
|
|
Loading…
Reference in a new issue