mwmutil.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {%MainUnit ../gdk2x.pas}
  2. {$IFDEF read_interface_rest}
  3. type
  4. PMotifWmHints = ^TMotifWmHints;
  5. TMotifWmHints = record
  6. flags : dword;
  7. functions : dword;
  8. decorations : dword;
  9. input_mode : longint;
  10. status : dword;
  11. end;
  12. TMwmHints = TMotifWmHints;
  13. PMwmHints = ^TMwmHints;
  14. const
  15. MWM_HINTS_FUNCTIONS = 1 shl 0;
  16. MWM_HINTS_DECORATIONS = 1 shl 1;
  17. MWM_HINTS_INPUT_MODE = 1 shl 2;
  18. MWM_HINTS_STATUS = 1 shl 3;
  19. MWM_FUNC_ALL = 1 shl 0;
  20. MWM_FUNC_RESIZE = 1 shl 1;
  21. MWM_FUNC_MOVE = 1 shl 2;
  22. MWM_FUNC_MINIMIZE = 1 shl 3;
  23. MWM_FUNC_MAXIMIZE = 1 shl 4;
  24. MWM_FUNC_CLOSE = 1 shl 5;
  25. MWM_DECOR_ALL = 1 shl 0;
  26. MWM_DECOR_BORDER = 1 shl 1;
  27. MWM_DECOR_RESIZEH = 1 shl 2;
  28. MWM_DECOR_TITLE = 1 shl 3;
  29. MWM_DECOR_MENU = 1 shl 4;
  30. MWM_DECOR_MINIMIZE = 1 shl 5;
  31. MWM_DECOR_MAXIMIZE = 1 shl 6;
  32. MWM_INPUT_MODELESS = 0;
  33. MWM_INPUT_PRIMARY_APPLICATION_MODAL = 1;
  34. MWM_INPUT_SYSTEM_MODAL = 2;
  35. MWM_INPUT_FULL_APPLICATION_MODAL = 3;
  36. MWM_INPUT_APPLICATION_MODAL = MWM_INPUT_PRIMARY_APPLICATION_MODAL;
  37. MWM_TEAROFF_WINDOW = 1 shl 0;
  38. { atoms}
  39. _XA_MOTIF_BINDINGS = '_MOTIF_BINDINGS';
  40. _XA_MOTIF_WM_HINTS = '_MOTIF_WM_HINTS';
  41. _XA_MOTIF_WM_MESSAGES = '_MOTIF_WM_MESSAGES';
  42. _XA_MOTIF_WM_OFFSET = '_MOTIF_WM_OFFSET';
  43. _XA_MOTIF_WM_MENU = '_MOTIF_WM_MENU';
  44. _XA_MOTIF_WM_INFO = '_MOTIF_WM_INFO';
  45. _XA_MWM_HINTS = _XA_MOTIF_WM_HINTS;
  46. _XA_MWM_MESSAGES = _XA_MOTIF_WM_MESSAGES;
  47. _XA_MWM_MENU = _XA_MOTIF_WM_MENU;
  48. _XA_MWM_INFO = _XA_MOTIF_WM_INFO;
  49. { _MWM_INFO property }
  50. type
  51. PMotifWmInfo = ^TMotifWmInfo;
  52. TMotifWmInfo = record
  53. flags : longint;
  54. wm_window : TWindow;
  55. end;
  56. PMwmInfo = ^TMwmInfo;
  57. TMwmInfo = TMotifWmInfo;
  58. const
  59. MWM_INFO_STARTUP_STANDARD = 1 shl 0;
  60. MWM_INFO_STARTUP_CUSTOM = 1 shl 1;
  61. { _MWM_HINTS property }
  62. type
  63. PPropMotifWmHints = ^TPropMotifWmHints;
  64. TPropMotifWmHints = record
  65. flags : dword;
  66. functions : dword;
  67. decorations : dword;
  68. inputMode : longint;
  69. status : dword;
  70. end;
  71. PPropMwmHints = ^TPropMwmHints;
  72. TPropMwmHints = TPropMotifWmHints;
  73. const
  74. PROP_MOTIF_WM_HINTS_ELEMENTS = 5;
  75. PROP_MWM_HINTS_ELEMENTS = PROP_MOTIF_WM_HINTS_ELEMENTS;
  76. { _MWM_INFO property, slight return }
  77. type
  78. PPropMotifWmInfo = ^TPropMotifWmInfo;
  79. TPropMotifWmInfo = record
  80. flags : dword;
  81. wmWindow : dword;
  82. end;
  83. PPropMwmInfo = ^TPropMwmInfo;
  84. TPropMwmInfo = TPropMotifWmInfo;
  85. const
  86. PROP_MOTIF_WM_INFO_ELEMENTS = 2;
  87. PROP_MWM_INFO_ELEMENTS = PROP_MOTIF_WM_INFO_ELEMENTS;
  88. {$ENDIF read_interface_rest}
  89. //------------------------------------------------------------------------------
  90. {$IFDEF read_implementation}
  91. {$ENDIF read_implementation}