Esempio n. 1
0
 internal static void XChangeWindowAttributes(Display display, Window w, SetWindowValuemask valuemask, ref XSetWindowAttributes attributes)
 {
     XChangeWindowAttributes(display, w, (UIntPtr)valuemask, ref attributes);
 }
Esempio n. 2
0
		internal extern static IntPtr XCreateWindow (IntPtr display, IntPtr parent, int x, int y, int width, int height, int border_width, int depth, int xclass, IntPtr visual, SetWindowValuemask valuemask, ref XSetWindowAttributes attributes);
Esempio n. 3
0
 internal static void XChangeWindowAttributes(IntPtr display, IntPtr w, SetWindowValuemask valuemask, ref XSetWindowAttributes attributes)
 {
     Functions.XChangeWindowAttributes(display, w, (UIntPtr)((ulong)valuemask), ref attributes);
 }
Esempio n. 4
0
 /// <summary>
 /// The XCreateWindow function creates an unmapped subwindow for a specified parent window, returns the window ID of the created window, and causes the X server to generate a CreateNotify event. The created window is placed on top in the stacking order with respect to siblings.
 /// </summary>
 /// <param name="display">Specifies the connection to the X server.</param>
 /// <param name="parent">Specifies the parent window.</param>
 /// <param name="x">Specify the x coordinates, which are the top-left outside corner of the window's borders and are relative to the inside of the parent window's borders.</param>
 /// <param name="y">Specify the y coordinates, which are the top-left outside corner of the window's borders and are relative to the inside of the parent window's borders.</param>
 /// <param name="width">Specify the width, which is the created window's inside dimensions and do not include the created window's borders.</param>
 /// <param name="height">Specify the height, which is the created window's inside dimensions and do not include the created window's borders.</param>
 /// <param name="border_width">Specifies the width of the created window's border in pixels.</param>
 /// <param name="depth">Specifies the window's depth. A depth of CopyFromParent means the depth is taken from the parent.</param>
 /// <param name="class">Specifies the created window's class. You can pass InputOutput, InputOnly, or CopyFromParent. A class of CopyFromParent means the class is taken from the parent.</param>
 /// <param name="visual">Specifies the visual type. A visual of CopyFromParent means the visual type is taken from the parent.</param>
 /// <param name="valuemask">Specifies which window attributes are defined in the attributes argument. This mask is the bitwise inclusive OR of the valid attribute mask bits. If valuemask is zero, the attributes are ignored and are not referenced.</param>
 /// <param name="attributes">Specifies the structure from which the values (as specified by the value mask) are to be taken. The value mask should have the appropriate bits set to indicate which attributes have been set in the structure.</param>
 /// <returns>The window ID of the created window.</returns>
 /// <remarks>
 /// The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner. 
 /// <para>The border_width for an InputOnly window must be zero, or a BadMatch error results. For class InputOutput, the visual type and depth must be a combination supported for the screen, or a BadMatch error results. The depth need not be the same as the parent, but the parent must not be a window of class InputOnly, or a BadMatch error results. For an InputOnly window, the depth must be zero, and the visual must be one supported by the screen. If either condition is not met, a BadMatch error results. The parent window, however, may have any depth and class. If you specify any invalid window attribute for a window, a BadMatch error results. </para>
 /// <para>The created window is not yet displayed (mapped) on the user's display. To display the window, call XMapWindow(). The new window initially uses the same cursor as its parent. A new cursor can be defined for the new window by calling XDefineCursor(). The window will not be visible on the screen unless it and all of its ancestors are mapped and it is not obscured by any of its ancestors. </para>
 /// <para>XCreateWindow can generate BadAlloc BadColor, BadCursor, BadMatch, BadPixmap, BadValue, and BadWindow errors. </para>
 /// <para>The XCreateSimpleWindow function creates an unmapped InputOutput subwindow for a specified parent window, returns the window ID of the created window, and causes the X server to generate a CreateNotify event. The created window is placed on top in the stacking order with respect to siblings. Any part of the window that extends outside its parent window is clipped. The border_width for an InputOnly window must be zero, or a BadMatch error results. XCreateSimpleWindow inherits its depth, class, and visual from its parent. All other window attributes, except background and border, have their default values. </para>
 /// <para>XCreateSimpleWindow can generate BadAlloc, BadMatch, BadValue, and BadWindow errors.</para>
 /// </remarks>
 public static Window XCreateWindow(Display display, Window parent,
     int x, int y, int width, int height, int border_width, int depth,
     CreateWindowArgs @class, IntPtr visual, SetWindowValuemask valuemask,
     XSetWindowAttributes? attributes)
 {
     unsafe
     {
         if (attributes.HasValue)
         {
             XSetWindowAttributes attr = attributes.Value;
             return XCreateWindow(display, parent, x, y, width, height, border_width, depth,
                 (int)@class, visual, (IntPtr)valuemask, &attr);
         }
         else
         {
             return XCreateWindow(display, parent, x, y, width, height, border_width, depth,
                 (int)@class, visual, (IntPtr)valuemask, null);
         }
     }
 }
Esempio n. 5
0
 internal static void XChangeWindowAttributes(IntPtr display, IntPtr w, SetWindowValuemask valuemask, ref XSetWindowAttributes attributes)
 {
     Functions.XChangeWindowAttributes(display, w, (UIntPtr) ((ulong) valuemask), ref attributes);
 }