CorePlotting::Interaction::RectangleInteractionConfig
CorePlotting::Interaction::RectangleInteractionConfig
Configuration for rectangle interaction behavior.
#include <RectangleInteractionController.hpp>
Public Attributes
| Name | |
|---|---|
| float | min_width Minimum rectangle width in canvas pixels. |
| float | min_height Minimum rectangle height in canvas pixels (0 = use full viewport height). |
| bool | constrain_to_x_axis |
| float | viewport_height Viewport height for full-height mode (set by widget). |
| bool | allow_edge_drag Whether edge dragging for modification is supported. |
| glm::vec4 | fill_color Default fill color for preview. |
| glm::vec4 | stroke_color Default stroke color for preview. |
| float | stroke_width Stroke width in pixels. |
Public Attributes Documentation
variable min_width
float min_width {1.0f};Minimum rectangle width in canvas pixels.
variable min_height
float min_height {0.0f};Minimum rectangle height in canvas pixels (0 = use full viewport height).
variable constrain_to_x_axis
bool constrain_to_x_axis {true};If true, height is fixed to span the full canvas (interval mode) If false, user can drag to define both width and height
variable viewport_height
float viewport_height {100.0f};Viewport height for full-height mode (set by widget).
variable allow_edge_drag
bool allow_edge_drag {true};Whether edge dragging for modification is supported.
variable fill_color
glm::vec4 fill_color {1.0f, 1.0f, 1.0f, 0.3f};Default fill color for preview.
variable stroke_color
glm::vec4 stroke_color {1.0f, 1.0f, 1.0f, 1.0f};Default stroke color for preview.
variable stroke_width
float stroke_width {2.0f};Stroke width in pixels.
Updated on 2026-11-13 at 20:25:42 +0000