Enums.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Permission is hereby granted, free of charge, to any person obtaining
  2. // a copy of this software and associated documentation files (the
  3. // "Software",, to deal in the Software without restriction, including
  4. // without limitation the rights to use, copy, modify, merge, publish,
  5. // distribute, sublicense, and/or sell copies of the Software, and to
  6. // permit persons to whom the Software is furnished to do so, subject to
  7. // the following conditions:
  8. //
  9. // The above copyright notice and this permission notice shall be
  10. // included in all copies or substantial portions of the Software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  15. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  16. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  17. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  18. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. //
  20. // Copyright (c) 2007 Novell, Inc.
  21. //
  22. // Authors:
  23. // Geoff Norton <[email protected]>
  24. //
  25. using System;
  26. namespace System.Windows.Forms.CarbonInternal {
  27. internal enum WindowClass : uint {
  28. kAlertWindowClass = 1,
  29. kMovableAlertWindowClass = 2,
  30. kModalWindowClass = 3,
  31. kMovableModalWindowClass = 4,
  32. kFloatingWindowClass = 5,
  33. kDocumentWindowClass = 6,
  34. kUtilityWindowClass = 8,
  35. kHelpWindowClass = 10,
  36. kSheetWindowClass = 11,
  37. kToolbarWindowClass = 12,
  38. kPlainWindowClass = 13,
  39. kOverlayWindowClass = 14,
  40. kSheetAlertWindowClass = 15,
  41. kAltPlainWindowClass = 16,
  42. kDrawerWindowClass = 20,
  43. kAllWindowClasses = 0xFFFFFFFF
  44. }
  45. internal enum WindowAttributes : uint {
  46. kWindowNoAttributes = 0,
  47. kWindowCloseBoxAttribute = (1u << 0),
  48. kWindowHorizontalZoomAttribute = (1u << 1),
  49. kWindowVerticalZoomAttribute = (1u << 2),
  50. kWindowFullZoomAttribute = (kWindowVerticalZoomAttribute | kWindowHorizontalZoomAttribute),
  51. kWindowCollapseBoxAttribute = (1u << 3),
  52. kWindowResizableAttribute = (1u << 4),
  53. kWindowSideTitlebarAttribute = (1u << 5),
  54. kWindowToolbarButtonAttribute = (1u << 6),
  55. kWindowMetalAttribute = (1u << 8),
  56. kWindowNoUpdatesAttribute = (1u << 16),
  57. kWindowNoActivatesAttribute = (1u << 17),
  58. kWindowOpaqueForEventsAttribute = (1u << 18),
  59. kWindowCompositingAttribute = (1u << 19),
  60. kWindowNoShadowAttribute = (1u << 21),
  61. kWindowHideOnSuspendAttribute = (1u << 24),
  62. kWindowStandardHandlerAttribute = (1u << 25),
  63. kWindowHideOnFullScreenAttribute = (1u << 26),
  64. kWindowInWindowMenuAttribute = (1u << 27),
  65. kWindowLiveResizeAttribute = (1u << 28),
  66. kWindowIgnoreClicksAttribute = (1u << 29),
  67. kWindowNoConstrainAttribute = (1u << 31),
  68. kWindowStandardDocumentAttributes = (kWindowCloseBoxAttribute | kWindowFullZoomAttribute | kWindowCollapseBoxAttribute | kWindowResizableAttribute),
  69. kWindowStandardFloatingAttributes = (kWindowCloseBoxAttribute | kWindowCollapseBoxAttribute)
  70. }
  71. internal enum ThemeCursor : uint {
  72. kThemeArrowCursor = 0,
  73. kThemeCopyArrowCursor = 1,
  74. kThemeAliasArrowCursor = 2,
  75. kThemeContextualMenuArrowCursor = 3,
  76. kThemeIBeamCursor = 4,
  77. kThemeCrossCursor = 5,
  78. kThemePlusCursor = 6,
  79. kThemeWatchCursor = 7,
  80. kThemeClosedHandCursor = 8,
  81. kThemeOpenHandCursor = 9,
  82. kThemePointingHandCursor = 10,
  83. kThemeCountingUpHandCursor = 11,
  84. kThemeCountingDownHandCursor = 12,
  85. kThemeCountingUpAndDownHandCursor = 13,
  86. kThemeSpinningCursor = 14,
  87. kThemeResizeLeftCursor = 15,
  88. kThemeResizeRightCursor = 16,
  89. kThemeResizeLeftRightCursor = 17,
  90. kThemeNotAllowedCursor = 18
  91. }
  92. internal enum MouseTrackingResult : ushort {
  93. kMouseTrackingMouseDown = 1,
  94. kMouseTrackingMouseUp = 2,
  95. kMouseTrackingMouseExited = 3,
  96. kMouseTrackingMouseEntered = 4,
  97. kMouseTrackingMouseDragged = 5,
  98. kMouseTrackingKeyModifiersChanged = 6,
  99. kMouseTrackingUserCancelled = 7,
  100. kMouseTrackingTimedOut = 8,
  101. kMouseTrackingMouseMoved = 9
  102. }
  103. }