您的位置:首页 > 产品设计 > UI/UE

Xlib 相关函数简介

2008-02-18 16:33 232 查看
 

1. To configure a window's size,
location, stacking, or border, use XConfigureWindow()
.

2. To move a window without changing
its size, use XMoveWindow()
.

3. To change a window's size without
changing the upper-left coordinate, use XResizeWindow()
.

4. To change the size and location
of a window, use XMoveResizeWindow()
.

5. To change the border width of a
given window, use XSetWindowBorderWidth()
.

6. To raise a window so that no
sibling window obscures it, use XRaiseWindow()
.

7. To lower a window so that it does
not obscure any sibling windows, use XLowerWindow()
.

8. To circulate a subwindow up or
down, use XCirculateSubwindows()
.

9. To raise the lowest mapped child
of a window that is partially or completely occluded by another child, use XCirculateSubwindowsUp()
.

10. To lower the highest mapped
child of a window that partially or completely occludes another child, use XCirculateSubwindowsDown()
.

11. To restack a set of windows from
top to bottom, use XRestackWindows()
.

12. To change one or more attributes
for a given window, use XChangeWindowAttributes()
.

13. To set the background of a
window to a given pixel, use XSetWindowBackground()
.

14. To set the background of a
window to a given pixmap, use XSetWindowBackgroundPixmap()
.

15. To change and repaint a window's
border to a given pixel, use XSetWindowBorder()
.

16. To change and repaint the border
tile of a given window, use XSetWindowBorderPixmap()
.

17. To set the colormap of a given
window, use XSetWindowColormap()
.

18. To define which cursor will be
used in a window, use XDefineCursor()
.

19. To undefine the cursor in a
given window, use XUndefineCursor()
.

20. To obtain the parent, a list of
children, and number of children for a given window, use XQueryTree()
.

21. To obtain the current attributes
of a given window, use XGetWindowAttributes()
.

22. To obtain the current geometry
of a given drawable, use XGetGeometry()
.

23. To obtain the screen coordinates
of the pointer or to determine the pointer coordinates relative to a specified
window, use XQueryPointer()
.

24. To return an atom for a given
name, use XInternAtom()
.

25. To return atoms for an array of
names, use XInternAtoms()
.

26. To return a name for a given
atom identifier, use XGetAtomName()
.

27. To return the names for an array
of atom identifiers, use XGetAtomNames()
.

28. To obtain the type, format, and
value of a property of a given wind
4000
ow, use XGetWindowProperty()
.

29. To obtain a given window's
property list, use XListProperties()
.

30. To change a property of a given
window, use XChangeProperty()
.

31. To rotate a window's property
list, use XRotateWindowProperties()
.

32. To delete a property on a given
window, use XDeleteProperty()
.

33. To set the selection owner, use XSetSelectionOwner()
.

34. To return the selection owner,
use XGetSelectionOwner()
.

35. To request conversion of a
selection, use XConvertSelection()
.

36. To create a pixmap of a given
size, use XCreatePixmap()
.

37. To free all storage associated
with a specified pixmap, use XFreePixmap()
.

38. To create a cursor from the
standard cursor font, use XCreateFontCursor()
.

39. To create a cursor from font
glyphs, use XCreateGlyphCursor()
.

40. To create a cursor from two
bitmaps, use XCreatePixmapCursor()
.

41. To determine useful cursor
sizes, use XQueryBestCursor()
.

42. To change the color of a given
cursor, use XRecolorCursor()
.

43. To free (destroy) a given
cursor, use XFreeCursor

44. To create a colormap for a
screen, use XCreateColormap()
.

45. To create a new colormap when
the allocation out of a previously shared colormap has failed because of
resource exhaustion, use XCopyColormapAndFree()
.

46. To destroy a colormap, use XFreeColormap()
.

47.  
To map a color name to an RGB value, use XLookupColor()
.

48. To map a color name to the exact
RGB value, use XParseColor()
.

49. To map a color name to a value
in an arbitrary color space, use XcmsLookupColor()
.

50. To allocate a read-only color
cell with an RGB value, use XAllocColor()
.

51. To allocate a read-only color
cell with a color in arbitrary format, use XcmsAllocColor()
.

52. To allocate a read-only color
cell using a color name and return the closest color supported by the hardware
in RGB format, use XAllocNamedColor()
.

53. To allocate a read-only color
cell using a color name and return the closest color supported by the hardware
in an arbitrary format, use XcmsAllocNamedColor()
.

54. To allocate read/write color
cell and color plane combinations for a PseudoColor
model, use XAllocColorCells()
.

55. To allocate read/write color
resources for a DirectColor
model,
use XAllocColorPlanes()
.

55. To free colormap cells, use XFreeColors()
.

56.  
To store an RGB value in a single colormap
cell, use XStoreColor()
.

57. To store multiple RGB values in
multiple colormap cells, use XStoreColors()
.

58. To store a color of arbitrary
format in a single colormap cell, use XcmsStoreColor()
.

59. To store multiple colors of
arbitrary format in multiple colormap cells, use XcmsStoreColors()
.

60. To store a color specified by
name in a single colormap cell, use XStoreNamedColor()
.

61. To query the RGB value of a
single colormap cell, use XQueryColor()
.

