4#include "MRViewer/exports.h"
BasicUiRenderTask()=default
BasicUiRenderTask & operator=(const BasicUiRenderTask &)=default
virtual void onClick()=0
This is called when the click happens.
BasicClickableRectUiRenderTask()=default
ImVec2 clickableCornerA
Set those to set the clickable area. Zero both to hovers and clicks.
Definition MRRenderClickableRect.h:34
bool isActive
Definition MRRenderClickableRect.h:43
virtual ~BasicClickableRectUiRenderTask()=default
BasicClickableRectUiRenderTask(const BasicClickableRectUiRenderTask &other)
Don't assign the memebers (except the base), because we want to preserve the state across frames.
Definition MRRenderClickableRect.h:22
ImVec2 clickableCornerB
Definition MRRenderClickableRect.h:35
bool isHovered
Read these to decide how to render.
Definition MRRenderClickableRect.h:42
bool enabled
Definition MRRenderClickableRect.h:39
void earlyBackwardPass(const BackwardPassParams &backParams) override
This is what ultimately calls onClick() if the certain conditions hold.
BasicClickableRectUiRenderTask & operator=(const BasicClickableRectUiRenderTask &other)
Definition MRRenderClickableRect.h:23
@ other
Angle, normally float. Measure in radians.
Definition MRFeatureObject.h:27
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRIRenderObject.h:84