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:
9 // The above copyright notice and this permission notice shall be
10 // included in all copies or substantial portions of the Software.
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.
20 // Copyright (c) 2007 Novell, Inc.
23 // Geoff Norton <gnorton@customerdna.com>
28 namespace System
.Windows
.Forms
.CarbonInternal
{
29 internal enum WindowClass
: uint {
30 kAlertWindowClass
= 1,
31 kMovableAlertWindowClass
= 2,
32 kModalWindowClass
= 3,
33 kMovableModalWindowClass
= 4,
34 kFloatingWindowClass
= 5,
35 kDocumentWindowClass
= 6,
36 kUtilityWindowClass
= 8,
37 kHelpWindowClass
= 10,
38 kSheetWindowClass
= 11,
39 kToolbarWindowClass
= 12,
40 kPlainWindowClass
= 13,
41 kOverlayWindowClass
= 14,
42 kSheetAlertWindowClass
= 15,
43 kAltPlainWindowClass
= 16,
44 kDrawerWindowClass
= 20,
45 kAllWindowClasses
= 0xFFFFFFFF
48 internal enum WindowAttributes
: uint {
49 kWindowNoAttributes
= 0,
50 kWindowCloseBoxAttribute
= (1u << 0),
51 kWindowHorizontalZoomAttribute
= (1u << 1),
52 kWindowVerticalZoomAttribute
= (1u << 2),
53 kWindowFullZoomAttribute
= (kWindowVerticalZoomAttribute
| kWindowHorizontalZoomAttribute
),
54 kWindowCollapseBoxAttribute
= (1u << 3),
55 kWindowResizableAttribute
= (1u << 4),
56 kWindowSideTitlebarAttribute
= (1u << 5),
57 kWindowToolbarButtonAttribute
= (1u << 6),
58 kWindowMetalAttribute
= (1u << 8),
59 kWindowNoUpdatesAttribute
= (1u << 16),
60 kWindowNoActivatesAttribute
= (1u << 17),
61 kWindowOpaqueForEventsAttribute
= (1u << 18),
62 kWindowCompositingAttribute
= (1u << 19),
63 kWindowNoShadowAttribute
= (1u << 21),
64 kWindowHideOnSuspendAttribute
= (1u << 24),
65 kWindowStandardHandlerAttribute
= (1u << 25),
66 kWindowHideOnFullScreenAttribute
= (1u << 26),
67 kWindowInWindowMenuAttribute
= (1u << 27),
68 kWindowLiveResizeAttribute
= (1u << 28),
69 kWindowIgnoreClicksAttribute
= (1u << 29),
70 kWindowNoConstrainAttribute
= (1u << 31),
71 kWindowStandardDocumentAttributes
= (kWindowCloseBoxAttribute
| kWindowFullZoomAttribute
| kWindowCollapseBoxAttribute
| kWindowResizableAttribute
),
72 kWindowStandardFloatingAttributes
= (kWindowCloseBoxAttribute
| kWindowCollapseBoxAttribute
)
75 internal enum ThemeCursor
: uint {
76 kThemeArrowCursor
= 0,
77 kThemeCopyArrowCursor
= 1,
78 kThemeAliasArrowCursor
= 2,
79 kThemeContextualMenuArrowCursor
= 3,
80 kThemeIBeamCursor
= 4,
81 kThemeCrossCursor
= 5,
83 kThemeWatchCursor
= 7,
84 kThemeClosedHandCursor
= 8,
85 kThemeOpenHandCursor
= 9,
86 kThemePointingHandCursor
= 10,
87 kThemeCountingUpHandCursor
= 11,
88 kThemeCountingDownHandCursor
= 12,
89 kThemeCountingUpAndDownHandCursor
= 13,
90 kThemeSpinningCursor
= 14,
91 kThemeResizeLeftCursor
= 15,
92 kThemeResizeRightCursor
= 16,
93 kThemeResizeLeftRightCursor
= 17,
94 kThemeNotAllowedCursor
= 18
97 internal enum MouseTrackingResult
: ushort {
98 kMouseTrackingMouseDown
= 1,
99 kMouseTrackingMouseUp
= 2,
100 kMouseTrackingMouseExited
= 3,
101 kMouseTrackingMouseEntered
= 4,
102 kMouseTrackingMouseDragged
= 5,
103 kMouseTrackingKeyModifiersChanged
= 6,
104 kMouseTrackingUserCancelled
= 7,
105 kMouseTrackingTimedOut
= 8,
106 kMouseTrackingMouseMoved
= 9