-
Complete Download [TAR]
[WIM]
[ZIP]
[RAR]
- Alphabetical Download [TAR]
[WIM]
[ZIP]
[RAR]
- Download
Instructions
Make
a donation:
IBAN: IT36M0708677020000000008016 - BIC/SWIFT:
ICRAITRRU60 - VALERIO DI STEFANO or
Privacy Policy
Cookie Policy
Terms and Conditions
XCreateWindow(3X11) manual page
Table of Contents
XCreateWindow, XCreateSimpleWindow,
XSetWindowAttributes - create windows and window attributes structure
Window
XCreateWindow(display, parent, x, y, width, height, border_width, depth,
class, visual, valuemask, attributes)
Display *display;
Window parent;
int x, y;
unsigned int width, height;
unsigned int border_width;
int depth;
unsigned int class;
Visual *visual
unsigned long valuemask;
XSetWindowAttributes *attributes;
Window XCreateSimpleWindow(display, parent, x, y, width, height, border_width,
border, background)
Display *display;
Window parent;
int x, y;
unsigned int width, height;
unsigned int border_width;
unsigned long border;
unsigned long background;
- 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.
- background
- Specifies
the background pixel value of the window.
- border
- Specifies the border pixel
value of the window.
- border_width
- Specifies the width of the created window's
border in pixels.
- 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.
- depth
- Specifies the window's depth.
A depth of CopyFromParent means the depth is taken from the parent.
- display
- Specifies
the connection to the X server.
- parent
- Specifies the parent window.
- 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.
- visual
- Specifies
the visual type. A visual of CopyFromParent means the visual type is
taken from the parent. and do not include the created window's borders
- width
- height
- Specify the width and height, which are the created window's inside
dimensions borders and are relative to the inside of the parent window's
borders
- x
- y
- Specify the x and y coordinates, which are the top-left outside corner
of the window's
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.
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.
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.
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.
XCreateWindow can generate
BadAlloc BadColor, BadCursor, BadMatch, BadPixmap, BadValue,
and BadWindow errors.
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.
XCreateSimpleWindow
can generate BadAlloc, BadMatch, BadValue, and BadWindow errors.
The XSetWindowAttributes structure contains:
/* Window attribute
value mask bits */
#define |
CWBackPixmap T} T{ |
(1L<<0) |
T} |
#define |
CWBackPixel
T} T{ |
(1L<<1) |
T} |
#define |
CWBorderPixmap T} T{ |
(1L<<2) |
T} |
#define |
CWBorderPixel
T} T{ |
(1L<<3) |
T} |
#define |
CWBitGravity T} T{ |
(1L<<4) |
T} |
#define |
CWWinGravity T} T{ |
(1L<<5) |
T} |
#define
|
CWBackingStore T} T{ |
(1L<<6) |
T} |
#define |
CWBackingPlanes T} T{ |
(1L<<7) |
T} |
#define
|
CWBackingPixel T} T{ |
(1L<<8) |
T} |
#define |
CWOverrideRedirect T} T{ |
(1L<<9) |
T} |
#define
|
CWSaveUnder T} T{ |
(1L<<10) |
T} |
#define |
CWEventMask T} T{ |
(1L<<11) |
T} |
#define |
CWDontPropagate
T} T{ |
(1L<<12) |
T} |
#define |
CWColormap T} T{ |
(1L<<13) |
T} |
#define |
CWCursor T} T{ |
(1L<<14) |
T} |
/* Values */
typedef struct {
Pixmap background_pixmap; /* background, None, or ParentRelative */
unsigned long background_pixel; /* background pixel */
Pixmap border_pixmap; /* border of the window or CopyFromParent */
unsigned long border_pixel; /* border pixel value */
int bit_gravity; /* one of bit gravity values */
int win_gravity; /* one of the window gravity values */
int backing_store; /* NotUseful, WhenMapped, Always */
unsigned long backing_planes; /* planes to be preserved if possible */
unsigned long backing_pixel; /* value to use in restoring planes */
Bool save_under; /* should bits under be saved? (popups) */
long event_mask; /* set of events that should be saved */
long do_not_propagate_mask; /* set of events that should not propagate */
Bool override_redirect; /* boolean value for override_redirect */
Colormap colormap; /* color map to be associated with window */
Cursor cursor; /* cursor to be displayed (or None) */
} XSetWindowAttributes;
For a detailed explanation of the members of this structure, see Xlib
- C Language X Interface.
- BadAlloc
- The server failed to allocate
the requested resource or server memory.
- BadColor
- A value for a Colormap
argument does not name a defined Colormap.
- BadCursor
- A value for a Cursor
argument does not name a defined Cursor.
- BadMatch
- The values do not exist
for an InputOnly window.
- BadMatch
- Some argument or pair of arguments
has the correct type and range but fails to match in some other way required
by the request.
- BadPixmap
- A value for a Pixmap argument does not name
a defined Pixmap.
- BadValue
- Some numeric value falls outside the range
of values accepted by the request. Unless a specific range is specified
for an argument, the full range defined by the argument's type is accepted.
Any argument defined as a set of alternatives can generate this error.
- BadWindow
- A value for a Window argument does not name a defined Window.
XChangeWindowAttributes(3X11)
, XConfigureWindow(3X11)
, XDefineCursor(3X11)
,
XDestroyWindow(3X11)
, XMapWindow(3X11)
, XRaiseWindow(3X11)
, XUnmapWindow(3X11)
Xlib - C Language X Interface
Table of Contents
Static
Wikipedia 2008 (no
images)
aa
- ab
- af
- ak
- als
- am
- an
- ang
- ar
- arc
- as
- ast
- av
- ay
- az
- ba
- bar
- bat_smg
- bcl
- be
- be_x_old
- bg
- bh
- bi
- bm
- bn
- bo
- bpy
- br
- bs
- bug
- bxr
- ca
- cbk_zam
- cdo
- ce
- ceb
- ch
- cho
- chr
- chy
- co
- cr
- crh
- cs
- csb
- cu
- cv
- cy
- da
- de
- diq
- dsb
- dv
- dz
- ee
- el
- eml
- en
- eo
- es
- et
- eu
- ext
- fa
- ff
- fi
- fiu_vro
- fj
- fo
- fr
- frp
- fur
- fy
- ga
- gan
- gd
- gl
- glk
- gn
- got
- gu
- gv
- ha
- hak
- haw
- he
- hi
- hif
- ho
- hr
- hsb
- ht
- hu
- hy
- hz
- ia
- id
- ie
- ig
- ii
- ik
- ilo
- io
- is
- it
- iu
- ja
- jbo
- jv
- ka
- kaa
- kab
- kg
- ki
- kj
- kk
- kl
- km
- kn
- ko
- kr
- ks
- ksh
- ku
- kv
- kw
- ky
- la
- lad
- lb
- lbe
- lg
- li
- lij
- lmo
- ln
- lo
- lt
- lv
- map_bms
- mdf
- mg
- mh
- mi
- mk
- ml
- mn
- mo
- mr
- mt
- mus
- my
- myv
- mzn
- na
- nah
- nap
- nds
- nds_nl
- ne
- new
- ng
- nl
- nn
- no
- nov
- nrm
- nv
- ny
- oc
- om
- or
- os
- pa
- pag
- pam
- pap
- pdc
- pi
- pih
- pl
- pms
- ps
- pt
- qu
- quality
- rm
- rmy
- rn
- ro
- roa_rup
- roa_tara
- ru
- rw
- sa
- sah
- sc
- scn
- sco
- sd
- se
- sg
- sh
- si
- simple
- sk
- sl
- sm
- sn
- so
- sr
- srn
- ss
- st
- stq
- su
- sv
- sw
- szl
- ta
- te
- tet
- tg
- th
- ti
- tk
- tl
- tlh
- tn
- to
- tpi
- tr
- ts
- tt
- tum
- tw
- ty
- udm
- ug
- uk
- ur
- uz
- ve
- vec
- vi
- vls
- vo
- wa
- war
- wo
- wuu
- xal
- xh
- yi
- yo
- za
- zea
- zh
- zh_classical
- zh_min_nan
- zh_yue
- zu
-
Static
Wikipedia 2007 (no
images)
aa
- ab
- af
- ak
- als
- am
- an
- ang
- ar
- arc
- as
- ast
- av
- ay
- az
- ba
- bar
- bat_smg
- bcl
- be
- be_x_old
- bg
- bh
- bi
- bm
- bn
- bo
- bpy
- br
- bs
- bug
- bxr
- ca
- cbk_zam
- cdo
- ce
- ceb
- ch
- cho
- chr
- chy
- co
- cr
- crh
- cs
- csb
- cu
- cv
- cy
- da
- de
- diq
- dsb
- dv
- dz
- ee
- el
- eml
- en
- eo
- es
- et
- eu
- ext
- fa
- ff
- fi
- fiu_vro
- fj
- fo
- fr
- frp
- fur
- fy
- ga
- gan
- gd
- gl
- glk
- gn
- got
- gu
- gv
- ha
- hak
- haw
- he
- hi
- hif
- ho
- hr
- hsb
- ht
- hu
- hy
- hz
- ia
- id
- ie
- ig
- ii
- ik
- ilo
- io
- is
- it
- iu
- ja
- jbo
- jv
- ka
- kaa
- kab
- kg
- ki
- kj
- kk
- kl
- km
- kn
- ko
- kr
- ks
- ksh
- ku
- kv
- kw
- ky
- la
- lad
- lb
- lbe
- lg
- li
- lij
- lmo
- ln
- lo
- lt
- lv
- map_bms
- mdf
- mg
- mh
- mi
- mk
- ml
- mn
- mo
- mr
- mt
- mus
- my
- myv
- mzn
- na
- nah
- nap
- nds
- nds_nl
- ne
- new
- ng
- nl
- nn
- no
- nov
- nrm
- nv
- ny
- oc
- om
- or
- os
- pa
- pag
- pam
- pap
- pdc
- pi
- pih
- pl
- pms
- ps
- pt
- qu
- quality
- rm
- rmy
- rn
- ro
- roa_rup
- roa_tara
- ru
- rw
- sa
- sah
- sc
- scn
- sco
- sd
- se
- sg
- sh
- si
- simple
- sk
- sl
- sm
- sn
- so
- sr
- srn
- ss
- st
- stq
- su
- sv
- sw
- szl
- ta
- te
- tet
- tg
- th
- ti
- tk
- tl
- tlh
- tn
- to
- tpi
- tr
- ts
- tt
- tum
- tw
- ty
- udm
- ug
- uk
- ur
- uz
- ve
- vec
- vi
- vls
- vo
- wa
- war
- wo
- wuu
- xal
- xh
- yi
- yo
- za
- zea
- zh
- zh_classical
- zh_min_nan
- zh_yue
- zu
-
Static
Wikipedia 2006 (no
images)
aa
- ab
- af
- ak
- als
- am
- an
- ang
- ar
- arc
- as
- ast
- av
- ay
- az
- ba
- bar
- bat_smg
- bcl
- be
- be_x_old
- bg
- bh
- bi
- bm
- bn
- bo
- bpy
- br
- bs
- bug
- bxr
- ca
- cbk_zam
- cdo
- ce
- ceb
- ch
- cho
- chr
- chy
- co
- cr
- crh
- cs
- csb
- cu
- cv
- cy
- da
- de
- diq
- dsb
- dv
- dz
- ee
- el
- eml
- eo
- es
- et
- eu
- ext
- fa
- ff
- fi
- fiu_vro
- fj
- fo
- fr
- frp
- fur
- fy
- ga
- gan
- gd
- gl
- glk
- gn
- got
- gu
- gv
- ha
- hak
- haw
- he
- hi
- hif
- ho
- hr
- hsb
- ht
- hu
- hy
- hz
- ia
- id
- ie
- ig
- ii
- ik
- ilo
- io
- is
- it
- iu
- ja
- jbo
- jv
- ka
- kaa
- kab
- kg
- ki
- kj
- kk
- kl
- km
- kn
- ko
- kr
- ks
- ksh
- ku
- kv
- kw
- ky
- la
- lad
- lb
- lbe
- lg
- li
- lij
- lmo
- ln
- lo
- lt
- lv
- map_bms
- mdf
- mg
- mh
- mi
- mk
- ml
- mn
- mo
- mr
- mt
- mus
- my
- myv
- mzn
- na
- nah
- nap
- nds
- nds_nl
- ne
- new
- ng
- nl
- nn
- no
- nov
- nrm
- nv
- ny
- oc
- om
- or
- os
- pa
- pag
- pam
- pap
- pdc
- pi
- pih
- pl
- pms
- ps
- pt
- qu
- quality
- rm
- rmy
- rn
- ro
- roa_rup
- roa_tara
- ru
- rw
- sa
- sah
- sc
- scn
- sco
- sd
- se
- sg
- sh
- si
- simple
- sk
- sl
- sm
- sn
- so
- sr
- srn
- ss
- st
- stq
- su
- sv
- sw
- szl
- ta
- te
- tet
- tg
- th
- ti
- tk
- tl
- tlh
- tn
- to
- tpi
- tr
- ts
- tt
- tum
- tw
- ty
- udm
- ug
- uk
- ur
- uz
- ve
- vec
- vi
- vls
- vo
- wa
- war
- wo
- wuu
- xal
- xh
- yi
- yo
- za
- zea
- zh
- zh_classical
- zh_min_nan
- zh_yue
- zu
-
Sub-domains
CDRoms
- Magnatune
- Librivox
- Liber
Liber - Encyclopaedia
Britannica - Project
Gutenberg - Wikipedia
2008
- Wikipedia
2007 - Wikipedia
2006 -
Other
Domains
https://www.classicistranieri.it
- https://www.ebooksgratis.com
- https://www.gutenbergaustralia.com
- https://www.englishwikipedia.com
- https://www.wikipediazim.com
- https://www.wikisourcezim.com
- https://www.projectgutenberg.net
- https://www.projectgutenberg.es
- https://www.radioascolto.com
- https://www.debitoformtivo.it
- https://www.wikipediaforschools.org
- https://www.projectgutenbergzim.com