Stellarium 0.12.3
List of all members | Public Member Functions
StelLoadingBar Class Reference

This class is used to display loading bar. More...

#include <StelLoadingBar.hpp>

Public Member Functions

 StelLoadingBar (const QString &splashTex, const QString &extraTextString="", float extraTextSize=30.f, float extraTextPosx=0.f, float extraTextPosy=0.f, int width=512, int height=512)
 Create and initialise the StelLoadingBar. More...
 
void draw (class StelRenderer *renderer)
 Draw the splashscreen. More...
 

Detailed Description

This class is used to display loading bar.

A StelLoadingBar has a progress bar whose value can be set after the creation of the StelLoadingBar, and a text display area, whose contents may also be modified after the creation of the StelLoadingBar. It can also have an image which is set at object creation time, and some static text (called extra text, which is set at object creation time. Stellarium's splash screen, visible when the program is first started, is a StelLoadingBar. The image is the logo for the project, the extra text is used to show the application name and version.

Definition at line 39 of file StelLoadingBar.hpp.

Constructor & Destructor Documentation

StelLoadingBar::StelLoadingBar ( const QString &  splashTex,
const QString &  extraTextString = "",
float  extraTextSize = 30.f,
float  extraTextPosx = 0.f,
float  extraTextPosy = 0.f,
int  width = 512,
int  height = 512 
)

Create and initialise the StelLoadingBar.

Parameters
splashTexthe file name of a texture to display with the StelLoadingBar.
extraTextStringextra text which does not change during the life. life of the StelLoadingBar. This is used for the application name and version when the StelLoadingBar is used as a splash screen.
extraTextSizethe size of the font used for the exta text.
extraTextPosxthe x position of the extra text.
extraTextPosythe y position of the extra text.
widththe width to use for the texture display.
heightthe height to use for the texture display.

Member Function Documentation

void StelLoadingBar::draw ( class StelRenderer renderer)

Draw the splashscreen.


The documentation for this class was generated from the following file: