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

#include <mana_symbol_widget.h>

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

Public Slots

void resizeEvent (QResizeEvent *event) override
void mousePressEvent (QMouseEvent *event) override

Signals

void colorToggled (QChar symbol, bool isActive)

Public Member Functions

 ManaSymbolWidget (QWidget *parent, QString symbol, bool isActive=true, bool mayBeToggled=false)
void toggleSymbol ()
void setColorActive (bool active)
void updateOpacity ()
bool isColorActive () const
QString getSymbol () const
QChar getSymbolChar () const
void loadManaIcon ()

Private Attributes

QString symbol
QPixmap manaIcon
bool isActive
bool mayBeToggled
QGraphicsOpacityEffect * opacityEffect

Constructor & Destructor Documentation

◆ ManaSymbolWidget()

ManaSymbolWidget::ManaSymbolWidget ( QWidget * parent,
QString symbol,
bool isActive = true,
bool mayBeToggled = false )
Here is the call graph for this function:

Member Function Documentation

◆ colorToggled

void ManaSymbolWidget::colorToggled ( QChar symbol,
bool isActive )
signal
Here is the caller graph for this function:

◆ getSymbol()

QString ManaSymbolWidget::getSymbol ( ) const
inlinenodiscard

◆ getSymbolChar()

QChar ManaSymbolWidget::getSymbolChar ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ isColorActive()

bool ManaSymbolWidget::isColorActive ( ) const
inlinenodiscard

◆ loadManaIcon()

void ManaSymbolWidget::loadManaIcon ( )
Here is the caller graph for this function:

◆ mousePressEvent

void ManaSymbolWidget::mousePressEvent ( QMouseEvent * event)
overrideslot
Here is the call graph for this function:

◆ resizeEvent

void ManaSymbolWidget::resizeEvent ( QResizeEvent * event)
overrideslot

◆ setColorActive()

void ManaSymbolWidget::setColorActive ( bool active)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleSymbol()

void ManaSymbolWidget::toggleSymbol ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateOpacity()

void ManaSymbolWidget::updateOpacity ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ isActive

bool ManaSymbolWidget::isActive
private

◆ manaIcon

QPixmap ManaSymbolWidget::manaIcon
private

◆ mayBeToggled

bool ManaSymbolWidget::mayBeToggled
private

◆ opacityEffect

QGraphicsOpacityEffect* ManaSymbolWidget::opacityEffect
private

◆ symbol

QString ManaSymbolWidget::symbol
private

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