C
Constraints Struct
struct SafeRenderer::ConstraintsStruct that holds various constraint values for Qt Safe Renderer. More...
Header: | #include <Constraints> |
Since: | QtSafeRenderer 1.0 |
This struct was introduced in QtSafeRenderer 1.0.
Static Public Members
const SafeRenderer::quint32 | ANIMATION_DATA_READ_BUFFER |
const SafeRenderer::quint32 | ANIMATION_TIMER_TICK_IN_MS |
const SafeRenderer::quint32 | BITMAPDATA_HEADER_SIZE_V3 |
const SafeRenderer::quint32 | BITMAPDATA_HEADER_SIZE_V4 |
const SafeRenderer::quint32 | FRAME_BUFFERS |
const SafeRenderer::quint32 | LAYOUTDATA_HEADER_SIZE |
const SafeRenderer::quint32 | LAYOUTDATA_SIZE_V1 |
const SafeRenderer::quint32 | LAYOUTDATA_SIZE_V2 |
const SafeRenderer::quint32 | LAYOUTDATA_SIZE_V3 |
const SafeRenderer::quint32 | MAX_AMOUNT_OF_BITMAPS |
const SafeRenderer::quint32 | MAX_ANIMATION_STEPS |
const SafeRenderer::quint32 | MAX_FILENAME_LEN |
const SafeRenderer::quint32 | MAX_ITEM_COUNT |
const SafeRenderer::quint32 | MAX_LAYOUT_SIZE |
const size_t | MAX_LEN_OF_TEXT |
const SafeRenderer::quint32 | MAX_LEN_OF_TEXTLAYOUT_BUFFER |
const SafeRenderer::quint32 | MAX_NUM_OF_ANIMATIONS_PER_ITEM |
const SafeRenderer::quint32 | MAX_NUM_OF_CONNECTIONS |
const SafeRenderer::quint32 | MAX_NUM_OF_FONTS |
const SafeRenderer::quint32 | MAX_NUM_OF_LAYOUTS |
const SafeRenderer::quint32 | MAX_NUM_OF_STATES |
const SafeRenderer::quint32 | MEMORY_POOL_SIZE |
Detailed Description
A struct that holds various constraint values for Qt Safe Renderer. Some of the constraint values can be changed in qsafeconstraints.h.
Member Variable Documentation
const SafeRenderer::quint32 Constraints::ANIMATION_DATA_READ_BUFFER
The size of the animation data read buffer. The default value is 100U*1024U. 100 kilobytes is left for the animation data.
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::ANIMATION_TIMER_TICK_IN_MS
The animation timer tick in milliseconds. The default value is 16U.
To achieve same duration as defined in the QML description, the tick timer and frames per second must match. You can set the value of SAFE_TARGET_FPS
on a project file or via a command line option. For more information, see Enabling Qt Safe Layout Tool.
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::BITMAPDATA_HEADER_SIZE_V3
The size of the V3 header data in the safe bitmap file. The default value is 20U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::BITMAPDATA_HEADER_SIZE_V4
The size of the V4 header data in the safe bitmap file. The default value is 24U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::FRAME_BUFFERS
The amount of allocated frame buffers.
This variable is used with OpenWFD adaptation. It is used to enable the double-buffering in the rendering backend.
This value can be changed in qsafeconstraints.h
. The possible values are 1 or 2.
const SafeRenderer::quint32 Constraints::LAYOUTDATA_HEADER_SIZE
The size of the header data in the safe layout file. The default value is 24U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::LAYOUTDATA_SIZE_V1
The size of the internal structure of the layout data in bytes. The default value is 272U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::LAYOUTDATA_SIZE_V2
The size of the internal structure of the layout data in bytes. The default value is 276U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::LAYOUTDATA_SIZE_V3
The size of the internal structure of the layout data in bytes. The default value is 284U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::MAX_AMOUNT_OF_BITMAPS
The maximum amount of bitmaps. The default value is 1024U.
This value can be changed in qsafeconstraints.h.
const SafeRenderer::quint32 Constraints::MAX_ANIMATION_STEPS
The maximum number of steps in the animation. The default value is 64U.
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::MAX_FILENAME_LEN
The maximum length of the file name. The default value is 256U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::MAX_ITEM_COUNT
The maximum amount of the layout items. The default value is 128U.
This value can be changed in qsafeconstraints.h.
const SafeRenderer::quint32 Constraints::MAX_LAYOUT_SIZE
The maximum size of the layout's x-coordinate and y-coordinate values. The default value is 4096U.
This value should not be changed.
const size_t Constraints::MAX_LEN_OF_TEXT
The maximum length of text. The default value is 256U.
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::MAX_LEN_OF_TEXTLAYOUT_BUFFER
The maximum length of a text layout buffer. The default value is 1024U.
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::MAX_NUM_OF_ANIMATIONS_PER_ITEM
This value is used to reserve the array for the transitions data. The default value is a permutation of MAX_NUM_OF_STATES * amount of properties (x, y, opacity, sprite, color).
This value should not be changed.
const SafeRenderer::quint32 Constraints::MAX_NUM_OF_CONNECTIONS
The maximum amount of connections in the StateManager class. The default value is 256U.
This value should not be changed.
const SafeRenderer::quint32 Constraints::MAX_NUM_OF_FONTS
The maximum amount of fonts. The default value is 4U
This value can be changed in qsafeconstraints.h
.
const SafeRenderer::quint32 Constraints::MAX_NUM_OF_LAYOUTS
The maximum amount of the safe layouts that can be loaded in Safe Renderer.
This value can be changed in qsafeconstraints.h
. Default value is 2.
const SafeRenderer::quint32 Constraints::MAX_NUM_OF_STATES
The maximum amount of states that can be handled in Safe Renderer. The default value is 8U.
Note: The implicit default state consumes always one state.
This value can be changed in qsafeconstraints.h.
const SafeRenderer::quint32 Constraints::MEMORY_POOL_SIZE
The size of the memory that is used for storing bitmap and font data assets. The default value is seven megabytes.
This value can be changed in qsafeconstraints.h
.
Available under certain Qt licenses.
Find out more.