From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/ntqstyle.html | 1220 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1220 insertions(+) create mode 100644 doc/html/ntqstyle.html (limited to 'doc/html/ntqstyle.html') diff --git a/doc/html/ntqstyle.html b/doc/html/ntqstyle.html new file mode 100644 index 000000000..54201adbe --- /dev/null +++ b/doc/html/ntqstyle.html @@ -0,0 +1,1220 @@ + + + + + +TQStyle Class + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQStyle Class Reference

+ +

The TQStyle class specifies the look and feel of a GUI. +More... +

#include <ntqstyle.h> +

Inherits TQObject. +

Inherited by TQCommonStyle. +

List of all member functions. +

Public Members

+ +

Static Public Members

+ +

Detailed Description

+ + +The TQStyle class specifies the look and feel of a GUI. + +

A large number of GUI elements are common to many widgets. The +TQStyle class allows the look of these elements to be modified +across all widgets that use the TQStyle functions. It also +provides two feel options: Motif and Windows. +

Although it is not possible to fully enumerate the look of +graphical elements and the feel of widgets in a GUI, TQStyle +provides a considerable amount of control and customisability. +

In TQt 1.x the look and feel option for widgets was specified by a +single value: the GUIStyle. Starting with TQt 2.0, this notion was +expanded to allow the look to be specified by virtual drawing +functions. +

Derived classes may reimplement some or all of the drawing +functions to modify the look of all widgets that use those +functions. +

Languages written from right to left (such as Arabic and Hebrew) +usually also mirror the whole layout of widgets. If you design a +style, you should take special care when drawing asymmetric +elements to make sure that they also look correct in a mirrored +layout. You can start your application with -reverse to check +the mirrored layout. Also notice, that for a reversed layout, the +light usually comes from top right instead of top left. +

The actual reverse layout is performed automatically when +possible. However, for the sake of flexibility, the translation +cannot be performed everywhere. The documentation for each +function in the TQStyle API states whether the function +expects/returns logical or screen coordinates. Using logical +coordinates (in ComplexControls, for example) provides great +flexibility in controlling the look of a widget. Use visualRect() +when necessary to translate logical coordinates into screen +coordinates for drawing. +

In TQt versions prior to 3.0, if you wanted a low level route into +changing the appearance of a widget, you would reimplement +polish(). With the new 3.0 style engine the recommended approach +is to reimplement the draw functions, for example drawItem(), +drawPrimitive(), drawControl(), drawControlMask(), +drawComplexControl() and drawComplexControlMask(). Each of these +functions is called with a range of parameters that provide +information that you can use to determine how to draw them, e.g. +style flags, rectangle, color group, etc. +

For information on changing elements of an existing style or +creating your own style see the Style + overview. +

Styles can also be created as plugins. +

See also Widget Appearance and Style. + +


Member Type Documentation

+

TQStyle::ComplexControl

+ +

This enum represents a ComplexControl. ComplexControls have +different behaviour depending upon where the user clicks on them +or which keys are pressed. +

See also SubControl and drawComplexControl(). + +

TQStyle::ContentsType

+ +

This enum represents a ContentsType. It is used to calculate sizes +for the contents of various widgets. +

See also sizeFromContents(). + +

TQStyle::ControlElement

+ +

This enum represents a ControlElement. A ControlElement is part of +a widget that performs some action or displays information to the +user. +

See also drawControl(). + +

TQStyle::PixelMetric

+ +

This enum represents a PixelMetric. A PixelMetric is a style +dependent size represented as a single pixel value. +

See also pixelMetric(). + +

TQStyle::PrimitiveElement

+ +

This enum represents the PrimitiveElements of a style. A +PrimitiveElement is a common GUI element, such as a checkbox +indicator or pushbutton bevel. +

See also drawPrimitive(). + +

TQStyle::StyleFlags

+ +

This enum represents flags for drawing PrimitiveElements. Not all +primitives use all of these flags. Note that these flags may mean +different things to different primitives. For an explanation of +the relationship between primitives and their flags, as well as +the different meanings of the flags, see the Style overview. +

See also drawPrimitive(). + +

TQStyle::StyleHint

+ +

This enum represents a StyleHint. A StyleHint is a general look +and/or feel hint. +

See also styleHint(). + +

TQStyle::StylePixmap

+ +

