C
Monitor: Verifying the Rendering Output
/**************************************************************************** ** Copyright (C) 2025 The Qt Company Ltd. ** SPDX-License-Identifier: LicenseRef-Qt-Commercial ** ** This file is part of the Qt Safe Renderer module ****************************************************************************/#ifndef IMAGESTATEDATA_H #define IMAGESTATEDATA_H #include <QtSafeRenderer/qsafeglobal.h> typedef struct { const qchar *itemId; const qchar *state; } ItemState; typedef struct { const ItemState *states; /* array of indicator updates */ quint32 count; /* number of indicators */ quint32 delayMs; /* duration before next frame */ quint32 targetSpeed; /* target speed for this frame */ } FrameState; /* Helper macro to initialize a FrameState */ #define FRAME_STATE(array, delay, speed) \ { array, sizeof(array)/sizeof(ItemState), delay, speed } /* API from itemstatedata.cpp */ quint32 frameCount(void); const FrameState *getFrameState(quint32 index); #endif