[Xcb-commit] windowcontextandmanipulation.mdwn

XCB site xcb at freedesktop.org
Tue Dec 11 07:39:03 PST 2012


 windowcontextandmanipulation.mdwn |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit e79c56203b4578092519639b20b57f691b6c968a
Author: Maximilianum <Maximilianum at web>
Date:   Tue Dec 11 07:39:03 2012 -0800

    corrected some formatting problems

diff --git a/windowcontextandmanipulation.mdwn b/windowcontextandmanipulation.mdwn
index dc51992..7227607 100644
--- a/windowcontextandmanipulation.mdwn
+++ b/windowcontextandmanipulation.mdwn
@@ -6,7 +6,7 @@ After we have seen how to create windows and draw on them, we take one step back
 
 Many of the parameters communicated to the window manager are passed using data called "properties". These properties are attached by the X server to different windows, and are stored in a format that makes it possible to read them from different machines that may use different architectures (remember that an X client program may run on a remote machine).
 
-The property and its type (a string, an integer, etc) are Id. Their type are xcb_atom_t:
+The property and its type (a string, an integer, etc) are Id. Their type are xcb\_atom\_t:
 
 		typedef uint32_t xcb_atom_t;
 
@@ -21,7 +21,7 @@ To change the property of a window, we use the following function:
 											   uint32_t         data_len, /* Length of the data parameter */
 											   const void      *data);    /* Data */
 
-The mode parameter coud be one of the following values (defined in enumeration xcb_prop_mode_t in the xproto.h header file):
+The mode parameter coud be one of the following values (defined in enumeration xcb\_prop\_mode\_t in the xproto.h header file):
 
 		XCB_PROP_MODE_REPLACE
 		XCB_PROP_MODE_PREPEND
@@ -29,7 +29,7 @@ The mode parameter coud be one of the following values (defined in enumeration x
 
 ### 2. Setting the window name and icon name
 
-The first thing we want to do would be to set the name for our window. This is done using the xcb_change_property() function. This name may be used by the window manager as the title of the window (in the title bar), in a task list, etc. The property atom to use to set the name of a window is XCB_ATOM_WM_NAME (and XCB_ATOM_WM_ICON_NAME for the iconified window) and its type is XCB_ATOM_STRING. Here is an example of utilization:
+The first thing we want to do would be to set the name for our window. This is done using the xcb\_change\_property() function. This name may be used by the window manager as the title of the window (in the title bar), in a task list, etc. The property atom to use to set the name of a window is XCB\_ATOM\_WM\_NAME (and XCB\_ATOM\_WM\_ICON_NAME for the iconified window) and its type is XCB\_ATOM\_STRING. Here is an example of utilization:
 
 		#include <string.h>
 
@@ -137,7 +137,7 @@ As we have seen when we have created our first window, in the X Events subsectio
 												uint16_t          value_mask,   /* The mask */
 												const uint32_t   *value_list);  /* The values to set */
 
-We set the value_mask to one or several mask values that are in the xcb_config_window_t enumeration in the xproto.h header:
+We set the value\_mask to one or several mask values that are in the xcb\_config\_window\_t enumeration in the xproto.h header:
 
 		XCB_CONFIG_WINDOW_X             // new x coordinate of the window's top left corner
 		XCB_CONFIG_WINDOW_Y             // new y coordinate of the window's top left corner
@@ -147,7 +147,7 @@ We set the value_mask to one or several mask values that are in the xcb_config_w
 		XCB_CONFIG_WINDOW_SIBLING
 		XCB_CONFIG_WINDOW_STACK_MODE    // the new stacking order
 
-We then give to value_mask the new value. We now describe how to use xcb_configure_window_t in some useful situations.
+We then give to value\_mask the new value. We now describe how to use xcb\_configure\_window\_t in some useful situations.
 
 ### 3. Moving a window around the screen
 
@@ -169,7 +169,7 @@ Yet another operation we can do is to change the size of a window. This is done
 		/* Resize the window to width = 200 and height = 300 */
 		xcb_configure_window (connection, window, XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, values);
 
-We can also combine the move and resize operations using one single call to xcb_configure_window_t:
+We can also combine the move and resize operations using one single call to xcb\_configure\_window\_t:
 
 		const static uint32_t values[] = { 10, 20, 200, 300 };
 


More information about the xcb-commit mailing list