34#include <NDEVR/TranslatedString.h>
35#include <NDEVR/RGBColor.h>
36#include <NDEVR/TimeSpan.h>
41#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
42typedef QEvent ButtonEnterEvent;
44typedef QEnterEvent ButtonEnterEvent;
47class QStyleOptionToolButton;
54 template<
class t_type>
56 template<
class t_type>
67 class NDEVR_WIDGETS_API
Button :
public QToolButton
69 friend class HoverButtonIconWatch;
110 Button(
const std::function<
void(
Button*)>& on_click, QWidget* parent =
nullptr);
512 QString autoWrapText(
const QFontMetrics& metrics);
517 String getTooltip()
const;
526 bool ignorePress()
const;
536 void _setIcon(
const StringView& icon,
bool force =
false);
550 void _defaultRender(QStylePainter* p, QStyleOptionToolButton* tool_button, QIcon::State state, QIcon::Mode mode,
bool draw_backgound,
bool is_default);
The default object to store data of any type that should persist through sessions of the application.
A ResourceListener which will always be executed on the main UI thread and can be tied to a Qt Object...
Represents a color in the RGB space with optional alpha transparency.
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
Stores a time span, or difference between two times, with an optional start time.
Represents a timestamp with utilities for manipulation and conversion.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
TooltipType
Enums for program-generated tooltips.
Stores a generic option of any type as well as some information about how the user might interact wit...