62. To query the RGB values of
multiple colormap cells, use XQueryColors()
.

63. To query the color of a single
colormap cell in an arbitrary format, use XcmsQueryColor()
.

64. To query the color of multiple
colormap cells in an arbitrary format, use XcmsQueryColors()
.

65. To obtain the CCC
associated
with a colormap, use XcmsCCCOfColormap()
.

66. To change the CCC
associated
with a colormap, use XcmsSetCCCOfColormap()
.

67. To obtain the default CCC for a
screen, use XcmsDefaultCCC()
.

68. 

To set the Client White Point in the CCC
, use XcmsSetWhitePoint()
.

69. To set the gamut compression
procedure and corresponding client data in a specified CCC, use XcmsSetCompressionProc()
.

70. To set the white point
adjustment procedure and corresponding client data in a specified CCC, use XcmsSetWhiteAdjustProc()
.

71. To create a CCC
, use XcmsCreateCCC()
.

72. To free a CCC
, use XcmsFreeCCC()
.

73. To convert an array of color
specifications in arbitrary color formats to a single destination format, use XcmsConvertColors()
.

74.  
To obtain the color specification for black
(zero intensity red, green, and blue), use XcmsQueryBlack()
.

75. To obtain the color
specification for blue (full intensity blue while red and green are zero), use XcmsQueryBlue()
.

76. To obtain the color
specification for green (full intensity green while red and blue are zero), use
XcmsQueryGreen()
.

77. To obtain the color
specification for red (full intensity red while green and blue are zero), use XcmsQueryRed()
.

78. To obtain the color
specification for white (full intensity red, green, and blue), use XcmsQueryWhite()
.

79. To create a new GC that is
usable on a given screen with a depth of drawable, use XCreateGC()
.

80. To copy components from a source
GC to a destination GC, use XCopyGC()
.

81. To change the components in a
given GC, use XChangeGC()
.

82. To obtain components of a given
GC, use XGetGCValues()
.

83. To free a given GC, use XFreeGC()
.

84. To obtain the GContext
resource ID for a given GC, use
XGContextFromGC()

85. To set the foreground,
background, plane mask, and function components for a given GC, use XSetState()
.

86. To set the foreground of a given
GC, use XSetForeground()
.

87. To set the background of a given
GC, use XSetBackground()
.

88. To set the display function in a
given GC, use XSetFunction()
.

89. To set the plane mask of a given
GC, use XSetPlaneMask()
.

90. To set the line drawing
components of a given GC, use XSetLineAttributes()
.

91. To set the dash-offset and
dash-list for dashed line styles of a given GC, use XSetDashes()
.

92. 

To set the fill-style of a given GC, use XSetFillStyle()
.

93. To set the fill-rule of a given
GC, use XSetFillRule()
.

94. To obtain the best size of a
tile, stipple, or cursor, use XQueryBestSize()
.

95. To obtain the best fill tile
shape, use XQueryBestTile()
.

96. To obtain the best stipple
shape, use XQueryBestStipple()
.

97. To set the fill tile of a given
GC, use XSetTile()
.

98. To set the stipple of a given
GC, use XSetStipple()
.

99. To set the tile or stipple
origin of a given GC, use XSetTSOrigin()
.

100. To set the current font of a
given GC, use XSetFont()
.

101. To set the clip-origin of a
given GC, use XSetClipOrigin()
.

102. To set the clip-mask of a given
GC to the specified pixmap, use XSetClipMask()
.

103. To set the clip-mask of a given
GC to the specified list of rectangles, use XSetClipRectangles()
.

104. 

To set the arc mode of a given GC, use XSetArcMode()
.

105. To set the subwindow mode of a
given GC, use XSetSubwindowMode()
.

106. To set the graphics-exposures
flag of a given GC, use XSetGraphicsExposures()
.

107. To clear a rectangular area of
a given window, use XClearArea()
.

108. To clear the entire area in a
given window, use XClearWindow()
.

109. To copy an area between
drawables of the same root and depth, use XCopyArea()
.

110. To copy a single bit plane of a
given drawable, use XCopyPlane()
.

111. To draw a single point in a
given drawable, use XDrawPoint()
.

112. To draw multiple points in a
given drawable, use XDrawPoints()
.

113. To draw a single line between
two points in a given drawable, use XDrawLine()
.

114. To draw multiple lines in a
given drawable, use XDrawLines()
.

115. To draw multiple, unconnected
lines in a given drawable, use XDrawSegments()
.

116. To draw the outline of a single
rectangle in a given drawable, use XDrawRectangle()
.

117. To draw the outline of multiple
rectangles in a given drawable, use XDrawRectangles()
.

118. 

To draw a single arc in a given drawable, use XDrawArc()
.

119. To draw multiple arcs in a
given drawable, use XDrawArcs()

120. To fill a single rectangular
area in a given drawable, use XFillRectangle()
.

121. To fill multiple rectangular
areas in a given drawable, use XFillRectangles()

122. To fill a polygon area in a
given drawable, use XFillPolygon()
.

123. 

To fill a single arc in a given drawable, use XFillArc()
.

124. To fill multiple arcs in a
given drawable, use XFillArcs()
.

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息