This enum represents a StylePixmap. A StylePixmap is a pixmap that +can follow some existing GUI style or guideline. +

See also stylePixmap(). + +

TQStyle::SubControl

+ +

This enum represents a SubControl within a ComplexControl. +

See also ComplexControl. + +

TQStyle::SubRect

+ +

This enum represents a sub-area of a widget. Style implementations +would use these areas to draw the different parts of a widget. +

See also subRect(). + +


Member Function Documentation

+

TQStyle::TQStyle () +

+Constructs a TQStyle. + +

TQStyle::~TQStyle () [virtual] +

+Destroys the style and frees all allocated resources. + +

int TQStyle::defaultFrameWidth () const +

+ +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

+

void TQStyle::drawComplexControl ( ComplexControl control, TQPainter * p, const TQWidget * widget, const TQRect & r, const TQColorGroup & cg, SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Draws the ComplexControl control using the painter p in the +area r. Colors are used from the color group cg. The sub +argument specifies which SubControls to draw. Multiple SubControls +can be OR'ed together. The subActive argument specifies which +SubControl is active. +

The rect r should be in logical coordinates. Reimplementations +of this function should use visualRect() to change the logical +coordinates into screen coordinates when using drawPrimitive() and +drawControl(). +

The how argument is used to control how the ComplexControl is +drawn. Multiple flags can OR'ed together. See the table below for +an explanation of which flags are used with the various +ComplexControls. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of control. The opt argument can be used to +pass extra information required when drawing the ComplexControl. +Note that opt may be the default value even for ComplexControls +that can make use of the extra options. See the table below for +the appropriate widget and opt usage: +

+
ComplexControl
& Widget Cast +
Style Flags +Notes +Options +Notes +
CC_SpinWidget(const TQSpinWidget *) +Style_Enabled Set if the spinwidget is enabled. + Unused. +   +
Style_HasFocus Set if the spinwidget has input focus. +
CC_ComboBox(const TQComboBox *) +Style_Enabled Set if the combobox is enabled. + Unused. +   +
Style_HasFocus Set if the combobox has input focus. +
CC_ScrollBar(const TQScrollBar *) +Style_Enabled Set if the scrollbar is enabled. + Unused. +   +
Style_HasFocus Set if the scrollbar has input focus. +
CC_Slider(const TQSlider *) +Style_Enabled Set if the slider is enabled. + Unused. +   +
Style_HasFocus Set if the slider has input focus. +
CC_ToolButton(const TQToolButton *) +Style_Enabled Set if the toolbutton is enabled. + TQStyleOption ( ArrowType t ) + + When the tool button only contains an arrow, t is the +arrow's type. +
Style_HasFocus Set if the toolbutton has input focus. +
Style_Down Set if the toolbutton is down (ie. mouse +button or space pressed). +
Style_On Set if the toolbutton is a toggle button +and is toggled on. +
Style_AutoRaise Set if the toolbutton has auto-raise enabled. +
Style_Raised Set if the button is not down, not on and doesn't +contain the mouse when auto-raise is enabled. +
CC_TitleBar(const TQWidget *) +Style_Enabled Set if the titlebar is enabled. +Unused. +  +
CC_ListView(const TQListView *) +Style_Enabled Set if the titlebar is enabled. +TQStyleOption ( TQListViewItem *item ) + +item is the item that needs branches drawn +
+

See also ComplexControl and SubControl. + +

void TQStyle::drawComplexControlMask ( ComplexControl control, TQPainter * p, const TQWidget * widget, const TQRect & r, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Draw a bitmask for the ComplexControl control using the painter +p in the area r. See drawComplexControl() for an explanation +of the use of the widget and opt arguments. +

The rect r should be in logical coordinates. Reimplementations +of this function should use visualRect() to change the logical +corrdinates into screen coordinates when using drawPrimitive() and +drawControl(). +

See also drawComplexControl() and ComplexControl. + +

void TQStyle::drawControl ( ControlElement element, TQPainter * p, const TQWidget * widget, const TQRect & r, const TQColorGroup & cg, SFlags how = Style_Default, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Draws the ControlElement element using the painter p in the +area r. Colors are used from the color group cg. +

The rect r should be in screen coordinates. +

The how argument is used to control how the ControlElement is +drawn. Multiple flags can be OR'ed together. See the table below +for an explanation of which flags are used with the various +ControlElements. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of element. The opt argument can be used to +pass extra information required when drawing the ControlElement. +Note that opt may be the default value even for ControlElements +that can make use of the extra options. See the table below for +the appropriate widget and opt usage: +

+
ControlElement
& Widget Cast +
Style Flags +Notes +Options +Notes +
CE_PushButton(const TQPushButton *) +

and +

CE_PushButtonLabel(const TQPushButton *) +

Style_Enabled Set if the button is enabled. + Unused. +   +
Style_HasFocus Set if the button has input focus. +
Style_Raised Set if the button is not down, not on and not flat. +
Style_On Set if the button is a toggle button and toggled on. +
Style_Down Set if the button is down (i.e., the mouse button or +space bar is pressed on the button). +
Style_ButtonDefault Set if the button is a default button. +
CE_CheckBox(const TQCheckBox *) +

and +

CE_CheckBoxLabel(const TQCheckBox *) +

Style_Enabled Set if the checkbox is enabled. + Unused. +   +
Style_HasFocus Set if the checkbox has input focus. +
Style_On Set if the checkbox is checked. +
Style_Off Set if the checkbox is not checked. +
Style_NoChange Set if the checkbox is in the NoChange state. +
Style_Down Set if the checkbox is down (i.e., the mouse button or +space bar is pressed on the button). +
CE_RadioButton(const TQRadioButton *) +

and +

CE_RadioButtonLabel(const TQRadioButton *) +

Style_Enabled Set if the radiobutton is enabled. + Unused. +   +
Style_HasFocus Set if the radiobutton has input focus. +
Style_On Set if the radiobutton is checked. +
Style_Off Set if the radiobutton is not checked. +
Style_Down Set if the radiobutton is down (i.e., the mouse +button or space bar is pressed on the radiobutton). +
CE_TabBarTab(const TQTabBar *) +

and +

CE_TabBarLabel(const TQTabBar *) +

Style_Enabled Set if the tabbar and tab is enabled. + TQStyleOption ( TQTab *t ) + + t is the TQTab being drawn. +
Style_Selected Set if the tab is the current tab. +
CE_ProgressBarGroove(const TQProgressBar *) +

and +

CE_ProgressBarContents(const TQProgressBar *) +

and +

CE_ProgressBarLabel(const TQProgressBar *) +

Style_Enabled Set if the progressbar is enabled. + Unused. +   +
Style_HasFocus Set if the progressbar has input focus. +
CE_PopupMenuItem(const TQPopupMenu *) +Style_Enabled Set if the menuitem is enabled. + TQStyleOption ( TQMenuItem *mi, int tabwidth, int maxpmwidth ) + +mi is the menu item being drawn. TQMenuItem is currently an +internal class. +
Style_Active Set if the menuitem is the current item. +tabwidth is the width of the tab column where key accelerators +are drawn. +
Style_Down Set if the menuitem is down (i.e., the mouse button +or space bar is pressed). +maxpmwidth is the maximum width of the check column where +checkmarks and iconsets are drawn. +
CE_MenuBarItem(const TQMenuBar *) +Style_Enabled Set if the menuitem is enabled + TQStyleOption ( TQMenuItem *mi ) + + mi is the menu item being drawn. +
Style_Active Set if the menuitem is the current item. +
Style_Down Set if the menuitem is down (i.e., a mouse button or +the space bar is pressed). +
Style_HasFocus Set if the menubar has input focus. +
CE_ToolButtonLabel(const TQToolButton *) +Style_Enabled Set if the toolbutton is enabled. + TQStyleOption ( ArrowType t ) + + When the tool button only contains an arrow, t is the +arrow's type. +
Style_HasFocus Set if the toolbutton has input focus. +
Style_Down Set if the toolbutton is down (i.e., a +mouse button or the space is pressed). +
Style_On Set if the toolbutton is a toggle button +and is toggled on. +
Style_AutoRaise Set if the toolbutton has auto-raise enabled. +
Style_MouseOver Set if the mouse pointer is over the toolbutton. +
Style_Raised Set if the button is not down, not on and doesn't +contain the mouse when auto-raise is enabled. +
+

See also ControlElement and StyleFlags. + +

void TQStyle::drawControlMask ( ControlElement element, TQPainter * p, const TQWidget * widget, const TQRect & r, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Draw a bitmask for the ControlElement element using the painter +p in the area r. See drawControl() for an explanation of the +use of the widget and opt arguments. +

The rect r should be in screen coordinates. +

See also drawControl() and ControlElement. + +

void TQStyle::drawItem ( TQPainter * p, const TQRect & r, int flags, const TQColorGroup & g, bool enabled, const TQPixmap * pixmap, const TQString & text, int len = -1, const TQColor * penColor = 0 ) const [virtual] +

+Draws the text or pixmap in rectangle r using painter p and color group g. The pen color is specified with penColor. The enabled bool indicates whether or not the item is +enabled; when reimplementing this bool should influence how the +item is drawn. If len is -1 (the default) all the text is +drawn; otherwise only the first len characters of text are +drawn. The text is aligned and wrapped according to the alignment +flags (see TQt::AlignmentFlags). +

By default, if both the text and the pixmap are not null, the +pixmap is drawn and the text is ignored. + +

void TQStyle::drawPrimitive ( PrimitiveElement pe, TQPainter * p, const TQRect & r, const TQColorGroup & cg, SFlags flags = Style_Default, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Draws the style PrimitiveElement pe using the painter p in +the area r. Colors are used from the color group cg. +

The rect r should be in screen coordinates. +

The flags argument is used to control how the PrimitiveElement +is drawn. Multiple flags can be OR'ed together. +

For example, a pressed button would be drawn with the flags Style_Enabled and Style_Down. +

The opt argument can be used to control how various +PrimitiveElements are drawn. Note that opt may be the default +value even for PrimitiveElements that make use of extra options. +When opt is non-default, it is used as follows: +

+
PrimitiveElement Options Notes +
PE_FocusRect +TQStyleOption ( const TQColor & bg ) + +bg is the background color on which the focus rect is being drawn. +
PE_Panel + TQStyleOption ( int linewidth, int midlinewidth ) + +linewidth is the line width for drawing the panel. +
midlinewidth is the mid-line width for drawing the panel. +
PE_PanelPopup + TQStyleOption ( int linewidth, int midlinewidth ) + +linewidth is the line width for drawing the panel. +
midlinewidth is the mid-line width for drawing the panel. +
PE_PanelMenuBar + TQStyleOption ( int linewidth, int midlinewidth ) + +linewidth is the line width for drawing the panel. +
midlinewidth is the mid-line width for drawing the panel. +
PE_PanelDockWindow + TQStyleOption ( int linewidth, int midlinewidth ) + +linewidth is the line width for drawing the panel. +
midlinewidth is the mid-line width for drawing the panel. +
PE_GroupBoxFrame + TQStyleOption ( int linewidth, int midlinewidth, int shape, int shadow ) + +linewidth is the line width for the group box. +
midlinewidth is the mid-line width for the group box. +
shape is the frame shape +for the group box. +
shadow is the frame shadow +for the group box. +
+

For all other PrimitiveElements, opt is unused. +

See also StyleFlags. + +

Example: themes/wood.cpp. +

TQRect TQStyle::itemRect ( TQPainter * p, const TQRect & r, int flags, bool enabled, const TQPixmap * pixmap, const TQString & text, int len = -1 ) const [virtual] +

+Returns the appropriate area (see below) within rectangle r in +which to draw the text or pixmap using painter p. If len is -1 (the default) all the text is drawn; otherwise only +the first len characters of text are drawn. The text is +aligned in accordance with the alignment flags (see +TQt::AlignmentFlags). The enabled bool indicates whether or +not the item is enabled. +

If r is larger than the area needed to render the text the +rectangle that is returned will be offset within r in +accordance with the alignment flags. For example if flags is +AlignCenter the returned rectangle will be centered within r. If r is smaller than the area needed the rectangle that is +returned will be larger than r (the smallest rectangle large +enough to render the text or pixmap). +

By default, if both the text and the pixmap are not null, the +pixmap is drawn and the text is ignored. + +

int TQStyle::pixelMetric ( PixelMetric metric, const TQWidget * widget = 0 ) const [pure virtual] +

+ +

Returns the pixel metric for metric. The widget argument is +a pointer to a TQWidget or one of its subclasses. The widget can be +cast to the appropriate type based on the value of metric. Note +that widget may be zero even for PixelMetrics that can make use +of widget. See the table below for the appropriate widget +casts: +

+
PixelMetric Widget Cast +
PM_SliderControlThickness (const TQSlider *) +
PM_SliderLength (const TQSlider *) +
PM_SliderTickmarkOffset (const TQSlider *) +
PM_SliderSpaceAvailable (const TQSlider *) +
PM_TabBarTabOverlap (const TQTabBar *) +
PM_TabBarTabHSpace (const TQTabBar *) +
PM_TabBarTabVSpace (const TQTabBar *) +
PM_TabBarBaseHeight (const TQTabBar *) +
PM_TabBarBaseOverlap (const TQTabBar *) +
+ +

void TQStyle::polish ( TQWidget * ) [virtual] +

+Initializes the appearance of a widget. +

This function is called for every widget at some point after it +has been fully created but just before it is shown the very +first time. +

Reasonable actions in this function might be to call +TQWidget::setBackgroundMode() for the widget. An example of highly +unreasonable use would be setting the geometry! Reimplementing +this function gives you a back-door through which you can change +the appearance of a widget. With TQt 3.0's style engine you will +rarely need to write your own polish(); instead reimplement +drawItem(), drawPrimitive(), etc. +

The TQWidget::inherits() function may provide enough information to +allow class-specific customizations. But be careful not to +hard-code things too much because new TQStyle subclasses are +expected to work reasonably with all current and future +widgets. +

See also unPolish(). + +

void TQStyle::polish ( TQApplication * ) [virtual] +

+This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

Late initialization of the TQApplication object. +

See also unPolish(). + +

void TQStyle::polish ( TQPalette & ) [virtual] +

+This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

The style may have certain requirements for color palettes. In +this function it has the chance to change the palette according to +these requirements. +

See also TQPalette and TQApplication::setPalette(). + +

void TQStyle::polishPopupMenu ( TQPopupMenu * ) [pure virtual] +

+Polishes the popup menu according to the GUI style. This usually +means setting the mouse tracking +(TQPopupMenu::setMouseTracking()) and whether the menu is +checkable by default (TQPopupMenu::setCheckable()). + +

SubControl TQStyle::querySubControl ( ComplexControl control, const TQWidget * widget, const TQPoint & pos, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Returns the SubControl for widget at the point pos. The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of control. The opt argument can be used to +pass extra information required when drawing the ComplexControl. +Note that opt may be the default value even for ComplexControls +that can make use of the extra options. See drawComplexControl() +for an explanation of the widget and opt arguments. +

Note that pos is passed in screen coordinates. When using +querySubControlMetrics() to check for hits and misses, use +visualRect() to change the logical coordinates into screen +coordinates. +

See also drawComplexControl(), ComplexControl, SubControl, and querySubControlMetrics(). + +

TQRect TQStyle::querySubControlMetrics ( ComplexControl control, const TQWidget * widget, SubControl subcontrol, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Returns the rect for the SubControl subcontrol for widget in +logical coordinates. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of control. The opt argument can be used to +pass extra information required when drawing the ComplexControl. +Note that opt may be the default value even for ComplexControls +that can make use of the extra options. See drawComplexControl() +for an explanation of the widget and opt arguments. +

See also drawComplexControl(), ComplexControl, and SubControl. + +

TQSize TQStyle::scrollBarExtent () const +

+ +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

+

TQSize TQStyle::sizeFromContents ( ContentsType contents, const TQWidget * widget, const TQSize & contentsSize, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Returns the size of widget based on the contents size contentsSize. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of contents. The opt argument can be used to +pass extra information required when calculating the size. Note +that opt may be the default value even for ContentsTypes that +can make use of the extra options. See the table below for the +appropriate widget and opt usage: +

+
ContentsType Widget Cast Options Notes +
CT_PushButton (const TQPushButton *) Unused.   +
CT_CheckBox (const TQCheckBox *) Unused.   +
CT_RadioButton (const TQRadioButton *) Unused.   +
CT_ToolButton (const TQToolButton *) Unused.   +
CT_ComboBox (const TQComboBox *) Unused.   +
CT_Splitter (const TQSplitter *) Unused.   +
CT_DockWindow (const TQDockWindow *) Unused.   +
CT_ProgressBar (const TQProgressBar *) Unused.   +
CT_PopupMenuItem (const TQPopupMenu *) +TQStyleOption ( TQMenuItem *mi ) + +mi is the menu item to use when calculating the size. +TQMenuItem is currently an internal class. +
+ +

int TQStyle::styleHint ( StyleHint stylehint, const TQWidget * widget = 0, const TQStyleOption & opt = TQStyleOption::Default, TQStyleHintReturn * returnData = 0 ) const [pure virtual] +

+ +

Returns the style hint stylehint for widget. Currently, widget, opt, and returnData are unused; they're included to +allow for future enhancements. +

For an explanation of the return value see StyleHint. + +

TQPixmap TQStyle::stylePixmap ( StylePixmap stylepixmap, const TQWidget * widget = 0, const TQStyleOption & opt = TQStyleOption::Default ) const [pure virtual] +

+ +

Returns a pixmap for stylepixmap. +

The opt argument can be used to pass extra information required +when drawing the ControlElement. Note that opt may be the +default value even for StylePixmaps that can make use of the extra +options. Currently, the opt argument is unused. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of stylepixmap. See the table below for the +appropriate widget casts: +

+
StylePixmap Widget Cast +
SP_TitleBarMinButton (const TQWidget *) +
SP_TitleBarMaxButton (const TQWidget *) +
SP_TitleBarCloseButton (const TQWidget *) +
SP_TitleBarNormalButton (const TQWidget *) +
SP_TitleBarShadeButton (const TQWidget *) +
SP_TitleBarUnshadeButton (const TQWidget *) +
SP_DockWindowCloseButton (const TQDockWindow *) +
+

See also StylePixmap. + +

TQRect TQStyle::subRect ( SubRect subrect, const TQWidget * widget ) const [pure virtual] +

+ +

Returns the sub-area subrect for the widget in logical +coordinates. +

The widget argument is a pointer to a TQWidget or one of its +subclasses. The widget can be cast to the appropriate type based +on the value of subrect. See the table below for the +appropriate widget casts: +

+
SubRect Widget Cast +
SR_PushButtonContents (const TQPushButton *) +
SR_PushButtonFocusRect (const TQPushButton *) +
SR_CheckBoxIndicator (const TQCheckBox *) +
SR_CheckBoxContents (const TQCheckBox *) +
SR_CheckBoxFocusRect (const TQCheckBox *) +
SR_RadioButtonIndicator (const TQRadioButton *) +
SR_RadioButtonContents (const TQRadioButton *) +
SR_RadioButtonFocusRect (const TQRadioButton *) +
SR_ComboBoxFocusRect (const TQComboBox *) +
SR_DockWindowHandleRect (const TQWidget *) +
SR_ProgressBarGroove (const TQProgressBar *) +
SR_ProgressBarContents (const TQProgressBar *) +
SR_ProgressBarLabel (const TQProgressBar *) +
+

The tear-off handle (SR_DockWindowHandleRect) for TQDockWindow +is a private class. Use TQWidget::parentWidget() to access the +TQDockWindow: +

+        if ( !widget->parentWidget() )
+            return;
+        const TQDockWindow *dw = (const TQDockWindow *) widget->parentWidget();
+    
+ +

See also SubRect. + +

void TQStyle::tabbarMetrics ( const TQWidget * t, int & hf, int & vf, int & ov ) const +

+ +This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. +

+

void TQStyle::unPolish ( TQWidget * ) [virtual] +

+Undoes the initialization of a widget's appearance. +

This function is the counterpart to polish. It is called for every +polished widget when the style is dynamically changed. The former +style has to unpolish its settings before the new style can polish +them again. +

See also polish(). + +

void TQStyle::unPolish ( TQApplication * ) [virtual] +

+This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

Undoes the application polish. +

See also polish(). + +

TQRect TQStyle::visualRect ( const TQRect & logical, const TQWidget * w ) [static] +

+ +

Returns the rect logical in screen coordinates. The bounding +rect for widget w is used to perform the translation. This +function is provided to aid style implementors in supporting +right-to-left mode. +

See also TQApplication::reverseLayout(). + +

TQRect TQStyle::visualRect ( const TQRect & logical, const TQRect & bounding ) [static] +

+This is an overloaded member function, provided for convenience. It behaves essentially like the above function. +

Returns the rect logical in screen coordinates. The rect bounding is used to perform the translation. This function is +provided to aid style implementors in supporting right-to-left +mode. +

See also TQApplication::reverseLayout(). + + +


+This file is part of the TQt toolkit. +Copyright © 1995-2007 +Trolltech. All Rights Reserved.


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1