wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
InputRotary.cpp File Reference
#include "App/Element/GraphicElements/InputRotary.h"
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QSvgRenderer>
#include "App/Element/ElementFactory.h"
#include "App/Element/ElementInfo.h"
#include "App/IO/Serialization.h"
#include "App/IO/SerializationContext.h"
#include "App/IO/VersionInfo.h"
#include "App/Wiring/Port.h"
Include dependency graph for InputRotary.cpp:

Go to the source code of this file.

Classes

struct  ElementInfo< InputRotary >

Functions

static QSvgRenderer & rotaryArrowRenderer ()

Function Documentation

◆ rotaryArrowRenderer()

QSvgRenderer & rotaryArrowRenderer ( )
static

Shared, lazily-constructed vector renderer for the active-position arrow – drawn directly in paint() so it stays crisp at any zoom instead of blitting a fixed-resolution pixmap. The arrow asset is a fixed built-in (never user-customizable, unlike the dial face), so one renderer suffices for every InputRotary instance. GUI-thread only, like pixmapCache().

Definition at line 185 of file InputRotary.cpp.

Referenced by InputRotary::paint().