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

#include <home_widget.h>

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

Public Slots

void paintEvent (QPaintEvent *event) override
void initializeBackgroundFromSource ()
void onBackgroundShuffleFrequencyChanged ()
void updateBackgroundProperties ()
void updateButtonsToBackgroundColor ()
QGroupBox * createButtons ()
void updateConnectButton (const ClientStatus status)

Public Member Functions

 HomeWidget (QWidget *parent, TabSupervisor *tabSupervisor)
void updateRandomCard ()
QPair< QColor, QColor > extractDominantColors (const QPixmap &pixmap)

Private Attributes

QGridLayout * layout
QTimer * cardChangeTimer
TabSupervisortabSupervisor
QPixmap background
CardInfoPictureArtCropWidgetbackgroundSourceCard = nullptr
DeckLoader * backgroundSourceDeck
QPixmap overlay
QPair< QColor, QColor > gradientColors
HomeStyledButtonconnectButton

Constructor & Destructor Documentation

◆ HomeWidget()

HomeWidget::HomeWidget ( QWidget * parent,
TabSupervisor * tabSupervisor )
Here is the call graph for this function:

Member Function Documentation

◆ createButtons

QGroupBox * HomeWidget::createButtons ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractDominantColors()

QPair< QColor, QColor > HomeWidget::extractDominantColors ( const QPixmap & pixmap)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializeBackgroundFromSource

void HomeWidget::initializeBackgroundFromSource ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onBackgroundShuffleFrequencyChanged

void HomeWidget::onBackgroundShuffleFrequencyChanged ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintEvent

void HomeWidget::paintEvent ( QPaintEvent * event)
overrideslot

◆ updateBackgroundProperties

void HomeWidget::updateBackgroundProperties ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateButtonsToBackgroundColor

void HomeWidget::updateButtonsToBackgroundColor ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateConnectButton

void HomeWidget::updateConnectButton ( const ClientStatus status)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateRandomCard()

void HomeWidget::updateRandomCard ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ background

QPixmap HomeWidget::background
private

◆ backgroundSourceCard

CardInfoPictureArtCropWidget* HomeWidget::backgroundSourceCard = nullptr
private

◆ backgroundSourceDeck

DeckLoader* HomeWidget::backgroundSourceDeck
private

◆ cardChangeTimer

QTimer* HomeWidget::cardChangeTimer
private

◆ connectButton

HomeStyledButton* HomeWidget::connectButton
private

◆ gradientColors

QPair<QColor, QColor> HomeWidget::gradientColors
private

◆ layout

QGridLayout* HomeWidget::layout
private

◆ overlay

QPixmap HomeWidget::overlay
private

◆ tabSupervisor

TabSupervisor* HomeWidget::tabSupervisor
private

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