src/gui/kernel/qnstitledframe_mac_p.h
changeset 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
       
     6 **
       
     7 ** This file is part of the QtGui module of the Qt Toolkit.
       
     8 **
       
     9 ** $QT_BEGIN_LICENSE:LGPL$
       
    10 ** No Commercial Usage
       
    11 ** This file contains pre-release code and may not be distributed.
       
    12 ** You may use this file in accordance with the terms and conditions
       
    13 ** contained in the Technology Preview License Agreement accompanying
       
    14 ** this package.
       
    15 **
       
    16 ** GNU Lesser General Public License Usage
       
    17 ** Alternatively, this file may be used under the terms of the GNU Lesser
       
    18 ** General Public License version 2.1 as published by the Free Software
       
    19 ** Foundation and appearing in the file LICENSE.LGPL included in the
       
    20 ** packaging of this file.  Please review the following information to
       
    21 ** ensure the GNU Lesser General Public License version 2.1 requirements
       
    22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    23 **
       
    24 ** In addition, as a special exception, Nokia gives you certain additional
       
    25 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    27 **
       
    28 ** If you have questions regarding the use of this file, please contact
       
    29 ** Nokia at qt-info@nokia.com.
       
    30 **
       
    31 **
       
    32 **
       
    33 **
       
    34 **
       
    35 **
       
    36 **
       
    37 **
       
    38 ** $QT_END_LICENSE$
       
    39 **
       
    40 ****************************************************************************/
       
    41 
       
    42 //
       
    43 //  W A R N I N G
       
    44 //  -------------
       
    45 //
       
    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.
       
    50 //
       
    51 // We mean it.
       
    52 //
       
    53 
       
    54 // Private AppKit class (dumped from classdump).
       
    55 
       
    56 #import <Cocoa/Cocoa.h>
       
    57 #import "qnsframeview_mac_p.h"
       
    58 
       
    59 
       
    60 @interface NSTitledFrame : NSFrameView
       
    61 {
       
    62     int resizeFlags;
       
    63     id fileButton;      /* NSDocumentDragButton* */
       
    64     NSSize titleCellSize;
       
    65 }
       
    66 
       
    67 + (float)_windowBorderThickness:(unsigned int)fp8;
       
    68 + (float)_minXWindowBorderWidth:(unsigned int)fp8;
       
    69 + (float)_maxXWindowBorderWidth:(unsigned int)fp8;
       
    70 + (float)_minYWindowBorderHeight:(unsigned int)fp8;
       
    71 + (char)_resizeFromEdge;
       
    72 + (NSRect)frameRectForContentRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
       
    73 + (NSRect)contentRectForFrameRect:(NSRect)fp8 styleMask:(unsigned int)fp24;
       
    74 + (struct _NSSize)minFrameSizeForMinContentSize:(struct _NSSize)fp8 styleMask:(unsigned int)fp16;
       
    75 + (struct _NSSize)minContentSizeForMinFrameSize:(struct _NSSize)fp8 styleMask:(unsigned int)fp16;
       
    76 + (float)minFrameWidthWithTitle:fp8 styleMask:(unsigned int)fp12;
       
    77 + (struct _NSSize)_titleCellSizeForTitle:fp8 styleMask:(unsigned int)fp12;
       
    78 + (float)_titleCellHeight:(unsigned int)fp8;
       
    79 + (float)_windowTitlebarTitleMinHeight:(unsigned int)fp8;
       
    80 + (float)_titlebarHeight:(unsigned int)fp8;
       
    81 + (struct _NSSize)sizeOfTitlebarButtons:(unsigned int)fp8;
       
    82 + (float)windowTitlebarLinesSpacingWidth:(unsigned int)fp8;
       
    83 + (float)windowTitlebarTitleLinesSpacingWidth:(unsigned int)fp8;
       
    84 + (float)_contentToFrameMinXWidth:(unsigned int)fp8;
       
    85 + (float)_contentToFrameMaxXWidth:(unsigned int)fp8;
       
    86 + (float)_contentToFrameMinYHeight:(unsigned int)fp8;
       
    87 + (float)_contentToFrameMaxYHeight:(unsigned int)fp8;
       
    88 - initWithFrame:(NSRect)fp8 styleMask:(unsigned int)fp24 owner:fp28;
       
    89 - (void)dealloc;
       
    90 - (void)setIsClosable:(char)fp8;
       
    91 - (void)setIsResizable:(char)fp8;
       
    92 - (void)_resetTitleFont;
       
    93 - (void)_setUtilityWindow:(char)fp8;
       
    94 - (char)isOpaque;
       
    95 - (char)worksWhenModal;
       
    96 - (void)propagateFrameDirtyRects:(NSRect)fp8;
       
    97 - (void)_showDrawRect:(NSRect)fp8;
       
    98 - (void)_drawFrameInterior:(NSRect *)fp8 clip:(NSRect)fp12;
       
    99 - (void)drawFrame:(NSRect)fp8;
       
   100 - (void)_drawFrameRects:(NSRect)fp8;
       
   101 - (void)_drawTitlebar:(NSRect)fp8;
       
   102 - (void)_drawTitlebarPattern:(int)fp8 inRect:(NSRect)fp12 clippedByRect:(NSRect)fp28 forKey:(char)fp44 alignment:(int)fp48;
       
   103 - (void)_drawTitlebarLines:(int)fp8 inRect:(NSRect)fp12 clippedByRect:(NSRect)fp28;
       
   104 - frameHighlightColor;
       
   105 - frameShadowColor;
       
   106 - (void)setFrameSize:(struct _NSSize)fp8;
       
   107 - (void)setFrameOrigin:(struct _NSPoint)fp8;
       
   108 - (void)tileAndSetWindowShape:(char)fp8;
       
   109 - (void)tile;
       
   110 - (void)_tileTitlebar;
       
   111 - (void)setTitle:fp8;
       
   112 - (char)_shouldRepresentFilename;
       
   113 - (void)setRepresentedFilename:fp8;
       
   114 - (void)_drawTitleStringIn:(NSRect)fp8 withColor:fp24;
       
   115 - titleFont;
       
   116 - (void)_drawResizeIndicators:(NSRect)fp8;
       
   117 - titleButtonOfClass:(Class)fp8;
       
   118 - initTitleButton:fp8;
       
   119 - newCloseButton;
       
   120 - newZoomButton;
       
   121 - newMiniaturizeButton;
       
   122 - newFileButton;
       
   123 - fileButton;
       
   124 - (void)_removeButtons;
       
   125 - (void)_updateButtons;
       
   126 - (char)_eventInTitlebar:fp8;
       
   127 - (char)acceptsFirstMouse:fp8;
       
   128 - (void)mouseDown:fp8;
       
   129 - (void)mouseUp:fp8;
       
   130 - (void)rightMouseDown:fp8;
       
   131 - (void)rightMouseUp:fp8;
       
   132 - (int)resizeEdgeForEvent:fp8;
       
   133 - (struct _NSSize)_resizeDeltaFromPoint:(struct _NSPoint)fp8 toEvent:fp16;
       
   134 - (NSRect)_validFrameForResizeFrame:(NSRect)fp8 fromResizeEdge:(int)fp24;
       
   135 - (NSRect)frame:(NSRect)fp8 resizedFromEdge:(int)fp24 withDelta:(struct _NSSize)fp28;
       
   136 - (char)constrainResizeEdge:(int *)fp8 withDelta:(struct _NSSize)fp12 elapsedTime:(float)fp20;
       
   137 - (void)resizeWithEvent:fp8;
       
   138 - (int)resizeFlags;
       
   139 - (void)resetCursorRects;
       
   140 - (void)setDocumentEdited:(char)fp8;
       
   141 - (struct _NSSize)miniaturizedSize;
       
   142 - (struct _NSSize)minFrameSize;
       
   143 - (float)_windowBorderThickness;
       
   144 - (float)_windowTitlebarXResizeBorderThickness;
       
   145 - (float)_windowTitlebarYResizeBorderThickness;
       
   146 - (float)_windowResizeBorderThickness;
       
   147 - (float)_minXWindowBorderWidth;
       
   148 - (float)_maxXWindowBorderWidth;
       
   149 - (float)_minYWindowBorderHeight;
       
   150 - (void)_invalidateTitleCellSize;
       
   151 - (void)_invalidateTitleCellWidth;
       
   152 - (float)_titleCellHeight;
       
   153 - (struct _NSSize)_titleCellSize;
       
   154 - (float)_titlebarHeight;
       
   155 - (NSRect)titlebarRect;
       
   156 - (NSRect)_maxTitlebarTitleRect;
       
   157 - (NSRect)_titlebarTitleRect;
       
   158 - (float)_windowTitlebarTitleMinHeight;
       
   159 - (NSRect)dragRectForFrameRect:(NSRect)fp8;
       
   160 - (struct _NSSize)sizeOfTitlebarButtons;
       
   161 - (struct _NSSize)_sizeOfTitlebarFileButton;
       
   162 - (float)_windowTitlebarButtonSpacingWidth;
       
   163 - (float)_minXTitlebarButtonsWidth;
       
   164 - (float)_maxXTitlebarButtonsWidth;
       
   165 - (int)_numberOfTitlebarLines;
       
   166 - (float)windowTitlebarLinesSpacingWidth;
       
   167 - (float)windowTitlebarTitleLinesSpacingWidth;
       
   168 - (float)_minLinesWidthWithSpace;
       
   169 - (NSRect)_minXTitlebarLinesRectWithTitleCellRect:(NSRect)fp8;
       
   170 - (NSRect)_maxXTitlebarLinesRectWithTitleCellRect:(NSRect)fp8;
       
   171 - (float)_minXTitlebarDecorationMinWidth;
       
   172 - (float)_maxXTitlebarDecorationMinWidth;
       
   173 - (struct _NSPoint)_closeButtonOrigin;
       
   174 - (struct _NSPoint)_zoomButtonOrigin;
       
   175 - (struct _NSPoint)_collapseButtonOrigin;
       
   176 - (struct _NSPoint)_fileButtonOrigin;
       
   177 - (float)_maxYTitlebarDragHeight;
       
   178 - (float)_minXTitlebarDragWidth;
       
   179 - (float)_maxXTitlebarDragWidth;
       
   180 - (float)_contentToFrameMinXWidth;
       
   181 - (float)_contentToFrameMaxXWidth;
       
   182 - (float)_contentToFrameMinYHeight;
       
   183 - (float)_contentToFrameMaxYHeight;
       
   184 - (NSRect)contentRect;
       
   185 - (float)_windowResizeCornerThickness;
       
   186 - (NSRect)_minYResizeRect;
       
   187 - (NSRect)_minYminXResizeRect;
       
   188 - (NSRect)_minYmaxXResizeRect;
       
   189 - (NSRect)_minXResizeRect;
       
   190 - (NSRect)_minXminYResizeRect;
       
   191 - (NSRect)_minXmaxYResizeRect;
       
   192 - (NSRect)_maxYResizeRect;
       
   193 - (NSRect)_maxYminXResizeRect;
       
   194 - (NSRect)_maxYmaxXResizeRect;
       
   195 - (NSRect)_maxXResizeRect;
       
   196 - (NSRect)_maxXminYResizeRect;
       
   197 - (NSRect)_maxXmaxYResizeRect;
       
   198 - (NSRect)_minXTitlebarResizeRect;
       
   199 - (NSRect)_maxXTitlebarResizeRect;
       
   200 - (NSRect)_minXBorderRect;
       
   201 - (NSRect)_maxXBorderRect;
       
   202 - (NSRect)_maxYBorderRect;
       
   203 - (NSRect)_minYBorderRect;
       
   204 
       
   205 @end