• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

Public Slots | Public Member Functions | List of all members
KGameLCD Class Reference

#include <kgamelcd.h>

Inheritance diagram for KGameLCD:
KGameLCDClock

Public Slots

void highlight ()
 
void displayInt (int value)
 

Public Member Functions

 KGameLCD (uint nbDigits, TQWidget *parent=0, const char *name=0)
 
void setDefaultBackgroundColor (const TQColor &color)
 
void setDefaultColor (const TQColor &color)
 
void setHighlightColor (const TQColor &color)
 
void setLeadingString (const TQString &s)
 
void setHighlightTime (uint time)
 
void resetColor ()
 
void setColor (const TQColor &color)
 

Detailed Description

This class is a visually enhanced TQLCDNumber:

  • It can show an additional string before the integer being displayed.
  • Its foreground and background colors can easily be modified.
  • It can be highlighted for a short time.
Since
3.2

Definition at line 42 of file kgamelcd.h.

Member Function Documentation

◆ displayInt

void KGameLCD::displayInt ( int  value)
slot

Display the given integer with the (optionnal) leading string.

Note: we cannot use display(int) since TQLCDNumber::display is not virtual... And you cannot use TQLCDNumber::intValue() to retrieve the given value.

Definition at line 94 of file kgamelcd.cpp.

◆ highlight

void KGameLCD::highlight ( )
slot

Highlight the LCD with the TQColorGourp::HighlightedText color for a small time (setHighlightTime).

Definition at line 100 of file kgamelcd.cpp.

◆ resetColor()

void KGameLCD::resetColor ( )

Reset the foreground color to the default one.

Definition at line 81 of file kgamelcd.cpp.

◆ setColor()

void KGameLCD::setColor ( const TQColor &  color)

Set the foreground color.

Definition at line 86 of file kgamelcd.cpp.

◆ setDefaultBackgroundColor()

void KGameLCD::setDefaultBackgroundColor ( const TQColor &  color)

Set the default background color.

Definition at line 50 of file kgamelcd.cpp.

◆ setDefaultColor()

void KGameLCD::setDefaultColor ( const TQColor &  color)

Set the default foreground color.

Definition at line 57 of file kgamelcd.cpp.

◆ setHighlightColor()

void KGameLCD::setHighlightColor ( const TQColor &  color)

Set highlight color.

Definition at line 65 of file kgamelcd.cpp.

◆ setHighlightTime()

void KGameLCD::setHighlightTime ( uint  time)

Set the highlight duration in milliseconds.

The default value is 800 milliseconds.

Definition at line 76 of file kgamelcd.cpp.

◆ setLeadingString()

void KGameLCD::setLeadingString ( const TQString &  s)

Set the string that will be displayed before the integer number to be displayed.

By default this string is null.

Definition at line 70 of file kgamelcd.cpp.


The documentation for this class was generated from the following files:
  • kgamelcd.h
  • kgamelcd.cpp

libtdegames

Skip menu "libtdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.8.13
This website is maintained by Timothy Pearson.