Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
HomeTabButtonColor Namespace Reference

Classes

struct  Entry

Enumerations

enum  Source { Automatic , FromBackground }
 Where to get the colors for the home tab buttons from. More...

Functions

QList< Entryall ()
Source intToSource (int value)

Enumeration Type Documentation

◆ Source

Where to get the colors for the home tab buttons from.

Enumerator
Automatic 

Extract color from background, or use theme color if no background.

FromBackground 

Always extract color from background.

Function Documentation

◆ all()

QList< Entry > HomeTabButtonColor::all ( )
inline
Here is the caller graph for this function:

◆ intToSource()

Source HomeTabButtonColor::intToSource ( int value)
inline

Safely converts an int into the corresponding Source.

Parameters
valueThe int value
Returns
The Source. Returns Source::Automatic if the value is not within range
Here is the caller graph for this function: