Skip to main content

Module drawing_properties

Module drawing_properties 

Source
Expand description

Drawing properties dialog - modal popup for editing drawing properties.

Provides a properties dialog for drawings with tabs:

  • Style: Color, line width, line style, fill options
  • Inputs: Saved tool-specific levels, sizing and calculation settings
  • Coordinates: Price and time points
  • Visibility: Timeframe visibility settings
  • Text: Labels and font settings

Open with DrawingPropertiesDialog::open_for_chart and call DrawingPropertiesDialog::show_and_apply each frame to apply validated edits in the library. Hosts persist crate::drawings::DrawingManager::tool_defaults and may attach storage to DrawingPropertiesDialog::templates. Delete and Clone are in the drawing context menu.

Structs§

CoordinatePoint
Editable coordinate fields. Times are UTC and retain subsecond precision.
CoordinatesState
Coordinates staged independently of the live drawing until Apply.
DrawingId
Unique identifier for a drawing
DrawingPropertiesConfig
Configuration for the drawing properties dialog
DrawingPropertiesDialog
Drawing properties dialog
DrawingProps
Drawing properties that can be edited

Enums§

DrawingPropertiesAction
Actions from the drawing properties dialog
PropertiesTab
Tab selection for drawing properties