diff options
Diffstat (limited to 'doc/man/man3/tqcolorgroup.3qt')
-rw-r--r-- | doc/man/man3/tqcolorgroup.3qt | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/doc/man/man3/tqcolorgroup.3qt b/doc/man/man3/tqcolorgroup.3qt index 4c9b2fac4..f28de8c37 100644 --- a/doc/man/man3/tqcolorgroup.3qt +++ b/doc/man/man3/tqcolorgroup.3qt @@ -1,5 +1,5 @@ '\" t -.TH QColorGroup 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQColorGroup 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,29 +7,29 @@ .ad l .nh .SH NAME -QColorGroup \- Group of widget colors +TQColorGroup \- Group of widget colors .SH SYNOPSIS \fC#include <ntqpalette.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQColorGroup\fR ()" +.BI "\fBTQColorGroup\fR ()" .br .ti -1c -.BI "QColorGroup ( const TQColor & foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base ) \fI(obsolete)\fR" +.BI "TQColorGroup ( const TQColor & foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base ) \fI(obsolete)\fR" .br .ti -1c -.BI "\fBQColorGroup\fR ( const QBrush & foreground, const QBrush & button, const QBrush & light, const QBrush & dark, const QBrush & mid, const QBrush & text, const QBrush & bright_text, const QBrush & base, const QBrush & background )" +.BI "\fBTQColorGroup\fR ( const TQBrush & foreground, const TQBrush & button, const TQBrush & light, const TQBrush & dark, const TQBrush & mid, const TQBrush & text, const TQBrush & bright_text, const TQBrush & base, const TQBrush & background )" .br .ti -1c -.BI "\fBQColorGroup\fR ( const QColorGroup & other )" +.BI "\fBTQColorGroup\fR ( const TQColorGroup & other )" .br .ti -1c -.BI "\fB~QColorGroup\fR ()" +.BI "\fB~TQColorGroup\fR ()" .br .ti -1c -.BI "QColorGroup & \fBoperator=\fR ( const QColorGroup & other )" +.BI "TQColorGroup & \fBoperator=\fR ( const TQColorGroup & other )" .br .ti -1c .BI "enum \fBColorRole\fR { Foreground, Button, Light, Midlight, Dark, Mid, Text, BrightText, ButtonText, Base, Background, Shadow, Highlight, HighlightedText, Link, LinkVisited, NColorRoles }" @@ -38,13 +38,13 @@ QColorGroup \- Group of widget colors .BI "const TQColor & \fBcolor\fR ( ColorRole r ) const" .br .ti -1c -.BI "const QBrush & \fBbrush\fR ( ColorRole r ) const" +.BI "const TQBrush & \fBbrush\fR ( ColorRole r ) const" .br .ti -1c .BI "void \fBsetColor\fR ( ColorRole r, const TQColor & c )" .br .ti -1c -.BI "void \fBsetBrush\fR ( ColorRole r, const QBrush & b )" +.BI "void \fBsetBrush\fR ( ColorRole r, const TQBrush & b )" .br .ti -1c .BI "const TQColor & \fBforeground\fR () const" @@ -95,28 +95,28 @@ QColorGroup \- Group of widget colors .BI "const TQColor & \fBlinkVisited\fR () const" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QColorGroup & g ) const" +.BI "bool \fBoperator==\fR ( const TQColorGroup & g ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QColorGroup & g ) const" +.BI "bool \fBoperator!=\fR ( const TQColorGroup & g ) const" .br .in -1c .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const QColorGroup & g )" +.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const TQColorGroup & g )" .br .in -1c .SH DESCRIPTION -The QColorGroup class contains a group of widget colors. +The TQColorGroup class contains a group of widget colors. .PP A color group contains a group of colors used by widgets for drawing themselves. We recommend that widgets use color group roles such as "foreground" and "base" rather than literal colors like "red" or "turquoise". The color roles are enumerated and defined in the ColorRole documentation. .PP -The most common use of QColorGroup is like this: +The most common use of TQColorGroup is like this: .PP .nf .br - QPainter p; + TQPainter p; .br ... .br @@ -138,52 +138,52 @@ There are also corresponding color() and brush() getters, and a commonly used co .PP See also TQColor, QPalette, TQWidget::colorGroup, Widget Appearance and Style, Graphics Classes, and Image Processing Classes. .SS "Member Type Documentation" -.SH "QColorGroup::ColorRole" +.SH "TQColorGroup::ColorRole" The ColorRole enum defines the different symbolic color roles used in current GUIs. .PP The central roles are: .TP -\fCQColorGroup::Background\fR - general background color. +\fCTQColorGroup::Background\fR - general background color. .TP -\fCQColorGroup::Foreground\fR - general foreground color. +\fCTQColorGroup::Foreground\fR - general foreground color. .TP -\fCQColorGroup::Base\fR - used as background color for text entry widgets, for example; usually white or another light color. +\fCTQColorGroup::Base\fR - used as background color for text entry widgets, for example; usually white or another light color. .TP -\fCQColorGroup::Text\fR - the foreground color used with Base. Usually this is the same as the Foreground, in which case it must provide good contrast with Background and Base. +\fCTQColorGroup::Text\fR - the foreground color used with Base. Usually this is the same as the Foreground, in which case it must provide good contrast with Background and Base. .TP -\fCQColorGroup::Button\fR - general button background color in which buttons need a background different from Background, as in the Macintosh style. +\fCTQColorGroup::Button\fR - general button background color in which buttons need a background different from Background, as in the Macintosh style. .TP -\fCQColorGroup::ButtonText\fR - a foreground color used with the Button color. +\fCTQColorGroup::ButtonText\fR - a foreground color used with the Button color. .PP There are some color roles used mostly for 3D bevel and shadow effects: .TP -\fCQColorGroup::Light\fR - lighter than Button color. +\fCTQColorGroup::Light\fR - lighter than Button color. .TP -\fCQColorGroup::Midlight\fR - between Button and Light. +\fCTQColorGroup::Midlight\fR - between Button and Light. .TP -\fCQColorGroup::Dark\fR - darker than Button. +\fCTQColorGroup::Dark\fR - darker than Button. .TP -\fCQColorGroup::Mid\fR - between Button and Dark. +\fCTQColorGroup::Mid\fR - between Button and Dark. .TP -\fCQColorGroup::Shadow\fR - a very dark color. By default, the shadow color is \fCQt::black\fR. +\fCTQColorGroup::Shadow\fR - a very dark color. By default, the shadow color is \fCTQt::black\fR. .PP All of these are normally derived from Background and used in ways that depend on that relationship. For example, buttons depend on it to make the bevels look attractive, and Motif scroll bars depend on Mid to be slightly different from Background. .PP Selected (marked) items have two roles: .TP -\fCQColorGroup::Highlight\fR - a color to indicate a selected item or the current item. By default, the highlight color is \fCQt::darkBlue\fR. +\fCTQColorGroup::Highlight\fR - a color to indicate a selected item or the current item. By default, the highlight color is \fCTQt::darkBlue\fR. .TP -\fCQColorGroup::HighlightedText\fR - a text color that contrasts with Highlight. By default, the highlighted text color is \fCQt::white\fR. +\fCTQColorGroup::HighlightedText\fR - a text color that contrasts with Highlight. By default, the highlighted text color is \fCTQt::white\fR. .PP Finally, there is a special role for text that needs to be drawn where Text or Foreground would give poor contrast, such as on pressed push buttons: .TP -\fCQColorGroup::BrightText\fR - a text color that is very different from Foreground and contrasts well with e.g. Dark. +\fCTQColorGroup::BrightText\fR - a text color that is very different from Foreground and contrasts well with e.g. Dark. .TP -\fCQColorGroup::Link\fR - a text color used for unvisited hyperlinks. By default, the link color is \fCQt::blue\fR. +\fCTQColorGroup::Link\fR - a text color used for unvisited hyperlinks. By default, the link color is \fCTQt::blue\fR. .TP -\fCQColorGroup::LinkVisited\fR - a text color used for already visited hyperlinks. By default, the linkvisited color is \fCQt::magenta\fR. +\fCTQColorGroup::LinkVisited\fR - a text color used for already visited hyperlinks. By default, the linkvisited color is \fCTQt::magenta\fR. .TP -\fCQColorGroup::NColorRoles\fR - Internal. +\fCTQColorGroup::NColorRoles\fR - Internal. .PP Note that text colors can be used for things other than just words; text colors are \fIusually\fR used for text, but it's quite common to use the text color roles for lines, icons, etc. .PP @@ -193,147 +193,147 @@ This image shows most of the color roles in use: <center> .PP </center> .SH MEMBER FUNCTION DOCUMENTATION -.SH "QColorGroup::QColorGroup ()" +.SH "TQColorGroup::TQColorGroup ()" Constructs a color group with all colors set to black. -.SH "QColorGroup::QColorGroup ( const TQColor & foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base )" +.SH "TQColorGroup::TQColorGroup ( const TQColor & foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Constructs a color group with the specified colors. The button color will be set to the background color. -.SH "QColorGroup::QColorGroup ( const QBrush & foreground, const QBrush & button, const QBrush & light, const QBrush & dark, const QBrush & mid, const QBrush & text, const QBrush & bright_text, const QBrush & base, const QBrush & background )" +.SH "TQColorGroup::TQColorGroup ( const TQBrush & foreground, const TQBrush & button, const TQBrush & light, const TQBrush & dark, const TQBrush & mid, const TQBrush & text, const TQBrush & bright_text, const TQBrush & base, const TQBrush & background )" Constructs a color group. You can pass either brushes, pixmaps or plain colors for \fIforeground\fR, \fIbutton\fR, \fIlight\fR, \fIdark\fR, \fImid\fR, \fItext\fR, \fIbright_text\fR, \fIbase\fR and \fIbackground\fR. .PP -See also QBrush. -.SH "QColorGroup::QColorGroup ( const QColorGroup & other )" +See also TQBrush. +.SH "TQColorGroup::TQColorGroup ( const TQColorGroup & other )" Constructs a color group that is an independent copy of \fIother\fR. -.SH "QColorGroup::~QColorGroup ()" +.SH "TQColorGroup::~TQColorGroup ()" Destroys the color group. -.SH "const TQColor & QColorGroup::background () const" +.SH "const TQColor & TQColorGroup::background () const" Returns the background color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::base () const" +.SH "const TQColor & TQColorGroup::base () const" Returns the base color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::brightText () const" +.SH "const TQColor & TQColorGroup::brightText () const" Returns the bright text foreground color of the color group. .PP See also ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const QBrush & QColorGroup::brush ( ColorRole r ) const" +.SH "const TQBrush & TQColorGroup::brush ( ColorRole r ) const" Returns the brush that has been set for color role \fIr\fR. .PP See also color(), setBrush(), and ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColor & QColorGroup::button () const" +.SH "const TQColor & TQColorGroup::button () const" Returns the button color of the color group. .PP See also ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColor & QColorGroup::buttonText () const" +.SH "const TQColor & TQColorGroup::buttonText () const" Returns the button text foreground color of the color group. .PP See also ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColor & QColorGroup::color ( ColorRole r ) const" +.SH "const TQColor & TQColorGroup::color ( ColorRole r ) const" Returns the color that has been set for color role \fIr\fR. .PP See also brush() and ColorRole. -.SH "const TQColor & QColorGroup::dark () const" +.SH "const TQColor & TQColorGroup::dark () const" Returns the dark color of the color group. .PP See also ColorRole. .PP Example: themes/wood.cpp. -.SH "const TQColor & QColorGroup::foreground () const" +.SH "const TQColor & TQColorGroup::foreground () const" Returns the foreground color of the color group. .PP See also ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColor & QColorGroup::highlight () const" +.SH "const TQColor & TQColorGroup::highlight () const" Returns the highlight color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::highlightedText () const" +.SH "const TQColor & TQColorGroup::highlightedText () const" Returns the highlighted text color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::light () const" +.SH "const TQColor & TQColorGroup::light () const" Returns the light color of the color group. .PP See also ColorRole. .PP Example: themes/wood.cpp. -.SH "const TQColor & QColorGroup::link () const" +.SH "const TQColor & TQColorGroup::link () const" Returns the unvisited link text color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::linkVisited () const" +.SH "const TQColor & TQColorGroup::linkVisited () const" Returns the visited link text color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::mid () const" +.SH "const TQColor & TQColorGroup::mid () const" Returns the mid color of the color group. .PP See also ColorRole. .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColor & QColorGroup::midlight () const" +.SH "const TQColor & TQColorGroup::midlight () const" Returns the midlight color of the color group. .PP See also ColorRole. -.SH "bool QColorGroup::operator!= ( const QColorGroup & g ) const" +.SH "bool TQColorGroup::operator!= ( const TQColorGroup & g ) const" Returns TRUE if this color group is different from \fIg\fR; otherwise returns FALSE. .PP See also -.SH "QColorGroup & QColorGroup::operator= ( const QColorGroup & other )" +.SH "TQColorGroup & TQColorGroup::operator= ( const TQColorGroup & other )" Copies the colors of \fIother\fR to this color group. -.SH "bool QColorGroup::operator== ( const QColorGroup & g ) const" +.SH "bool TQColorGroup::operator== ( const TQColorGroup & g ) const" Returns TRUE if this color group is equal to \fIg\fR; otherwise returns FALSE. .PP See also -.SH "void QColorGroup::setBrush ( ColorRole r, const QBrush & b )" +.SH "void TQColorGroup::setBrush ( ColorRole r, const TQBrush & b )" Sets the brush used for color role \fIr\fR to \fIb\fR. .PP See also brush(), setColor(), and ColorRole. .PP Example: themes/wood.cpp. -.SH "void QColorGroup::setColor ( ColorRole r, const TQColor & c )" +.SH "void TQColorGroup::setColor ( ColorRole r, const TQColor & c )" Sets the brush used for color role \fIr\fR to a solid color \fIc\fR. .PP See also brush() and ColorRole. .PP Examples: .)l listviews/listviews.cpp, table/statistics/statistics.cpp, and themes/metal.cpp. -.SH "const TQColor & QColorGroup::shadow () const" +.SH "const TQColor & TQColorGroup::shadow () const" Returns the shadow color of the color group. .PP See also ColorRole. -.SH "const TQColor & QColorGroup::text () const" +.SH "const TQColor & TQColorGroup::text () const" Returns the text foreground color of the color group. .PP See also ColorRole. .PP Example: listviews/listviews.cpp. .SH RELATED FUNCTION DOCUMENTATION -.SH "TQDataStream & operator<< ( TQDataStream & s, const QColorGroup & g )" +.SH "TQDataStream & operator<< ( TQDataStream & s, const TQColorGroup & g )" Writes color group, \fIg\fR to the stream \fIs\fR. .PP See also Format of the TQDataStream operators. .SH "SEE ALSO" -.BR http://doc.trolltech.com/qcolorgroup.html +.BR http://doc.trolltech.com/tqcolorgroup.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |