xshm.nim 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import
  2. x, xlib
  3. #const
  4. # libX11* = "libX11.so"
  5. #
  6. # Automatically converted by H2Pas 0.99.15 from xshm.h
  7. # The following command line parameters were used:
  8. # -p
  9. # -T
  10. # -S
  11. # -d
  12. # -c
  13. # xshm.h
  14. #
  15. const
  16. constX_ShmQueryVersion* = 0
  17. constX_ShmAttach* = 1
  18. constX_ShmDetach* = 2
  19. constX_ShmPutImage* = 3
  20. constX_ShmGetImage* = 4
  21. constX_ShmCreatePixmap* = 5
  22. ShmCompletion* = 0
  23. ShmNumberEvents* = ShmCompletion + 1
  24. BadShmSeg* = 0
  25. ShmNumberErrors* = BadShmSeg + 1
  26. type
  27. PShmSeg* = ptr TShmSeg
  28. TShmSeg* = culong
  29. PXShmCompletionEvent* = ptr TXShmCompletionEvent
  30. TXShmCompletionEvent*{.final.} = object
  31. theType*: cint
  32. serial*: culong
  33. send_event*: TBool
  34. display*: PDisplay
  35. drawable*: TDrawable
  36. major_code*: cint
  37. minor_code*: cint
  38. shmseg*: TShmSeg
  39. offset*: culong
  40. PXShmSegmentInfo* = ptr TXShmSegmentInfo
  41. TXShmSegmentInfo*{.final.} = object
  42. shmseg*: TShmSeg
  43. shmid*: cint
  44. shmaddr*: cstring
  45. readOnly*: TBool
  46. proc XShmQueryExtension*(para1: PDisplay): TBool{.cdecl, dynlib: libX11, importc.}
  47. proc XShmGetEventBase*(para1: PDisplay): cint{.cdecl, dynlib: libX11, importc.}
  48. proc XShmQueryVersion*(para1: PDisplay, para2: Pcint, para3: Pcint, para4: PBool): TBool{.
  49. cdecl, dynlib: libX11, importc.}
  50. proc XShmPixmapFormat*(para1: PDisplay): cint{.cdecl, dynlib: libX11, importc.}
  51. proc XShmAttach*(para1: PDisplay, para2: PXShmSegmentInfo): TStatus{.cdecl,
  52. dynlib: libX11, importc.}
  53. proc XShmDetach*(para1: PDisplay, para2: PXShmSegmentInfo): TStatus{.cdecl,
  54. dynlib: libX11, importc.}
  55. proc XShmPutImage*(para1: PDisplay, para2: TDrawable, para3: TGC,
  56. para4: PXImage, para5: cint, para6: cint, para7: cint,
  57. para8: cint, para9: cuint, para10: cuint, para11: TBool): TStatus{.
  58. cdecl, dynlib: libX11, importc.}
  59. proc XShmGetImage*(para1: PDisplay, para2: TDrawable, para3: PXImage,
  60. para4: cint, para5: cint, para6: culong): TStatus{.cdecl,
  61. dynlib: libX11, importc.}
  62. proc XShmCreateImage*(para1: PDisplay, para2: PVisual, para3: cuint,
  63. para4: cint, para5: cstring, para6: PXShmSegmentInfo,
  64. para7: cuint, para8: cuint): PXImage{.cdecl,
  65. dynlib: libX11, importc.}
  66. proc XShmCreatePixmap*(para1: PDisplay, para2: TDrawable, para3: cstring,
  67. para4: PXShmSegmentInfo, para5: cuint, para6: cuint,
  68. para7: cuint): TPixmap{.cdecl, dynlib: libX11, importc.}
  69. # implementation