Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

ScreenLabel Class Reference

Used to create user labels which are bound to a fixed point on the screen. More...

#include <LabelMgr.hpp>

Inherits StelLabel.

List of all members.

Public Member Functions

 ScreenLabel (const QString &text, int x, int y, StelFont *font, Vec3f color)
virtual bool draw (StelCore *core, const StelPainter &sPainter)


Detailed Description

Used to create user labels which are bound to a fixed point on the screen.


Constructor & Destructor Documentation

ScreenLabel::ScreenLabel ( const QString &  text,
int  x,
int  y,
StelFont *  font,
Vec3f  color 
)

Constructor of a SkyLabel which is to be displayed at a fixed position on the screen.

Parameters:
text the text for the label
x the x-position on the screen (pixels from the left side)
y the y-position on the screen (pixels from the bottom side)
font the font to use
color the color for the label


Member Function Documentation

virtual bool ScreenLabel::draw ( StelCore core,
const StelPainter sPainter 
) [virtual]

draw the label on the sky

Parameters:
core the StelCore object
sPainter the StelPainter to use for drawing operations


Generated on Mon Feb 2 17:23:48 2009 for Stellarium by  doxygen 1.5.5