NDEVR
API Documentation
DialIcon

An icon along with defined behavior describing how that icon should interact with a parent QCustomDial object. More...

Collaboration diagram for DialIcon:
[legend]

Public Member Functions

void setImageID (const StringView &id)
 Sets the icon image by resource ID and clears cached pixmaps.

Public Attributes

bool fullsize = false
 Whether the icon should fill the entire dial area.
String image_id
 The resource identifier for the icon image.
bool make_shadow = false
 Whether to render a drop shadow behind the icon.
QPixmap pixmap
 The loaded pixmap for the icon.
bool rotate = false
 Whether the icon should rotate with the dial value.
Angle< fltp08rotation_offset = Angle<fltp08>(0)
 An angular offset applied to the icon rotation.
QPixmap scaled_pixmap
 Cached scaled pixmap to avoid redundant scaling when size has not changed.
fltp08 size = 1.0
 A size multiplier for the icon relative to the dial.

Detailed Description

An icon along with defined behavior describing how that icon should interact with a parent QCustomDial object.


Definition at line 43 of file QCustomDial.h.

Member Function Documentation

◆ setImageID()

void DialIcon::setImageID ( const StringView & id)
inline

Sets the icon image by resource ID and clears cached pixmaps.

Parameters
[in]idThe resource identifier for the new image.

Definition at line 57 of file QCustomDial.h.

References image_id, pixmap, and scaled_pixmap.


The documentation for this struct was generated from the following file: