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

libtdegames

Public Slots | Public Member Functions | Protected Slots | List of all members
KGameLCDClock Class Reference

#include <kgamelcd.h>

Inheritance diagram for KGameLCDClock:
KGameLCD

Public Slots

virtual void reset ()
 
virtual void stop ()
 
virtual void start ()
 
- Public Slots inherited from KGameLCD
void highlight ()
 
void displayInt (int value)
 

Public Member Functions

 KGameLCDClock (TQWidget *parent=0, const char *name=0)
 
uint seconds () const
 
TQString pretty () const
 
void setTime (uint seconds)
 
void setTime (const TQString &s)
 
- Public Member Functions inherited from KGameLCD
 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)
 

Protected Slots

virtual void timeoutClock ()
 

Detailed Description

This class is a digital clock widget.

It has a maximum duration of 3599 seconds (one hour) and it gets updated every second.

Since
3.2

Definition at line 127 of file kgamelcd.h.

Member Function Documentation

◆ pretty()

TQString KGameLCDClock::pretty ( ) const
Returns
the time as a string to be displayed: "mm:ss".

Definition at line 135 of file kgamelcd.cpp.

◆ reset

void KGameLCDClock::reset ( )
virtualslot

Stop the clock and reset it to zero.

Definition at line 147 of file kgamelcd.cpp.

◆ seconds()

uint KGameLCDClock::seconds ( ) const
Returns
the total number of seconds elapsed.

Definition at line 165 of file kgamelcd.cpp.

◆ setTime() [1/2]

void KGameLCDClock::setTime ( uint  seconds)

Set the time.

Definition at line 170 of file kgamelcd.cpp.

◆ setTime() [2/2]

void KGameLCDClock::setTime ( const TQString &  s)

Set the time (format should be "mm:ss").

Definition at line 178 of file kgamelcd.cpp.

◆ start

void KGameLCDClock::start ( )
virtualslot

Start the clock from the current time.

Definition at line 155 of file kgamelcd.cpp.

◆ stop

void KGameLCDClock::stop ( )
virtualslot

Stop the clock but do not reset it to zero.

Definition at line 160 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.