Skip to main content

Module ui

Module ui 

Source
Expand description

Chart toolbars, panels, dialogs and trading controls for host applications.

Place the components in your egui layout and apply their returned actions to the chart or host services. The components share crate::ui_kit controls and the active theme; market data, account connections and storage come from the host.

Re-exports§

pub use app_state::ChartAppState;
pub use app_state::Control;
pub use replay::floating as floating_replay_control;
pub use replay::status as replay_status;

Modules§

app_state
Application state trait for UI synchronization.
chart_controls
Pane maximize, restore and close buttons.
connection_status
Connection status icon with an optional text label.
context_menu
Chart context menu
dialogs
Modal dialogs.
drawing_toolbar
Categorized drawing tool picker and drawing utility controls.
export
Chart export functionality for screenshots and saving charts
financials
A company’s financials in place of the price chart: a chart of one row over the periods and the table of every row, page by page, from figures the host supplies.
floating_toolbar
Floating Selection Toolbar
icons
Icon size presets.
ideas
Ideas panel: a composer and a browsing feed for ideas and short posts.
model
Domain model shared by the application UI components.
multi_chart
Multi-chart layout and synchronization types.
profile
Profile details and follow controls for a host’s ProfileDirectory.
replay
Historical bar replay controls, session state and cursor management.
strategy_report
A replaceable strategy report, independent of chart navigation and host storage.
study_editor
Study editor panel: an editing surface for host-owned study source.
symbol_header
Symbol Header Widget
timeframe_toolbar
Timeframe toolbar
top_toolbar
Upper toolbar module
trading
Trading from the chart through the host’s Broker: the broker picker, the order ticket, the Buy and Sell buttons, depth ladder and the account panel. The broker holds the account; this module shows what it pushes and sends the orders the user confirms.
widget_bar
Widget bar

Functions§

trade_profile_menu
Shows merge/split commands for index inside a host menu. split_at is a bar boundary selected by the user, such as the hovered bar. Returns whether the ranges changed; rebuild the profiles with crate::studies::trade_profiles after a change.