qstyle.3qt

来自「tmark1.11:用于生成QT/EMBEDDED应用工程的Markfile文件」· 3QT 代码 · 共 415 行 · 第 1/2 页

3QT
415
字号
Reimplemented in QPlatinumStyle..SH "QRect QStyle::comboButtonFocusRect ( int x, int y, int w, int h ) \fC[virtual]\fR"Returns the rectangle used to draw the the focus rectangle in a combo box..PPReimplemented in QPlatinumStyle, QCommonStyle and QWindowsStyle..SH "QRect QStyle::comboButtonRect ( int x, int y, int w, int h ) \fC[virtual]\fR"Returns the rectangle available for contents in a combo box button. Usually this is the entire rectangle without the nifty menu indicator, but it may also be smaller when you think about rounded buttons..PPReimplemented in QWindowsStyle, QCommonStyle and QPlatinumStyle..SH "int QStyle::defaultFrameWidth () const \fC[virtual]\fR"The default frame width, usually 2..PPReimplemented in QCommonStyle and QCDEStyle..SH "void QStyle::drawArrow ( QPainter * p, Qt::ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a button indicating direction..SH "void QStyle::drawBevelButton ( QPainter *, int, int, int, int, const QColorGroup &, bool = FALSE, const QBrush * = 0 ) \fC[virtual]\fR"Draws a press-sensitive shape in the style of a bevel button..PPReimplemented in QMotifStyle, QWindowsStyle and QPlatinumStyle..SH "void QStyle::drawButton ( QPainter *, int, int, int, int, const QColorGroup &, bool = FALSE, const QBrush * = 0 ) \fC[virtual]\fR"Draws a press-sensitive shape in the style of a full featured push button..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "void QStyle::drawButtonMask ( QPainter *, int, int, int, int ) \fC[virtual]\fR"Draw the mask of a pushbutton. Useful if a rounded pushbuttons needs to be transparent because the style uses a fancy background pixmap..SH "void QStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, bool editable = FALSE, bool enabled = TRUE, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a press-sensitive shape in the style of a combo box or menu button..PPReimplemented in QPlatinumStyle, QWindowsStyle and QCommonStyle..SH "void QStyle::drawComboButtonMask ( QPainter * p, int x, int y, int w, int h ) \fC[virtual]\fR"Draw the mask of a combo box button. Useful if a rounded buttons needs to be transparent because the style uses a fancy background pixmap..PPReimplemented in QCommonStyle..SH "void QStyle::drawExclusiveIndicator ( QPainter *, int x, int y, int w, int h, const QColorGroup &, bool on, bool down = FALSE, bool enabled = TRUE ) \fC[virtual]\fR"Draws a mark indicating the state of an exclusive choice..PPReimplemented in QWindowsStyle, QMotifStyle, QPlatinumStyle and QCDEStyle..SH "void QStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool ) \fC[virtual]\fR"Draws the mask of a mark indicating the state of an exclusive choice..PPReimplemented in QMotifStyle and QWindowsStyle..SH "void QStyle::drawFocusRect ( QPainter * p, const QRect & r, const QColorGroup & g, const QColor * = 0, bool atBorder = FALSE ) \fC[virtual]\fR"Draws a mark indicating keyboard focus is on \fIr. atBorder\fR indicates whether the focus rectangle is at the border of an item (for example an item in a listbox). Certain styles (Motif style as the most prominent example) might have to shrink the rectangle a bit in that case to ensure that the focus rectangle is visible at all..PPReimplemented in QWindowsStyle and QMotifStyle..SH "void QStyle::drawIndicator ( QPainter *, int, int, int, int, const QColorGroup &, int state, bool = FALSE, bool = TRUE ) \fC[virtual]\fR"Draws a mark indicating the state of a choice..PPReimplemented in QCDEStyle, QMotifStyle, QPlatinumStyle and QWindowsStyle..SH "void QStyle::drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int ) \fC[virtual]\fR"Draws the mask of a mark indicating the state of a choice..PPReimplemented in QPlatinumStyle..SH "void QStyle::drawItem ( QPainter * p, int x, int y, int w, int h, int flags, const QColorGroup & g, bool enabled, const QPixmap * pixmap, const QString & text, int len=-1, const QColor * penColor = 0 ) \fC[virtual]\fR"Draw text or a pixmap in an area..SH "void QStyle::drawPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken=FALSE, int lineWidth = 1, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a panel to separate parts of the visual interface..PPReimplemented in QWindowsStyle..SH "void QStyle::drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & cg, int lineWidth = 2, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a panel suitable as frame for popup windows..PPReimplemented in QWindowsStyle and QPlatinumStyle..SH "void QStyle::drawPushButton ( QPushButton *, QPainter * ) \fC[virtual]\fR"Draws a pushbutton. This function will normally call drawButton() with arguments according to the current state of the pushbutton..PPSee also: drawPushButtonLabel() and QPushButton::drawButton()..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "void QStyle::drawPushButtonLabel ( QPushButton *, QPainter * ) \fC[virtual]\fR"Draws the label of a pushbutton. This function will normally call drawItem() with arguments according to the current state of the pushbutton..PPSee also: drawPushButton() and QPushButton::drawButtonLabel()..PPReimplemented in QCommonStyle and QPlatinumStyle..SH "void QStyle::drawRect ( QPainter * p, int x, int y, int w, int h, const QColor & c, int lineWidth = 1, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a simple rectangle to separate parts of the visual interface..SH "void QStyle::drawRectStrong ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken=FALSE, int lineWidth = 1, int midLineWidth = 0, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws an emphasized rectangle to strongly separate parts of the visual interface..SH "void QStyle::drawScrollBarControls ( QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl ) \fC[virtual]\fR"Draws the given scrollbar. Used internally by QScrollbar..PPThe controls are either ADD_LINE, SUB_LINE, ADD_PAGE, SUB_PAGE, FIRST, LAST, SLIDER or NONE.PPControls is a combination of these, activeControl is the control currently pressed down..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "void QStyle::drawSeparator ( QPainter * p, int x1, int y1, int x2, int y2, const QColorGroup & g, bool sunken = TRUE, int lineWidth = 1, int midLineWidth = 0 ) \fC[virtual]\fR"Draws a line to separate parts of the visual interface..SH "void QStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation, bool tickAbove, bool tickBelow ) \fC[virtual]\fR"Draws a slider..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "void QStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation ) \fC[virtual]\fR"Draws a slider groove..PPReimplemented in QWindowsStyle, QPlatinumStyle and QMotifStyle..SH "void QStyle::drawSliderGrooveMask ( QPainter * p, int x, int y, int w, int h, QCOORD c, Orientation ) \fC[virtual]\fR"Draws the mask of a slider groove..PPReimplemented in QCommonStyle..SH "void QStyle::drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation, bool, bool ) \fC[virtual]\fR"Draws the mask of a slider..PPReimplemented in QWindowsStyle and QCommonStyle..SH "void QStyle::drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient ) \fC[virtual]\fR"Draws a splitter handle in the rectangle described by \fIx, y, w, h\fR using painter \fIp\fR and color group \fIg.\fR The orientation is \fIorient.\fR.PPSee also: splitterWidth()..PPReimplemented in QMotifStyle and QWindowsStyle..SH "void QStyle::drawTab ( QPainter * p, const QTabBar * tb, QTab * t, bool selected ) \fC[virtual]\fR"TODO..PPReimplemented in QMotifStyle, QWindowsStyle and QCommonStyle..SH "void QStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected ) \fC[virtual]\fR"TODO..PPReimplemented in QWindowsStyle, QMotifStyle and QCommonStyle..SH "void QStyle::drawToolButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) \fC[virtual]\fR"Draws a press-sensitive shape in the style of a toolbar button.PPThe default implementation calls drawBevelButton().PPSee also: drawBevelButton()..SH "QSize QStyle::exclusiveIndicatorSize () const \fC[virtual]\fR"Returns the size of the mark used to indicate exclusive choice..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "int QStyle::extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & fm ) \fC[virtual]\fR"Returns the extra width of a menu item \fImi,\fR that means all extra pixels besides the space the menu item text requires. \fIcheckable\fR defines, whether the menu has a check column. \fImaxpmw\fR is the maximium width of all iconsets within a check column and \fIfm\fR defines the font metrics used to draw the label. This is particulary useful to calculate a suitable size for a submenu indicator or the column separation, including the tab column used to indicate item accelerators..PPReimplemented in QPlatinumStyle and QWindowsStyle..SH "void QStyle::getButtonShift ( int & x, int & y ) \fC[virtual]\fR"Some GUI styles shift the contents of a button when the button is down. The default implementation returns 0 for both x and y..PPReimplemented in QWindowsStyle and QCommonStyle..SH "GUIStyle QStyle::guiStyle () const"Returns an indicator to the additional "feel" component of a style. Current supported values are Windows and Motif..SH "QSize QStyle::indicatorSize () const \fC[virtual]\fR"Returns the size of the mark used to indicate choice..PPReimplemented in QPlatinumStyle, QWindowsStyle and QMotifStyle..SH "QRect QStyle::itemRect ( QPainter * p, int x, int y, int w, int h, int flags, bool enabled, const QPixmap * pixmap, const QString & text, int len=-1 ) \fC[virtual]\fR"Returns the appropriate area within a rectangle in which to draw text or a pixmap..SH "int QStyle::maximumSliderDragDistance () const \fC[virtual]\fR"Some feels require the scrollbar or other sliders to jump back to the original position when the mouse pointer is too far away while dragging..PPThis behavior can be customized with this function. The default is -1 (no jump back) while Windows requires 20 (weird jump back)..PPReimplemented in QPlatinumStyle, QCommonStyle and QWindowsStyle..SH "void QStyle::polish ( QApplication * ) \fC[virtual]\fR"Late initialization of the QApplication object..PPSee also: unPolish..PPReimplemented in QMotifStyle..SH "void QStyle::polish ( QPalette & ) \fC[virtual]\fR"The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements..PPSee also: unPolish, QPalette and QApplication::setPalette()..SH "void QStyle::polish ( QWidget * ) \fC[virtual]\fR"Initializes the appearance of a widget..PPThis function is called for every widget, after it has been fully created just \fIbefore\fR it is shown the very first time..PPReasonable actions in this function might be to set the of the widget and the background pixmap, for example. Unreasonable use would be setting the geometry!.PPThe QWidget::inherits() function may provide enough information to allow class-specific customizations. But be careful not to hard-code things too much, as new QStyle sub-classes will be expected to work reasonably with all current \fIand future\fR widgets..PPSee also: unPolish(QWidget*)..SH "void QStyle::scrollBarMetrics ( const QScrollBar *, int &, int &, int &, int & ) \fC[virtual]\fR"Returns the metrics of the passed scrollbar: sliderMin, sliderMax, sliderLength and buttonDim..PPReimplemented in QPlatinumStyle, QWindowsStyle and QMotifStyle..SH "int QStyle::sliderLength () const \fC[virtual]\fR"The length of a slider..PPReimplemented in QPlatinumStyle, QMotifStyle and QWindowsStyle..SH "int QStyle::splitterWidth () const \fC[virtual]\fR"Returns the width of a splitter handle..PPSee also: drawSplitter()..PPReimplemented in QMotifStyle and QWindowsStyle..SH "void QStyle::tabbarMetrics ( const QTabBar * t, int & hframe, int & vframe, int & overlap ) \fC[virtual]\fR"TODO..PPReimplemented in QMotifStyle, QWindowsStyle and QCommonStyle..SH "void QStyle::unPolish ( QApplication * ) \fC[virtual]\fR"Redo the application polish.PPSee also: polish..SH "void QStyle::unPolish ( QWidget * ) \fC[virtual]\fR"Undos the initializataion of a widget's appearance.PPThis function is the counterpart to polish. Is is called for every polished widget when the style is dynamically changed. The former style has to un-polish its settings before the new style can polish them again..PPSee also:  polish(QWidget*)..SH "SEE ALSO".BR http://www.troll.no/qt/qstyle.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS.  See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?