Stellarium  26.3
Public Member Functions
LeftStelBar Class Reference

Public Member Functions

 LeftStelBar (QGraphicsItem *parent)
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
QRectF boundingRect () const override
 
void addButton (StelButton *button)
 
QRectF boundingRectNoHelpLabel () const
 
void setColor (const QColor &c)
 Set the color for all the sub elements.
 
void setBarAtRight (bool b)
 Set whether the bar is at the right edge of the screen. More...
 
void setBarAtTop (bool b)
 Set whether the bar is docked at the top edge of the screen. More...
 

Member Function Documentation

◆ setBarAtRight()

void LeftStelBar::setBarAtRight ( bool  b)
inline

Set whether the bar is at the right edge of the screen.

This is used to decide whether the help label is displayed to the left or right of the buttons.

◆ setBarAtTop()

void LeftStelBar::setBarAtTop ( bool  b)

Set whether the bar is docked at the top edge of the screen.

This is used to compute the gap to the outer horizontal edge of the bar.