diff options
Diffstat (limited to 'doc/man/man3/tqpalette.3qt')
-rw-r--r-- | doc/man/man3/tqpalette.3qt | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/doc/man/man3/tqpalette.3qt b/doc/man/man3/tqpalette.3qt index 23ddbcdaf..e6b30193f 100644 --- a/doc/man/man3/tqpalette.3qt +++ b/doc/man/man3/tqpalette.3qt @@ -1,5 +1,5 @@ '\" t -.TH QPalette 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQPalette 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,32 +7,32 @@ .ad l .nh .SH NAME -QPalette \- Color groups for each widget state +TQPalette \- Color groups for each widget state .SH SYNOPSIS -\fC#include <ntqpalette.h>\fR +\fC#include <tqpalette.h>\fR .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQPalette\fR ()" +.BI "\fBTQPalette\fR ()" .br .ti -1c -.BI "QPalette ( const TQColor & button ) \fI(obsolete)\fR" +.BI "TQPalette ( const TQColor & button ) \fI(obsolete)\fR" .br .ti -1c -.BI "\fBQPalette\fR ( const TQColor & button, const TQColor & background )" +.BI "\fBTQPalette\fR ( const TQColor & button, const TQColor & background )" .br .ti -1c -.BI "\fBQPalette\fR ( const TQColorGroup & active, const TQColorGroup & disabled, const TQColorGroup & inactive )" +.BI "\fBTQPalette\fR ( const TQColorGroup & active, const TQColorGroup & disabled, const TQColorGroup & inactive )" .br .ti -1c -.BI "\fBQPalette\fR ( const QPalette & p )" +.BI "\fBTQPalette\fR ( const TQPalette & p )" .br .ti -1c -.BI "\fB~QPalette\fR ()" +.BI "\fB~TQPalette\fR ()" .br .ti -1c -.BI "QPalette & \fBoperator=\fR ( const QPalette & p )" +.BI "TQPalette & \fBoperator=\fR ( const TQPalette & p )" .br .ti -1c .BI "enum \fBColorGroup\fR { Disabled, Active, Inactive, NColorGroups }" @@ -56,7 +56,7 @@ QPalette \- Color groups for each widget state .BI "void \fBsetBrush\fR ( TQColorGroup::ColorRole r, const TQBrush & b )" .br .ti -1c -.BI "QPalette \fBcopy\fR () const" +.BI "TQPalette \fBcopy\fR () const" .br .ti -1c .BI "const TQColorGroup & \fBactive\fR () const" @@ -77,13 +77,13 @@ QPalette \- Color groups for each widget state .BI "void \fBsetInactive\fR ( const TQColorGroup & g )" .br .ti -1c -.BI "bool \fBoperator==\fR ( const QPalette & p ) const" +.BI "bool \fBoperator==\fR ( const TQPalette & p ) const" .br .ti -1c -.BI "bool \fBoperator!=\fR ( const QPalette & p ) const" +.BI "bool \fBoperator!=\fR ( const TQPalette & p ) const" .br .ti -1c -.BI "bool \fBisCopyOf\fR ( const QPalette & p )" +.BI "bool \fBisCopyOf\fR ( const TQPalette & p )" .br .ti -1c .BI "int \fBserialNumber\fR () const" @@ -92,14 +92,14 @@ QPalette \- Color groups for each widget state .SH RELATED FUNCTION DOCUMENTATION .in +1c .ti -1c -.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const QPalette & p )" +.BI "TQDataStream & \fBoperator<<\fR ( TQDataStream & s, const TQPalette & p )" .br .ti -1c -.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, QPalette & p )" +.BI "TQDataStream & \fBoperator>>\fR ( TQDataStream & s, TQPalette & p )" .br .in -1c .SH DESCRIPTION -The QPalette class contains color groups for each widget state. +The TQPalette class contains color groups for each widget state. .PP A palette consists of three color groups: \fIactive\fR, \fIdisabled\fR, and \fIinactive\fR. All widgets contain a palette, and all widgets in TQt use their palette to draw themselves. This makes the user interface easily configurable and easier to keep consistent. .PP @@ -125,130 +125,130 @@ You can copy a palette using the copy constructor and test to see if two palette .PP See also QApplication::setPalette(), TQWidget::palette, TQColorGroup, TQColor, Widget Appearance and Style, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SS "Member Type Documentation" -.SH "QPalette::ColorGroup" +.SH "TQPalette::ColorGroup" .TP -\fCQPalette::Disabled\fR +\fCTQPalette::Disabled\fR .TP -\fCQPalette::Active\fR +\fCTQPalette::Active\fR .TP -\fCQPalette::Inactive\fR +\fCTQPalette::Inactive\fR .TP -\fCQPalette::NColorGroups\fR +\fCTQPalette::NColorGroups\fR .SH MEMBER FUNCTION DOCUMENTATION -.SH "QPalette::QPalette ()" +.SH "TQPalette::TQPalette ()" Constructs a palette that consists of color groups with only black colors. -.SH "QPalette::QPalette ( const TQColor & button )" +.SH "TQPalette::TQPalette ( const TQColor & button )" \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 palette from the \fIbutton\fR color. The other colors are automatically calculated, based on this color. Background will be the button color as well. -.SH "QPalette::QPalette ( const TQColor & button, const TQColor & background )" +.SH "TQPalette::TQPalette ( const TQColor & button, const TQColor & background )" Constructs a palette from a \fIbutton\fR color and a \fIbackground\fR. The other colors are automatically calculated, based on these colors. -.SH "QPalette::QPalette ( const TQColorGroup & active, const TQColorGroup & disabled, const TQColorGroup & inactive )" +.SH "TQPalette::TQPalette ( const TQColorGroup & active, const TQColorGroup & disabled, const TQColorGroup & inactive )" Constructs a palette that consists of the three color groups \fIactive\fR, \fIdisabled\fR and \fIinactive\fR. See the Detailed Description for definitions of the color groups and TQColorGroup::ColorRole for definitions of each color role in the three groups. .PP See also TQColorGroup and TQColorGroup::ColorRole. -.SH "QPalette::QPalette ( const QPalette & p )" +.SH "TQPalette::TQPalette ( const TQPalette & p )" Constructs a copy of \fIp\fR. .PP This constructor is fast (it uses copy-on-write). -.SH "QPalette::~QPalette ()" +.SH "TQPalette::~TQPalette ()" Destroys the palette. -.SH "const TQColorGroup & QPalette::active () const" +.SH "const TQColorGroup & TQPalette::active () const" Returns the active color group of this palette. .PP See also TQColorGroup, setActive(), inactive(), and disabled(). .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQBrush & QPalette::brush ( ColorGroup gr, TQColorGroup::ColorRole r ) const" +.SH "const TQBrush & TQPalette::brush ( ColorGroup gr, TQColorGroup::ColorRole r ) const" Returns the brush in color group \fIgr\fR, used for color role \fIr\fR. .PP See also color(), setBrush(), and TQColorGroup::ColorRole. -.SH "const TQColor & QPalette::color ( ColorGroup gr, TQColorGroup::ColorRole r ) const" +.SH "const TQColor & TQPalette::color ( ColorGroup gr, TQColorGroup::ColorRole r ) const" Returns the color in color group \fIgr\fR, used for color role \fIr\fR. .PP See also brush(), setColor(), and TQColorGroup::ColorRole. -.SH "QPalette QPalette::copy () const" +.SH "TQPalette TQPalette::copy () const" Returns a deep copy of this palette. .PP \fBWarning:\fR This is slower than the copy constructor and assignment operator and offers no benefits. -.SH "const TQColorGroup & QPalette::disabled () const" +.SH "const TQColorGroup & TQPalette::disabled () const" Returns the disabled color group of this palette. .PP See also TQColorGroup, setDisabled(), active(), and inactive(). .PP Examples: .)l themes/metal.cpp and themes/wood.cpp. -.SH "const TQColorGroup & QPalette::inactive () const" +.SH "const TQColorGroup & TQPalette::inactive () const" Returns the inactive color group of this palette. .PP See also TQColorGroup, setInactive(), active(), and disabled(). -.SH "bool QPalette::isCopyOf ( const QPalette & p )" +.SH "bool TQPalette::isCopyOf ( const TQPalette & p )" Returns TRUE if this palette and \fIp\fR are copies of each other, i.e. one of them was created as a copy of the other and neither was subsequently modified; otherwise returns FALSE. This is much stricter than equality. .PP See also operator=() and operator==(). -.SH "bool QPalette::operator!= ( const QPalette & p ) const" +.SH "bool TQPalette::operator!= ( const TQPalette & p ) const" Returns TRUE (slowly) if this palette is different from \fIp\fR; otherwise returns FALSE (usually quickly). -.SH "QPalette & QPalette::operator= ( const QPalette & p )" +.SH "TQPalette & TQPalette::operator= ( const TQPalette & p )" Assigns \fIp\fR to this palette and returns a reference to this palette. .PP This is fast (it uses copy-on-write). .PP See also copy(). -.SH "bool QPalette::operator== ( const QPalette & p ) const" +.SH "bool TQPalette::operator== ( const TQPalette & p ) const" Returns TRUE (usually quickly) if this palette is equal to \fIp\fR; otherwise returns FALSE (slowly). -.SH "int QPalette::serialNumber () const" -Returns a number that uniquely identifies this QPalette object. The serial number is intended for caching. Its value may not be used for anything other than equality testing. +.SH "int TQPalette::serialNumber () const" +Returns a number that uniquely identifies this TQPalette object. The serial number is intended for caching. Its value may not be used for anything other than equality testing. .PP -Note that QPalette uses copy-on-write, and the serial number changes during the lazy copy operation (detach()), not during a shallow copy (copy constructor or assignment). +Note that TQPalette uses copy-on-write, and the serial number changes during the lazy copy operation (detach()), not during a shallow copy (copy constructor or assignment). .PP -See also QPixmap, QPixmapCache, and TQCache. -.SH "void QPalette::setActive ( const TQColorGroup & g )" +See also TQPixmap, TQPixmapCache, and TQCache. +.SH "void TQPalette::setActive ( const TQColorGroup & g )" Sets the Active color group to \fIg\fR. .PP See also active(), setDisabled(), setInactive(), and TQColorGroup. -.SH "void QPalette::setBrush ( ColorGroup gr, TQColorGroup::ColorRole r, const TQBrush & b )" +.SH "void TQPalette::setBrush ( ColorGroup gr, TQColorGroup::ColorRole r, const TQBrush & b )" Sets the brush in color group \fIgr\fR, used for color role \fIr\fR, to \fIb\fR. .PP See also brush(), setColor(), and TQColorGroup::ColorRole. -.SH "void QPalette::setBrush ( TQColorGroup::ColorRole r, const TQBrush & b )" +.SH "void TQPalette::setBrush ( TQColorGroup::ColorRole r, const TQBrush & b )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the brush in for color role \fIr\fR in all three color groups to \fIb\fR. .PP See also brush(), setColor(), TQColorGroup::ColorRole, active(), inactive(), and disabled(). -.SH "void QPalette::setColor ( ColorGroup gr, TQColorGroup::ColorRole r, const TQColor & c )" +.SH "void TQPalette::setColor ( ColorGroup gr, TQColorGroup::ColorRole r, const TQColor & c )" Sets the brush in color group \fIgr\fR, used for color role \fIr\fR, to the solid color \fIc\fR. .PP See also setBrush(), color(), and TQColorGroup::ColorRole. .PP Example: themes/themes.cpp. -.SH "void QPalette::setColor ( TQColorGroup::ColorRole r, const TQColor & c )" +.SH "void TQPalette::setColor ( TQColorGroup::ColorRole r, const TQColor & c )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Sets the brush color used for color role \fIr\fR to color \fIc\fR in all three color groups. .PP See also color(), setBrush(), and TQColorGroup::ColorRole. -.SH "void QPalette::setDisabled ( const TQColorGroup & g )" +.SH "void TQPalette::setDisabled ( const TQColorGroup & g )" Sets the Disabled color group to \fIg\fR. .PP See also disabled(), setActive(), and setInactive(). -.SH "void QPalette::setInactive ( const TQColorGroup & g )" +.SH "void TQPalette::setInactive ( const TQColorGroup & g )" Sets the Inactive color group to \fIg\fR. .PP See also active(), setDisabled(), setActive(), and TQColorGroup. .SH RELATED FUNCTION DOCUMENTATION -.SH "TQDataStream & operator<< ( TQDataStream & s, const QPalette & p )" +.SH "TQDataStream & operator<< ( TQDataStream & s, const TQPalette & p )" Writes the palette, \fIp\fR to the stream \fIs\fR and returns a reference to the stream. .PP See also Format of the TQDataStream operators. -.SH "TQDataStream & operator>> ( TQDataStream & s, QPalette & p )" +.SH "TQDataStream & operator>> ( TQDataStream & s, TQPalette & p )" Reads a palette from the stream, \fIs\fR into the palette \fIp\fR, and returns a reference to the stream. .PP See also Format of the TQDataStream operators. .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqpalette.html +.BR http://doc.trolltech.com/tqpalette.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |