1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the QtGui module of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
22 ** GNU General Public License Usage
23 ** Alternatively, this file may be used under the terms of the GNU General
24 ** Public License version 3.0 as published by the Free Software Foundation
25 ** and appearing in the file LICENSE.GPL included in the packaging of this
26 ** file. Please review the following information to ensure the GNU General
27 ** Public License version 3.0 requirements will be met:
28 ** http://www.gnu.org/copyleft/gpl.html.
31 ** Alternatively, this file may be used in accordance with the terms and
32 ** conditions contained in a signed written agreement between you and Nokia.
40 ****************************************************************************/
46 // This file is not part of the Qt API. It exists for the convenience
47 // of qapplication_*.cpp, qwidget*.cpp, qcolor_x11.cpp, qfiledialog.cpp
48 // and many other. This header file may change from version to version
49 // without notice, or even be removed.
54 // Private AppKit class (dumped from classdump).
56 #import <Cocoa/Cocoa.h>
57 #import "qnstitledframe_mac_p.h"
59 @interface NSThemeFrame : NSTitledFrame
61 NSButton *toolbarButton;
62 int toolbarVisibleStatus;
63 NSImage *showToolbarTransitionImage;
64 NSSize showToolbarPreWindowSize;
66 int leftGroupTrackingTagNum;
67 int rightGroupTrackingTagNum;
68 char mouseInsideLeftGroup;
69 char mouseInsideRightGroup;
71 NSString *displayName;
75 + (float)_windowBorderThickness:(unsigned int)fp8;
76 + (float)_minXWindowBorderWidth:(unsigned int)fp8;
77 + (float)_maxXWindowBorderWidth:(unsigned int)fp8;
78 + (float)_minYWindowBorderHeight:(unsigned int)fp8;
79 + (float)_windowTitlebarButtonSpacingWidth:(unsigned int)fp8;
80 + (float)_windowFileButtonSpacingWidth:(unsigned int)fp8;
81 + (float)_minXTitlebarWidgetInset:(unsigned int)fp8;
82 + (float)_maxXTitlebarWidgetInset:(unsigned int)fp8;
83 + (float)minFrameWidthWithTitle:fp8 styleMask:(unsigned int)fp12;
84 + (float)_windowSideTitlebarTitleMinWidth:(unsigned int)fp8;
85 + (float)_windowTitlebarTitleMinHeight:(unsigned int)fp8;
86 + (float)_sideTitlebarWidth:(unsigned int)fp8;
87 + (float)_titlebarHeight:(unsigned int)fp8;
88 + (float)_resizeHeight:(unsigned int)fp8;
89 + (char)_resizeFromEdge;
90 + (struct _NSSize)sizeOfTitlebarButtons:(unsigned int)fp8;
91 + (float)_contentToFrameMinXWidth:(unsigned int)fp8;
92 + (float)_contentToFrameMaxXWidth:(unsigned int)fp8;
93 + (float)_contentToFrameMinYHeight:(unsigned int)fp8;
94 + (float)_contentToFrameMaxYHeight:(unsigned int)fp8;
95 + (unsigned int)_validateStyleMask:(unsigned int)fp8;
96 - (struct _NSSize)_topCornerSize;
97 - (struct _NSSize)_bottomCornerSize;
98 - (void *)_createWindowOpaqueShape;
100 - (void)_recursiveDisplayRectIfNeededIgnoringOpacity:(NSRect)fp8 isVisibleRect:(char)fp24 rectIsVisibleRectForView:fp28 topView:(char)fp32;
101 - (void *)_regionForOpaqueDescendants:(NSRect)fp8 forMove:(char)fp24;
102 - (void)_drawFrameInterior:(NSRect *)fp8 clip:(NSRect)fp12;
103 - (void)_setTextShadow:(char)fp8;
104 - (void)_drawTitleBar:(NSRect)fp8;
105 - (void)_drawResizeIndicators:(NSRect)fp8;
106 - (void)_drawFrameRects:(NSRect)fp8;
107 - (void)drawFrame:(NSRect)fp8;
109 - (void)viewDidEndLiveResize;
110 - (float)contentAlpha;
111 - (void)setThemeFrameWidgetState:(int)fp8;
112 - (char)constrainResizeEdge:(int *)fp8 withDelta:(struct _NSSize)fp12 elapsedTime:(float)fp20;
113 - (void)addFileButton:fp8;
114 - (void)_updateButtons;
115 - (void)_updateButtonState;
118 - newMiniaturizeButton;
121 - (void)_resetTitleBarButtons;
122 - (void)setDocumentEdited:(char)fp8;
125 - initWithFrame:(NSRect)fp8 styleMask:(unsigned int)fp24 owner:fp28;
127 - (void)setFrameSize:(struct _NSSize)fp8;
128 - (char)_canHaveToolbar;
129 - (char)_toolbarIsInTransition;
130 - (char)_toolbarIsShown;
131 - (char)_toolbarIsHidden;
134 - (float)_distanceFromToolbarBaseToTitlebar;
135 - (unsigned int)_shadowFlags;
136 - (NSRect)frameRectForContentRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
137 - (NSRect)contentRectForFrameRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
138 - (struct _NSSize)minFrameSizeForMinContentSize:(struct _NSSize)fp8 styleMask:(unsigned int)fp16;
139 - (NSRect)contentRect;
140 - (NSRect)_contentRectExcludingToolbar;
141 - (NSRect)_contentRectIncludingToolbarAtHome;
142 - (void)_setToolbarShowHideResizeWeightingOptimizationOn:(char)fp8;
143 - (char)_usingToolbarShowHideWeightingOptimization;
144 - (void)handleSetFrameCommonRedisplay;
145 - (void)_startLiveResizeAsTopLevel;
146 - (void)_endLiveResizeAsTopLevel;
147 - (void)_growContentReshapeContentAndToolbarView:(int)fp8 animate:(char)fp12;
148 - (char)_growWindowReshapeContentAndToolbarView:(int)fp8 animate:(char)fp12;
149 - (void)_reshapeContentAndToolbarView:(int)fp8 resizeWindow:(char)fp12 animate:(char)fp16;
150 - (void)_toolbarFrameSizeChanged:fp8 oldSize:(struct _NSSize)fp12;
151 - (void)_syncToolbarPosition;
152 - (void)_showHideToolbar:(int)fp8 resizeWindow:(char)fp12 animate:(char)fp16;
153 - (void)_showToolbarWithAnimation:(char)fp8;
154 - (void)_hideToolbarWithAnimation:(char)fp8;
155 - (void)_drawToolbarTransitionIfNecessary;
156 - (void)drawRect:(NSRect)fp8;
157 - (void)resetCursorRects;
158 - (char)shouldBeTreatedAsInkEvent:fp8;
159 - (char)_shouldBeTreatedAsInkEventInInactiveWindow:fp8;
160 //- hitTest:(struct _NSPoint)fp8; // collides with hittest in qcocoasharedwindowmethods_mac_p.h
161 - (NSRect)_leftGroupRect;
162 - (NSRect)_rightGroupRect;
163 - (void)_updateWidgets;
164 - (void)_updateMouseTracking;
165 - (void)mouseEntered:fp8;
166 - (void)mouseExited:fp8;
167 - (void)_setMouseEnteredGroup:(char)fp8 entered:(char)fp12;
168 - (char)_mouseInGroup:fp8;
169 - (struct _NSSize)miniaturizedSize;
170 - (float)_minXTitlebarDecorationMinWidth;
171 - (float)_maxXTitlebarDecorationMinWidth;
172 - (struct _NSSize)minFrameSize;
173 - (float)_windowBorderThickness;
174 - (float)_windowTitlebarXResizeBorderThickness;
175 - (float)_windowTitlebarYResizeBorderThickness;
176 - (float)_windowResizeBorderThickness;
177 - (float)_minXWindowBorderWidth;
178 - (float)_maxXWindowBorderWidth;
179 - (float)_minYWindowBorderHeight;
180 - (float)_maxYWindowBorderHeight;
181 - (float)_minYTitlebarButtonsOffset;
182 - (float)_minYTitlebarTitleOffset;
183 - (float)_sideTitlebarWidth;
184 - (float)_titlebarHeight;
185 - (NSRect)_titlebarTitleRect;
186 - (NSRect)titlebarRect;
187 - (float)_windowTitlebarTitleMinHeight;
188 - (struct _NSSize)_sizeOfTitlebarFileButton;
189 - (struct _NSSize)sizeOfTitlebarToolbarButton;
190 - (float)_windowTitlebarButtonSpacingWidth;
191 - (float)_windowFileButtonSpacingWidth;
192 - (float)_minXTitlebarWidgetInset;
193 - (float)_maxXTitlebarWidgetInset;
194 - (float)_minXTitlebarButtonsWidth;
195 - (float)_maxXTitlebarButtonsWidth;
196 - (struct _NSPoint)_closeButtonOrigin;
197 - (struct _NSPoint)_zoomButtonOrigin;
198 - (struct _NSPoint)_collapseButtonOrigin;
199 - (struct _NSPoint)_toolbarButtonOrigin;
200 - (struct _NSPoint)_fileButtonOrigin;
201 - (void)_tileTitlebar;
202 - (NSRect)_commandPopupRect;
203 - (void)_resetDragMargins;
204 - (float)_maxYTitlebarDragHeight;
205 - (float)_minXTitlebarDragWidth;
206 - (float)_maxXTitlebarDragWidth;
207 - (float)_contentToFrameMinXWidth;
208 - (float)_contentToFrameMaxXWidth;
209 - (float)_contentToFrameMinYHeight;
210 - (float)_contentToFrameMaxYHeight;
211 - (float)_windowResizeCornerThickness;
212 - (NSRect)_minYResizeRect;
213 - (NSRect)_minYminXResizeRect;
214 - (NSRect)_minYmaxXResizeRect;
215 - (NSRect)_minXResizeRect;
216 - (NSRect)_minXminYResizeRect;
217 - (NSRect)_minXmaxYResizeRect;
218 - (NSRect)_maxYResizeRect;
219 - (NSRect)_maxYminXResizeRect;
220 - (NSRect)_maxYmaxXResizeRect;
221 - (NSRect)_maxXResizeRect;
222 - (NSRect)_maxXminYResizeRect;
223 - (NSRect)_maxXmaxYResizeRect;
224 - (NSRect)_minXTitlebarResizeRect;
225 - (NSRect)_maxXTitlebarResizeRect;
226 - (NSRect)_minXBorderRect;
227 - (NSRect)_maxXBorderRect;
228 - (NSRect)_maxYBorderRect;
229 - (NSRect)_minYBorderRect;
230 - (void)_setUtilityWindow:(char)fp8;
232 - (float)_sheetHeightAdjustment;
233 - (void)_setSheet:(char)fp8;
235 - (char)_isResizable;
237 - (char)_isMiniaturizable;
239 - (NSRect)_growBoxRect;
240 - (void)_drawGrowBoxWithClip:(NSRect)fp8;
241 - (char)_inactiveButtonsNeedMask;
242 - (void)mouseDown:fp8;
244 - (void)_setDisplayName:fp8;