QtCraft API C++ classes QML types Handbook

QcPreviewActivity::State Struct

struct QcPreviewActivity::State

What the preview item knows about itself and its window. More...

Header: #include <clientcore/preview/QcPreviewActivity.h>

Public Variables

bool forceActive
bool hasSize
bool hasSource
bool paused
bool visible
QcPreviewActivity::Window window

Detailed Description

Member Variable Documentation

bool State::forceActive

Benchmark hook QTCRAFT_PREVIEW_ACTIVE=1: an inactive window (scripted, background or offscreen run) counts as active, so the preview animates as in a played game and its costs can be measured. Paused and off still win.

bool State::hasSize

Has a size above zero.

bool State::hasSource

Something to draw from (QcPreviewSource).

bool State::paused

Covered by another screen (the main menu's card while the character screen is open).

bool State::visible

Effectively visible: the item and all its parents.

QcPreviewActivity::Window State::window

State of the window.