Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PercentBarWidget Class Reference

#include <percent_bar_widget.h>

Inheritance diagram for PercentBarWidget:
[legend]
Collaboration diagram for PercentBarWidget:
[legend]

Public Member Functions

 PercentBarWidget (QWidget *parent, double initialValue)
void setValue (double newValue)
double value () const

Protected Member Functions

void paintEvent (QPaintEvent *event) override

Private Attributes

double valueToDisplay

Constructor & Destructor Documentation

◆ PercentBarWidget()

PercentBarWidget::PercentBarWidget ( QWidget * parent,
double initialValue )
explicit

Member Function Documentation

◆ paintEvent()

void PercentBarWidget::paintEvent ( QPaintEvent * event)
overrideprotected

◆ setValue()

void PercentBarWidget::setValue ( double newValue)
inline

◆ value()

double PercentBarWidget::value ( ) const
inline

Member Data Documentation

◆ valueToDisplay

double PercentBarWidget::valueToDisplay
private

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