MediaToolOptionsBar_Widget
MediaToolOptionsBar_Widget
Contextual tool options displayed above the horizontal ruler.
#include <MediaToolOptionsBar_Widget.hpp>
Inherits from QWidget
Public Functions
| Name | |
|---|---|
| MediaToolOptionsBar_Widget(QWidget * parent =[nullptr]) | |
| void | setState(MediaWidgetState * state) Bind to shared media widget state for tool option widgets. |
| void | setActiveTool(MediaToolId tool) Show options for the active canvas tool. |
| SelectToolOptions_Widget * | selectOptionsWidget() const Access Select tool options widget. |
| PenToolOptions_Widget * | penOptionsWidget() const Access Pen tool options widget. |
| EraserToolOptions_Widget * | eraserOptionsWidget() const Access Eraser tool options widget. |
| SmoothToolOptions_Widget * | smoothOptionsWidget() const Access Smooth tool options widget. |
| void | setMediaCoordinates(std::optional< MediaCoordinates > coords) Update the live media-space cursor readout. |
| QSize | sizeHint() const override |
Public Attributes
| Name | |
|---|---|
| int | kBarHeight |
| int | kCoordinateLabelWidth |
Public Functions Documentation
function MediaToolOptionsBar_Widget
explicit MediaToolOptionsBar_Widget(
QWidget * parent =nullptr
)function setState
void setState(
MediaWidgetState * state
)Bind to shared media widget state for tool option widgets.
Parameters:
- state State object (non-owning)
function setActiveTool
void setActiveTool(
MediaToolId tool
)Show options for the active canvas tool.
Parameters:
- tool Active tool from the left tool strip
function selectOptionsWidget
inline SelectToolOptions_Widget * selectOptionsWidget() constAccess Select tool options widget.
Return: Select options widget (never null after construction)
function penOptionsWidget
inline PenToolOptions_Widget * penOptionsWidget() constAccess Pen tool options widget.
Return: Pen options widget (never null after construction)
function eraserOptionsWidget
inline EraserToolOptions_Widget * eraserOptionsWidget() constAccess Eraser tool options widget.
Return: Eraser options widget (never null after construction)
function smoothOptionsWidget
inline SmoothToolOptions_Widget * smoothOptionsWidget() constAccess Smooth tool options widget.
Return: Smooth options widget (never null after construction)
function setMediaCoordinates
void setMediaCoordinates(
std::optional< MediaCoordinates > coords
)Update the live media-space cursor readout.
Parameters:
- coords Current cursor position in media pixels, or nullopt when the cursor left the canvas
function sizeHint
QSize sizeHint() const overridePublic Attributes Documentation
variable kBarHeight
static int kBarHeight = 28;variable kCoordinateLabelWidth
static int kCoordinateLabelWidth = 130;Updated on 2026-11-13 at 20:25:40 +0000