diff --git a/crates/xframe-demo/examples/GtkAboutDialog.rs b/crates/xframe-demo/examples/GtkAboutDialog.rs new file mode 100644 index 0000000..fa4e70e --- /dev/null +++ b/crates/xframe-demo/examples/GtkAboutDialog.rs @@ -0,0 +1,21 @@ +//! GtkAboutDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAboutDialog +//! It opens an 800x600 window showing one GtkAboutDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAboutDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAboutDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAboutDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAccelLabel.rs b/crates/xframe-demo/examples/GtkAccelLabel.rs new file mode 100644 index 0000000..affe2de --- /dev/null +++ b/crates/xframe-demo/examples/GtkAccelLabel.rs @@ -0,0 +1,21 @@ +//! GtkAccelLabel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAccelLabel +//! It opens an 800x600 window showing one GtkAccelLabel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAccelLabel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAccelLabel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAccelLabel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkActionBar.rs b/crates/xframe-demo/examples/GtkActionBar.rs new file mode 100644 index 0000000..3bde650 --- /dev/null +++ b/crates/xframe-demo/examples/GtkActionBar.rs @@ -0,0 +1,21 @@ +//! GtkActionBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkActionBar +//! It opens an 800x600 window showing one GtkActionBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkActionBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkActionBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkActionBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAppChooserButton.rs b/crates/xframe-demo/examples/GtkAppChooserButton.rs new file mode 100644 index 0000000..0800fb3 --- /dev/null +++ b/crates/xframe-demo/examples/GtkAppChooserButton.rs @@ -0,0 +1,21 @@ +//! GtkAppChooserButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAppChooserButton +//! It opens an 800x600 window showing one GtkAppChooserButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAppChooserButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAppChooserButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAppChooserButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAppChooserDialog.rs b/crates/xframe-demo/examples/GtkAppChooserDialog.rs new file mode 100644 index 0000000..5b5916a --- /dev/null +++ b/crates/xframe-demo/examples/GtkAppChooserDialog.rs @@ -0,0 +1,21 @@ +//! GtkAppChooserDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAppChooserDialog +//! It opens an 800x600 window showing one GtkAppChooserDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAppChooserDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAppChooserDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAppChooserDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAppChooserWidget.rs b/crates/xframe-demo/examples/GtkAppChooserWidget.rs new file mode 100644 index 0000000..97b2dee --- /dev/null +++ b/crates/xframe-demo/examples/GtkAppChooserWidget.rs @@ -0,0 +1,21 @@ +//! GtkAppChooserWidget — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAppChooserWidget +//! It opens an 800x600 window showing one GtkAppChooserWidget widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAppChooserWidget")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAppChooserWidget", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAppChooserWidget example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkApplicationWindow.rs b/crates/xframe-demo/examples/GtkApplicationWindow.rs new file mode 100644 index 0000000..2f4ce8c --- /dev/null +++ b/crates/xframe-demo/examples/GtkApplicationWindow.rs @@ -0,0 +1,21 @@ +//! GtkApplicationWindow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkApplicationWindow +//! It opens an 800x600 window showing one GtkApplicationWindow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkApplicationWindow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkApplicationWindow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkApplicationWindow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAspectFrame.rs b/crates/xframe-demo/examples/GtkAspectFrame.rs new file mode 100644 index 0000000..454c687 --- /dev/null +++ b/crates/xframe-demo/examples/GtkAspectFrame.rs @@ -0,0 +1,21 @@ +//! GtkAspectFrame — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAspectFrame +//! It opens an 800x600 window showing one GtkAspectFrame widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAspectFrame")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAspectFrame", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAspectFrame example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkAssistant.rs b/crates/xframe-demo/examples/GtkAssistant.rs new file mode 100644 index 0000000..d4dfaf3 --- /dev/null +++ b/crates/xframe-demo/examples/GtkAssistant.rs @@ -0,0 +1,21 @@ +//! GtkAssistant — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkAssistant +//! It opens an 800x600 window showing one GtkAssistant widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkAssistant")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkAssistant", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkAssistant example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkBox.rs b/crates/xframe-demo/examples/GtkBox.rs new file mode 100644 index 0000000..e0e9b2b --- /dev/null +++ b/crates/xframe-demo/examples/GtkBox.rs @@ -0,0 +1,21 @@ +//! GtkBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkBox +//! It opens an 800x600 window showing one GtkBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkButtonBox.rs b/crates/xframe-demo/examples/GtkButtonBox.rs new file mode 100644 index 0000000..f2036fe --- /dev/null +++ b/crates/xframe-demo/examples/GtkButtonBox.rs @@ -0,0 +1,21 @@ +//! GtkButtonBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkButtonBox +//! It opens an 800x600 window showing one GtkButtonBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkButtonBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkButtonBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkButtonBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkCellView.rs b/crates/xframe-demo/examples/GtkCellView.rs new file mode 100644 index 0000000..801add2 --- /dev/null +++ b/crates/xframe-demo/examples/GtkCellView.rs @@ -0,0 +1,21 @@ +//! GtkCellView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkCellView +//! It opens an 800x600 window showing one GtkCellView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkCellView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkCellView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkCellView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkCenterBox.rs b/crates/xframe-demo/examples/GtkCenterBox.rs new file mode 100644 index 0000000..68aacc0 --- /dev/null +++ b/crates/xframe-demo/examples/GtkCenterBox.rs @@ -0,0 +1,21 @@ +//! GtkCenterBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkCenterBox +//! It opens an 800x600 window showing one GtkCenterBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkCenterBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkCenterBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkCenterBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkCheckButton.rs b/crates/xframe-demo/examples/GtkCheckButton.rs new file mode 100644 index 0000000..6c4cd12 --- /dev/null +++ b/crates/xframe-demo/examples/GtkCheckButton.rs @@ -0,0 +1,21 @@ +//! GtkCheckButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkCheckButton +//! It opens an 800x600 window showing one GtkCheckButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkCheckButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkCheckButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkCheckButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkCheckMenuItem.rs b/crates/xframe-demo/examples/GtkCheckMenuItem.rs new file mode 100644 index 0000000..cf5c430 --- /dev/null +++ b/crates/xframe-demo/examples/GtkCheckMenuItem.rs @@ -0,0 +1,21 @@ +//! GtkCheckMenuItem — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkCheckMenuItem +//! It opens an 800x600 window showing one GtkCheckMenuItem widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkCheckMenuItem")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkCheckMenuItem", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkCheckMenuItem example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkColorButton.rs b/crates/xframe-demo/examples/GtkColorButton.rs new file mode 100644 index 0000000..20785ff --- /dev/null +++ b/crates/xframe-demo/examples/GtkColorButton.rs @@ -0,0 +1,21 @@ +//! GtkColorButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkColorButton +//! It opens an 800x600 window showing one GtkColorButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkColorButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkColorButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkColorButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkColorChooserDialog.rs b/crates/xframe-demo/examples/GtkColorChooserDialog.rs new file mode 100644 index 0000000..d0663b5 --- /dev/null +++ b/crates/xframe-demo/examples/GtkColorChooserDialog.rs @@ -0,0 +1,21 @@ +//! GtkColorChooserDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkColorChooserDialog +//! It opens an 800x600 window showing one GtkColorChooserDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkColorChooserDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkColorChooserDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkColorChooserDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkColorChooserWidget.rs b/crates/xframe-demo/examples/GtkColorChooserWidget.rs new file mode 100644 index 0000000..af9b036 --- /dev/null +++ b/crates/xframe-demo/examples/GtkColorChooserWidget.rs @@ -0,0 +1,21 @@ +//! GtkColorChooserWidget — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkColorChooserWidget +//! It opens an 800x600 window showing one GtkColorChooserWidget widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkColorChooserWidget")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkColorChooserWidget", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkColorChooserWidget example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkColorDialogButton.rs b/crates/xframe-demo/examples/GtkColorDialogButton.rs new file mode 100644 index 0000000..511a1f3 --- /dev/null +++ b/crates/xframe-demo/examples/GtkColorDialogButton.rs @@ -0,0 +1,21 @@ +//! GtkColorDialogButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkColorDialogButton +//! It opens an 800x600 window showing one GtkColorDialogButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkColorDialogButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkColorDialogButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkColorDialogButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkColumnView.rs b/crates/xframe-demo/examples/GtkColumnView.rs new file mode 100644 index 0000000..2abd5e1 --- /dev/null +++ b/crates/xframe-demo/examples/GtkColumnView.rs @@ -0,0 +1,21 @@ +//! GtkColumnView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkColumnView +//! It opens an 800x600 window showing one GtkColumnView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkColumnView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkColumnView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkColumnView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkComboBox.rs b/crates/xframe-demo/examples/GtkComboBox.rs new file mode 100644 index 0000000..8d0f641 --- /dev/null +++ b/crates/xframe-demo/examples/GtkComboBox.rs @@ -0,0 +1,21 @@ +//! GtkComboBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkComboBox +//! It opens an 800x600 window showing one GtkComboBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkComboBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkComboBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkComboBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkComboBoxText.rs b/crates/xframe-demo/examples/GtkComboBoxText.rs new file mode 100644 index 0000000..05e3481 --- /dev/null +++ b/crates/xframe-demo/examples/GtkComboBoxText.rs @@ -0,0 +1,21 @@ +//! GtkComboBoxText — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkComboBoxText +//! It opens an 800x600 window showing one GtkComboBoxText widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkComboBoxText")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkComboBoxText", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkComboBoxText example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkDialog.rs b/crates/xframe-demo/examples/GtkDialog.rs new file mode 100644 index 0000000..bce2685 --- /dev/null +++ b/crates/xframe-demo/examples/GtkDialog.rs @@ -0,0 +1,21 @@ +//! GtkDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkDialog +//! It opens an 800x600 window showing one GtkDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkDrawingArea.rs b/crates/xframe-demo/examples/GtkDrawingArea.rs new file mode 100644 index 0000000..4d2ced2 --- /dev/null +++ b/crates/xframe-demo/examples/GtkDrawingArea.rs @@ -0,0 +1,21 @@ +//! GtkDrawingArea — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkDrawingArea +//! It opens an 800x600 window showing one GtkDrawingArea widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkDrawingArea")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkDrawingArea", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkDrawingArea example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkDropDown.rs b/crates/xframe-demo/examples/GtkDropDown.rs new file mode 100644 index 0000000..d873d65 --- /dev/null +++ b/crates/xframe-demo/examples/GtkDropDown.rs @@ -0,0 +1,21 @@ +//! GtkDropDown — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkDropDown +//! It opens an 800x600 window showing one GtkDropDown widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkDropDown")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkDropDown", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkDropDown example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkEditableLabel.rs b/crates/xframe-demo/examples/GtkEditableLabel.rs new file mode 100644 index 0000000..ad551f1 --- /dev/null +++ b/crates/xframe-demo/examples/GtkEditableLabel.rs @@ -0,0 +1,21 @@ +//! GtkEditableLabel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkEditableLabel +//! It opens an 800x600 window showing one GtkEditableLabel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkEditableLabel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkEditableLabel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkEditableLabel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkEntryCompletion.rs b/crates/xframe-demo/examples/GtkEntryCompletion.rs new file mode 100644 index 0000000..acc3d57 --- /dev/null +++ b/crates/xframe-demo/examples/GtkEntryCompletion.rs @@ -0,0 +1,21 @@ +//! GtkEntryCompletion — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkEntryCompletion +//! It opens an 800x600 window showing one GtkEntryCompletion widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkEntryCompletion")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkEntryCompletion", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkEntryCompletion example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkEventBox.rs b/crates/xframe-demo/examples/GtkEventBox.rs new file mode 100644 index 0000000..490dbc2 --- /dev/null +++ b/crates/xframe-demo/examples/GtkEventBox.rs @@ -0,0 +1,21 @@ +//! GtkEventBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkEventBox +//! It opens an 800x600 window showing one GtkEventBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkEventBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkEventBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkEventBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkExpander.rs b/crates/xframe-demo/examples/GtkExpander.rs new file mode 100644 index 0000000..4689c2e --- /dev/null +++ b/crates/xframe-demo/examples/GtkExpander.rs @@ -0,0 +1,21 @@ +//! GtkExpander — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkExpander +//! It opens an 800x600 window showing one GtkExpander widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkExpander")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkExpander", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkExpander example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFileChooserButton.rs b/crates/xframe-demo/examples/GtkFileChooserButton.rs new file mode 100644 index 0000000..a6ec0d5 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFileChooserButton.rs @@ -0,0 +1,21 @@ +//! GtkFileChooserButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFileChooserButton +//! It opens an 800x600 window showing one GtkFileChooserButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFileChooserButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFileChooserButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFileChooserButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFileChooserDialog.rs b/crates/xframe-demo/examples/GtkFileChooserDialog.rs new file mode 100644 index 0000000..0328c43 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFileChooserDialog.rs @@ -0,0 +1,21 @@ +//! GtkFileChooserDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFileChooserDialog +//! It opens an 800x600 window showing one GtkFileChooserDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFileChooserDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFileChooserDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFileChooserDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFileChooserWidget.rs b/crates/xframe-demo/examples/GtkFileChooserWidget.rs new file mode 100644 index 0000000..c8e618f --- /dev/null +++ b/crates/xframe-demo/examples/GtkFileChooserWidget.rs @@ -0,0 +1,21 @@ +//! GtkFileChooserWidget — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFileChooserWidget +//! It opens an 800x600 window showing one GtkFileChooserWidget widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFileChooserWidget")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFileChooserWidget", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFileChooserWidget example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFixed.rs b/crates/xframe-demo/examples/GtkFixed.rs new file mode 100644 index 0000000..0916714 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFixed.rs @@ -0,0 +1,21 @@ +//! GtkFixed — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFixed +//! It opens an 800x600 window showing one GtkFixed widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFixed")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFixed", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFixed example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFlowBox.rs b/crates/xframe-demo/examples/GtkFlowBox.rs new file mode 100644 index 0000000..d895b44 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFlowBox.rs @@ -0,0 +1,21 @@ +//! GtkFlowBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFlowBox +//! It opens an 800x600 window showing one GtkFlowBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFlowBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFlowBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFlowBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFontButton.rs b/crates/xframe-demo/examples/GtkFontButton.rs new file mode 100644 index 0000000..16da392 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFontButton.rs @@ -0,0 +1,21 @@ +//! GtkFontButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFontButton +//! It opens an 800x600 window showing one GtkFontButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFontButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFontButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFontButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFontChooserDialog.rs b/crates/xframe-demo/examples/GtkFontChooserDialog.rs new file mode 100644 index 0000000..a75af09 --- /dev/null +++ b/crates/xframe-demo/examples/GtkFontChooserDialog.rs @@ -0,0 +1,21 @@ +//! GtkFontChooserDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFontChooserDialog +//! It opens an 800x600 window showing one GtkFontChooserDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFontChooserDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFontChooserDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFontChooserDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFontChooserWidget.rs b/crates/xframe-demo/examples/GtkFontChooserWidget.rs new file mode 100644 index 0000000..e52535b --- /dev/null +++ b/crates/xframe-demo/examples/GtkFontChooserWidget.rs @@ -0,0 +1,21 @@ +//! GtkFontChooserWidget — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFontChooserWidget +//! It opens an 800x600 window showing one GtkFontChooserWidget widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFontChooserWidget")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFontChooserWidget", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFontChooserWidget example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkFrame.rs b/crates/xframe-demo/examples/GtkFrame.rs new file mode 100644 index 0000000..501fa6c --- /dev/null +++ b/crates/xframe-demo/examples/GtkFrame.rs @@ -0,0 +1,21 @@ +//! GtkFrame — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkFrame +//! It opens an 800x600 window showing one GtkFrame widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkFrame")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkFrame", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkFrame example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkGLArea.rs b/crates/xframe-demo/examples/GtkGLArea.rs new file mode 100644 index 0000000..b924d0a --- /dev/null +++ b/crates/xframe-demo/examples/GtkGLArea.rs @@ -0,0 +1,21 @@ +//! GtkGLArea — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkGLArea +//! It opens an 800x600 window showing one GtkGLArea widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkGLArea")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkGLArea", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkGLArea example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkGrid.rs b/crates/xframe-demo/examples/GtkGrid.rs new file mode 100644 index 0000000..65cf299 --- /dev/null +++ b/crates/xframe-demo/examples/GtkGrid.rs @@ -0,0 +1,21 @@ +//! GtkGrid — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkGrid +//! It opens an 800x600 window showing one GtkGrid widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkGrid")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkGrid", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkGrid example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkGridView.rs b/crates/xframe-demo/examples/GtkGridView.rs new file mode 100644 index 0000000..89d0ca1 --- /dev/null +++ b/crates/xframe-demo/examples/GtkGridView.rs @@ -0,0 +1,21 @@ +//! GtkGridView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkGridView +//! It opens an 800x600 window showing one GtkGridView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkGridView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkGridView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkGridView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkHeaderBar.rs b/crates/xframe-demo/examples/GtkHeaderBar.rs new file mode 100644 index 0000000..690bbe0 --- /dev/null +++ b/crates/xframe-demo/examples/GtkHeaderBar.rs @@ -0,0 +1,21 @@ +//! GtkHeaderBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkHeaderBar +//! It opens an 800x600 window showing one GtkHeaderBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkHeaderBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkHeaderBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkHeaderBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkIconView.rs b/crates/xframe-demo/examples/GtkIconView.rs new file mode 100644 index 0000000..70516c9 --- /dev/null +++ b/crates/xframe-demo/examples/GtkIconView.rs @@ -0,0 +1,21 @@ +//! GtkIconView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkIconView +//! It opens an 800x600 window showing one GtkIconView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkIconView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkIconView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkIconView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkImage.rs b/crates/xframe-demo/examples/GtkImage.rs new file mode 100644 index 0000000..b6a3384 --- /dev/null +++ b/crates/xframe-demo/examples/GtkImage.rs @@ -0,0 +1,21 @@ +//! GtkImage — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkImage +//! It opens an 800x600 window showing one GtkImage widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkImage")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkImage", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkImage example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkInfoBar.rs b/crates/xframe-demo/examples/GtkInfoBar.rs new file mode 100644 index 0000000..0243db5 --- /dev/null +++ b/crates/xframe-demo/examples/GtkInfoBar.rs @@ -0,0 +1,21 @@ +//! GtkInfoBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkInfoBar +//! It opens an 800x600 window showing one GtkInfoBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkInfoBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkInfoBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkInfoBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkInscription.rs b/crates/xframe-demo/examples/GtkInscription.rs new file mode 100644 index 0000000..ed79473 --- /dev/null +++ b/crates/xframe-demo/examples/GtkInscription.rs @@ -0,0 +1,21 @@ +//! GtkInscription — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkInscription +//! It opens an 800x600 window showing one GtkInscription widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkInscription")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkInscription", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkInscription example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkInvisible.rs b/crates/xframe-demo/examples/GtkInvisible.rs new file mode 100644 index 0000000..8c47715 --- /dev/null +++ b/crates/xframe-demo/examples/GtkInvisible.rs @@ -0,0 +1,21 @@ +//! GtkInvisible — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkInvisible +//! It opens an 800x600 window showing one GtkInvisible widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkInvisible")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkInvisible", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkInvisible example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkLayout.rs b/crates/xframe-demo/examples/GtkLayout.rs new file mode 100644 index 0000000..edfee70 --- /dev/null +++ b/crates/xframe-demo/examples/GtkLayout.rs @@ -0,0 +1,21 @@ +//! GtkLayout — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkLayout +//! It opens an 800x600 window showing one GtkLayout widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkLayout")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkLayout", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkLayout example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkLevelBar.rs b/crates/xframe-demo/examples/GtkLevelBar.rs new file mode 100644 index 0000000..00d1aeb --- /dev/null +++ b/crates/xframe-demo/examples/GtkLevelBar.rs @@ -0,0 +1,21 @@ +//! GtkLevelBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkLevelBar +//! It opens an 800x600 window showing one GtkLevelBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkLevelBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkLevelBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkLevelBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkLinkButton.rs b/crates/xframe-demo/examples/GtkLinkButton.rs new file mode 100644 index 0000000..6738af2 --- /dev/null +++ b/crates/xframe-demo/examples/GtkLinkButton.rs @@ -0,0 +1,21 @@ +//! GtkLinkButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkLinkButton +//! It opens an 800x600 window showing one GtkLinkButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkLinkButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkLinkButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkLinkButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkListBox.rs b/crates/xframe-demo/examples/GtkListBox.rs new file mode 100644 index 0000000..c1aa28f --- /dev/null +++ b/crates/xframe-demo/examples/GtkListBox.rs @@ -0,0 +1,21 @@ +//! GtkListBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkListBox +//! It opens an 800x600 window showing one GtkListBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkListBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkListBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkListBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkListView.rs b/crates/xframe-demo/examples/GtkListView.rs new file mode 100644 index 0000000..85a377b --- /dev/null +++ b/crates/xframe-demo/examples/GtkListView.rs @@ -0,0 +1,21 @@ +//! GtkListView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkListView +//! It opens an 800x600 window showing one GtkListView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkListView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkListView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkListView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkLockButton.rs b/crates/xframe-demo/examples/GtkLockButton.rs new file mode 100644 index 0000000..a92f68f --- /dev/null +++ b/crates/xframe-demo/examples/GtkLockButton.rs @@ -0,0 +1,21 @@ +//! GtkLockButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkLockButton +//! It opens an 800x600 window showing one GtkLockButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkLockButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkLockButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkLockButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMediaControls.rs b/crates/xframe-demo/examples/GtkMediaControls.rs new file mode 100644 index 0000000..8d1a5f1 --- /dev/null +++ b/crates/xframe-demo/examples/GtkMediaControls.rs @@ -0,0 +1,21 @@ +//! GtkMediaControls — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMediaControls +//! It opens an 800x600 window showing one GtkMediaControls widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMediaControls")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMediaControls", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMediaControls example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMenu.rs b/crates/xframe-demo/examples/GtkMenu.rs new file mode 100644 index 0000000..8f0feb4 --- /dev/null +++ b/crates/xframe-demo/examples/GtkMenu.rs @@ -0,0 +1,21 @@ +//! GtkMenu — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMenu +//! It opens an 800x600 window showing one GtkMenu widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMenu")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMenu", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMenu example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMenuBar.rs b/crates/xframe-demo/examples/GtkMenuBar.rs new file mode 100644 index 0000000..2433231 --- /dev/null +++ b/crates/xframe-demo/examples/GtkMenuBar.rs @@ -0,0 +1,21 @@ +//! GtkMenuBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMenuBar +//! It opens an 800x600 window showing one GtkMenuBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMenuBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMenuBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMenuBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMenuButton.rs b/crates/xframe-demo/examples/GtkMenuButton.rs new file mode 100644 index 0000000..7c958f2 --- /dev/null +++ b/crates/xframe-demo/examples/GtkMenuButton.rs @@ -0,0 +1,21 @@ +//! GtkMenuButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMenuButton +//! It opens an 800x600 window showing one GtkMenuButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMenuButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMenuButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMenuButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMenuItem.rs b/crates/xframe-demo/examples/GtkMenuItem.rs new file mode 100644 index 0000000..762ade8 --- /dev/null +++ b/crates/xframe-demo/examples/GtkMenuItem.rs @@ -0,0 +1,21 @@ +//! GtkMenuItem — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMenuItem +//! It opens an 800x600 window showing one GtkMenuItem widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMenuItem")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMenuItem", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMenuItem example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkMessageDialog.rs b/crates/xframe-demo/examples/GtkMessageDialog.rs new file mode 100644 index 0000000..8d7d71a --- /dev/null +++ b/crates/xframe-demo/examples/GtkMessageDialog.rs @@ -0,0 +1,21 @@ +//! GtkMessageDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkMessageDialog +//! It opens an 800x600 window showing one GtkMessageDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkMessageDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkMessageDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkMessageDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkModelButton.rs b/crates/xframe-demo/examples/GtkModelButton.rs new file mode 100644 index 0000000..3d50563 --- /dev/null +++ b/crates/xframe-demo/examples/GtkModelButton.rs @@ -0,0 +1,21 @@ +//! GtkModelButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkModelButton +//! It opens an 800x600 window showing one GtkModelButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkModelButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkModelButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkModelButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkNotebook.rs b/crates/xframe-demo/examples/GtkNotebook.rs new file mode 100644 index 0000000..d6f0f96 --- /dev/null +++ b/crates/xframe-demo/examples/GtkNotebook.rs @@ -0,0 +1,21 @@ +//! GtkNotebook — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkNotebook +//! It opens an 800x600 window showing one GtkNotebook widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkNotebook")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkNotebook", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkNotebook example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkOverlay.rs b/crates/xframe-demo/examples/GtkOverlay.rs new file mode 100644 index 0000000..ac3795d --- /dev/null +++ b/crates/xframe-demo/examples/GtkOverlay.rs @@ -0,0 +1,21 @@ +//! GtkOverlay — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkOverlay +//! It opens an 800x600 window showing one GtkOverlay widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkOverlay")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkOverlay", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkOverlay example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPaned.rs b/crates/xframe-demo/examples/GtkPaned.rs new file mode 100644 index 0000000..65caf7e --- /dev/null +++ b/crates/xframe-demo/examples/GtkPaned.rs @@ -0,0 +1,21 @@ +//! GtkPaned — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPaned +//! It opens an 800x600 window showing one GtkPaned widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPaned")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPaned", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPaned example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPasswordEntry.rs b/crates/xframe-demo/examples/GtkPasswordEntry.rs new file mode 100644 index 0000000..5803419 --- /dev/null +++ b/crates/xframe-demo/examples/GtkPasswordEntry.rs @@ -0,0 +1,21 @@ +//! GtkPasswordEntry — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPasswordEntry +//! It opens an 800x600 window showing one GtkPasswordEntry widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPasswordEntry")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPasswordEntry", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPasswordEntry example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPicture.rs b/crates/xframe-demo/examples/GtkPicture.rs new file mode 100644 index 0000000..410c4ad --- /dev/null +++ b/crates/xframe-demo/examples/GtkPicture.rs @@ -0,0 +1,21 @@ +//! GtkPicture — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPicture +//! It opens an 800x600 window showing one GtkPicture widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPicture")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPicture", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPicture example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPlacesSidebar.rs b/crates/xframe-demo/examples/GtkPlacesSidebar.rs new file mode 100644 index 0000000..2fe3235 --- /dev/null +++ b/crates/xframe-demo/examples/GtkPlacesSidebar.rs @@ -0,0 +1,21 @@ +//! GtkPlacesSidebar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPlacesSidebar +//! It opens an 800x600 window showing one GtkPlacesSidebar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPlacesSidebar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPlacesSidebar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPlacesSidebar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPopover.rs b/crates/xframe-demo/examples/GtkPopover.rs new file mode 100644 index 0000000..1d7e278 --- /dev/null +++ b/crates/xframe-demo/examples/GtkPopover.rs @@ -0,0 +1,21 @@ +//! GtkPopover — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPopover +//! It opens an 800x600 window showing one GtkPopover widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPopover")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPopover", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPopover example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkPrintUnixDialog.rs b/crates/xframe-demo/examples/GtkPrintUnixDialog.rs new file mode 100644 index 0000000..a64ec1e --- /dev/null +++ b/crates/xframe-demo/examples/GtkPrintUnixDialog.rs @@ -0,0 +1,21 @@ +//! GtkPrintUnixDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkPrintUnixDialog +//! It opens an 800x600 window showing one GtkPrintUnixDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkPrintUnixDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkPrintUnixDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkPrintUnixDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkProgressBar.rs b/crates/xframe-demo/examples/GtkProgressBar.rs new file mode 100644 index 0000000..0003ad0 --- /dev/null +++ b/crates/xframe-demo/examples/GtkProgressBar.rs @@ -0,0 +1,21 @@ +//! GtkProgressBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkProgressBar +//! It opens an 800x600 window showing one GtkProgressBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkProgressBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkProgressBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkProgressBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkRadioButton.rs b/crates/xframe-demo/examples/GtkRadioButton.rs new file mode 100644 index 0000000..9a27d5c --- /dev/null +++ b/crates/xframe-demo/examples/GtkRadioButton.rs @@ -0,0 +1,21 @@ +//! GtkRadioButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkRadioButton +//! It opens an 800x600 window showing one GtkRadioButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkRadioButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkRadioButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkRadioButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkRadioMenuItem.rs b/crates/xframe-demo/examples/GtkRadioMenuItem.rs new file mode 100644 index 0000000..eee40f5 --- /dev/null +++ b/crates/xframe-demo/examples/GtkRadioMenuItem.rs @@ -0,0 +1,21 @@ +//! GtkRadioMenuItem — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkRadioMenuItem +//! It opens an 800x600 window showing one GtkRadioMenuItem widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkRadioMenuItem")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkRadioMenuItem", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkRadioMenuItem example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkRevealer.rs b/crates/xframe-demo/examples/GtkRevealer.rs new file mode 100644 index 0000000..9165ed6 --- /dev/null +++ b/crates/xframe-demo/examples/GtkRevealer.rs @@ -0,0 +1,21 @@ +//! GtkRevealer — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkRevealer +//! It opens an 800x600 window showing one GtkRevealer widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkRevealer")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkRevealer", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkRevealer example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkScale.rs b/crates/xframe-demo/examples/GtkScale.rs new file mode 100644 index 0000000..a766206 --- /dev/null +++ b/crates/xframe-demo/examples/GtkScale.rs @@ -0,0 +1,21 @@ +//! GtkScale — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkScale +//! It opens an 800x600 window showing one GtkScale widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkScale")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkScale", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkScale example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkScaleButton.rs b/crates/xframe-demo/examples/GtkScaleButton.rs new file mode 100644 index 0000000..4694047 --- /dev/null +++ b/crates/xframe-demo/examples/GtkScaleButton.rs @@ -0,0 +1,21 @@ +//! GtkScaleButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkScaleButton +//! It opens an 800x600 window showing one GtkScaleButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkScaleButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkScaleButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkScaleButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkScrollbar.rs b/crates/xframe-demo/examples/GtkScrollbar.rs new file mode 100644 index 0000000..56a3d52 --- /dev/null +++ b/crates/xframe-demo/examples/GtkScrollbar.rs @@ -0,0 +1,21 @@ +//! GtkScrollbar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkScrollbar +//! It opens an 800x600 window showing one GtkScrollbar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkScrollbar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkScrollbar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkScrollbar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkScrolledWindow.rs b/crates/xframe-demo/examples/GtkScrolledWindow.rs new file mode 100644 index 0000000..86daf2a --- /dev/null +++ b/crates/xframe-demo/examples/GtkScrolledWindow.rs @@ -0,0 +1,21 @@ +//! GtkScrolledWindow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkScrolledWindow +//! It opens an 800x600 window showing one GtkScrolledWindow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkScrolledWindow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkScrolledWindow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkScrolledWindow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSearchBar.rs b/crates/xframe-demo/examples/GtkSearchBar.rs new file mode 100644 index 0000000..9d26a90 --- /dev/null +++ b/crates/xframe-demo/examples/GtkSearchBar.rs @@ -0,0 +1,21 @@ +//! GtkSearchBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSearchBar +//! It opens an 800x600 window showing one GtkSearchBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSearchBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSearchBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSearchBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSearchEntry.rs b/crates/xframe-demo/examples/GtkSearchEntry.rs new file mode 100644 index 0000000..18bba9f --- /dev/null +++ b/crates/xframe-demo/examples/GtkSearchEntry.rs @@ -0,0 +1,21 @@ +//! GtkSearchEntry — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSearchEntry +//! It opens an 800x600 window showing one GtkSearchEntry widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSearchEntry")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSearchEntry", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSearchEntry example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSeparator.rs b/crates/xframe-demo/examples/GtkSeparator.rs new file mode 100644 index 0000000..5be0af1 --- /dev/null +++ b/crates/xframe-demo/examples/GtkSeparator.rs @@ -0,0 +1,21 @@ +//! GtkSeparator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSeparator +//! It opens an 800x600 window showing one GtkSeparator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSeparator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSeparator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSeparator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSeparatorMenuItem.rs b/crates/xframe-demo/examples/GtkSeparatorMenuItem.rs new file mode 100644 index 0000000..7772b74 --- /dev/null +++ b/crates/xframe-demo/examples/GtkSeparatorMenuItem.rs @@ -0,0 +1,21 @@ +//! GtkSeparatorMenuItem — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSeparatorMenuItem +//! It opens an 800x600 window showing one GtkSeparatorMenuItem widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSeparatorMenuItem")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSeparatorMenuItem", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSeparatorMenuItem example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkShortcutsWindow.rs b/crates/xframe-demo/examples/GtkShortcutsWindow.rs new file mode 100644 index 0000000..750eb83 --- /dev/null +++ b/crates/xframe-demo/examples/GtkShortcutsWindow.rs @@ -0,0 +1,21 @@ +//! GtkShortcutsWindow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkShortcutsWindow +//! It opens an 800x600 window showing one GtkShortcutsWindow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkShortcutsWindow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkShortcutsWindow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkShortcutsWindow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSpinButton.rs b/crates/xframe-demo/examples/GtkSpinButton.rs new file mode 100644 index 0000000..8a61bbd --- /dev/null +++ b/crates/xframe-demo/examples/GtkSpinButton.rs @@ -0,0 +1,21 @@ +//! GtkSpinButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSpinButton +//! It opens an 800x600 window showing one GtkSpinButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSpinButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSpinButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSpinButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSpinner.rs b/crates/xframe-demo/examples/GtkSpinner.rs new file mode 100644 index 0000000..915194d --- /dev/null +++ b/crates/xframe-demo/examples/GtkSpinner.rs @@ -0,0 +1,21 @@ +//! GtkSpinner — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSpinner +//! It opens an 800x600 window showing one GtkSpinner widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSpinner")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSpinner", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSpinner example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkStack.rs b/crates/xframe-demo/examples/GtkStack.rs new file mode 100644 index 0000000..81cbd76 --- /dev/null +++ b/crates/xframe-demo/examples/GtkStack.rs @@ -0,0 +1,21 @@ +//! GtkStack — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkStack +//! It opens an 800x600 window showing one GtkStack widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkStack")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkStack", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkStack example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkStackSidebar.rs b/crates/xframe-demo/examples/GtkStackSidebar.rs new file mode 100644 index 0000000..5243226 --- /dev/null +++ b/crates/xframe-demo/examples/GtkStackSidebar.rs @@ -0,0 +1,21 @@ +//! GtkStackSidebar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkStackSidebar +//! It opens an 800x600 window showing one GtkStackSidebar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkStackSidebar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkStackSidebar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkStackSidebar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkStackSwitcher.rs b/crates/xframe-demo/examples/GtkStackSwitcher.rs new file mode 100644 index 0000000..abc7b5e --- /dev/null +++ b/crates/xframe-demo/examples/GtkStackSwitcher.rs @@ -0,0 +1,21 @@ +//! GtkStackSwitcher — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkStackSwitcher +//! It opens an 800x600 window showing one GtkStackSwitcher widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkStackSwitcher")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkStackSwitcher", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkStackSwitcher example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkStatusbar.rs b/crates/xframe-demo/examples/GtkStatusbar.rs new file mode 100644 index 0000000..9c95cbb --- /dev/null +++ b/crates/xframe-demo/examples/GtkStatusbar.rs @@ -0,0 +1,21 @@ +//! GtkStatusbar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkStatusbar +//! It opens an 800x600 window showing one GtkStatusbar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkStatusbar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkStatusbar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkStatusbar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkSwitch.rs b/crates/xframe-demo/examples/GtkSwitch.rs new file mode 100644 index 0000000..d247679 --- /dev/null +++ b/crates/xframe-demo/examples/GtkSwitch.rs @@ -0,0 +1,21 @@ +//! GtkSwitch — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkSwitch +//! It opens an 800x600 window showing one GtkSwitch widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkSwitch")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkSwitch", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkSwitch example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkTextView.rs b/crates/xframe-demo/examples/GtkTextView.rs new file mode 100644 index 0000000..79ac4a8 --- /dev/null +++ b/crates/xframe-demo/examples/GtkTextView.rs @@ -0,0 +1,21 @@ +//! GtkTextView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkTextView +//! It opens an 800x600 window showing one GtkTextView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkTextView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkTextView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkTextView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkToggleButton.rs b/crates/xframe-demo/examples/GtkToggleButton.rs new file mode 100644 index 0000000..0a95641 --- /dev/null +++ b/crates/xframe-demo/examples/GtkToggleButton.rs @@ -0,0 +1,21 @@ +//! GtkToggleButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkToggleButton +//! It opens an 800x600 window showing one GtkToggleButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkToggleButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkToggleButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkToggleButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkToggleToolButton.rs b/crates/xframe-demo/examples/GtkToggleToolButton.rs new file mode 100644 index 0000000..627775e --- /dev/null +++ b/crates/xframe-demo/examples/GtkToggleToolButton.rs @@ -0,0 +1,21 @@ +//! GtkToggleToolButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkToggleToolButton +//! It opens an 800x600 window showing one GtkToggleToolButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkToggleToolButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkToggleToolButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkToggleToolButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkToolButton.rs b/crates/xframe-demo/examples/GtkToolButton.rs new file mode 100644 index 0000000..85d1251 --- /dev/null +++ b/crates/xframe-demo/examples/GtkToolButton.rs @@ -0,0 +1,21 @@ +//! GtkToolButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkToolButton +//! It opens an 800x600 window showing one GtkToolButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkToolButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkToolButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkToolButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkToolbar.rs b/crates/xframe-demo/examples/GtkToolbar.rs new file mode 100644 index 0000000..a1e78fe --- /dev/null +++ b/crates/xframe-demo/examples/GtkToolbar.rs @@ -0,0 +1,21 @@ +//! GtkToolbar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkToolbar +//! It opens an 800x600 window showing one GtkToolbar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkToolbar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkToolbar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkToolbar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkTreeView.rs b/crates/xframe-demo/examples/GtkTreeView.rs new file mode 100644 index 0000000..d418e3b --- /dev/null +++ b/crates/xframe-demo/examples/GtkTreeView.rs @@ -0,0 +1,21 @@ +//! GtkTreeView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkTreeView +//! It opens an 800x600 window showing one GtkTreeView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkTreeView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkTreeView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkTreeView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkVideo.rs b/crates/xframe-demo/examples/GtkVideo.rs new file mode 100644 index 0000000..27b9564 --- /dev/null +++ b/crates/xframe-demo/examples/GtkVideo.rs @@ -0,0 +1,21 @@ +//! GtkVideo — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkVideo +//! It opens an 800x600 window showing one GtkVideo widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkVideo")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkVideo", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkVideo example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkViewport.rs b/crates/xframe-demo/examples/GtkViewport.rs new file mode 100644 index 0000000..11ad428 --- /dev/null +++ b/crates/xframe-demo/examples/GtkViewport.rs @@ -0,0 +1,21 @@ +//! GtkViewport — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkViewport +//! It opens an 800x600 window showing one GtkViewport widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkViewport")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkViewport", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkViewport example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkVolumeButton.rs b/crates/xframe-demo/examples/GtkVolumeButton.rs new file mode 100644 index 0000000..75e0ee6 --- /dev/null +++ b/crates/xframe-demo/examples/GtkVolumeButton.rs @@ -0,0 +1,21 @@ +//! GtkVolumeButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkVolumeButton +//! It opens an 800x600 window showing one GtkVolumeButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkVolumeButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkVolumeButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkVolumeButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/GtkWindow.rs b/crates/xframe-demo/examples/GtkWindow.rs new file mode 100644 index 0000000..ea64562 --- /dev/null +++ b/crates/xframe-demo/examples/GtkWindow.rs @@ -0,0 +1,21 @@ +//! GtkWindow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example GtkWindow +//! It opens an 800x600 window showing one GtkWindow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("GtkWindow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("GtkWindow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("GtkWindow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndADX.rs b/crates/xframe-demo/examples/IndADX.rs new file mode 100644 index 0000000..d5af474 --- /dev/null +++ b/crates/xframe-demo/examples/IndADX.rs @@ -0,0 +1,21 @@ +//! IndADX — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndADX +//! It opens an 800x600 window showing one IndADX widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndADX")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndADX", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndADX example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndADXR.rs b/crates/xframe-demo/examples/IndADXR.rs new file mode 100644 index 0000000..771649b --- /dev/null +++ b/crates/xframe-demo/examples/IndADXR.rs @@ -0,0 +1,21 @@ +//! IndADXR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndADXR +//! It opens an 800x600 window showing one IndADXR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndADXR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndADXR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndADXR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndALMA.rs b/crates/xframe-demo/examples/IndALMA.rs new file mode 100644 index 0000000..a4eb2a8 --- /dev/null +++ b/crates/xframe-demo/examples/IndALMA.rs @@ -0,0 +1,21 @@ +//! IndALMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndALMA +//! It opens an 800x600 window showing one IndALMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndALMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndALMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndALMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAPO.rs b/crates/xframe-demo/examples/IndAPO.rs new file mode 100644 index 0000000..191ad1c --- /dev/null +++ b/crates/xframe-demo/examples/IndAPO.rs @@ -0,0 +1,21 @@ +//! IndAPO — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAPO +//! It opens an 800x600 window showing one IndAPO widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAPO")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAPO", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAPO example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndATR.rs b/crates/xframe-demo/examples/IndATR.rs new file mode 100644 index 0000000..2328bbe --- /dev/null +++ b/crates/xframe-demo/examples/IndATR.rs @@ -0,0 +1,21 @@ +//! IndATR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndATR +//! It opens an 800x600 window showing one IndATR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndATR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndATR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndATR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAcceleratorOscillator.rs b/crates/xframe-demo/examples/IndAcceleratorOscillator.rs new file mode 100644 index 0000000..2f8eca5 --- /dev/null +++ b/crates/xframe-demo/examples/IndAcceleratorOscillator.rs @@ -0,0 +1,21 @@ +//! IndAcceleratorOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAcceleratorOscillator +//! It opens an 800x600 window showing one IndAcceleratorOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAcceleratorOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAcceleratorOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAcceleratorOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAccumulationDistributionLine.rs b/crates/xframe-demo/examples/IndAccumulationDistributionLine.rs new file mode 100644 index 0000000..d75c3b3 --- /dev/null +++ b/crates/xframe-demo/examples/IndAccumulationDistributionLine.rs @@ -0,0 +1,21 @@ +//! IndAccumulationDistributionLine — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAccumulationDistributionLine +//! It opens an 800x600 window showing one IndAccumulationDistributionLine widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAccumulationDistributionLine")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAccumulationDistributionLine", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAccumulationDistributionLine example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAccumulativeSwingIndex.rs b/crates/xframe-demo/examples/IndAccumulativeSwingIndex.rs new file mode 100644 index 0000000..781572a --- /dev/null +++ b/crates/xframe-demo/examples/IndAccumulativeSwingIndex.rs @@ -0,0 +1,21 @@ +//! IndAccumulativeSwingIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAccumulativeSwingIndex +//! It opens an 800x600 window showing one IndAccumulativeSwingIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAccumulativeSwingIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAccumulativeSwingIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAccumulativeSwingIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAdaptiveCyberCycle.rs b/crates/xframe-demo/examples/IndAdaptiveCyberCycle.rs new file mode 100644 index 0000000..47a3090 --- /dev/null +++ b/crates/xframe-demo/examples/IndAdaptiveCyberCycle.rs @@ -0,0 +1,21 @@ +//! IndAdaptiveCyberCycle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAdaptiveCyberCycle +//! It opens an 800x600 window showing one IndAdaptiveCyberCycle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAdaptiveCyberCycle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAdaptiveCyberCycle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAdaptiveCyberCycle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAdaptiveRSI.rs b/crates/xframe-demo/examples/IndAdaptiveRSI.rs new file mode 100644 index 0000000..8d03bee --- /dev/null +++ b/crates/xframe-demo/examples/IndAdaptiveRSI.rs @@ -0,0 +1,21 @@ +//! IndAdaptiveRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAdaptiveRSI +//! It opens an 800x600 window showing one IndAdaptiveRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAdaptiveRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAdaptiveRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAdaptiveRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAlligatorJaw.rs b/crates/xframe-demo/examples/IndAlligatorJaw.rs new file mode 100644 index 0000000..1a7479c --- /dev/null +++ b/crates/xframe-demo/examples/IndAlligatorJaw.rs @@ -0,0 +1,21 @@ +//! IndAlligatorJaw — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAlligatorJaw +//! It opens an 800x600 window showing one IndAlligatorJaw widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAlligatorJaw")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAlligatorJaw", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAlligatorJaw example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAlligatorLips.rs b/crates/xframe-demo/examples/IndAlligatorLips.rs new file mode 100644 index 0000000..d467de6 --- /dev/null +++ b/crates/xframe-demo/examples/IndAlligatorLips.rs @@ -0,0 +1,21 @@ +//! IndAlligatorLips — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAlligatorLips +//! It opens an 800x600 window showing one IndAlligatorLips widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAlligatorLips")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAlligatorLips", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAlligatorLips example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAlligatorTeeth.rs b/crates/xframe-demo/examples/IndAlligatorTeeth.rs new file mode 100644 index 0000000..bab0801 --- /dev/null +++ b/crates/xframe-demo/examples/IndAlligatorTeeth.rs @@ -0,0 +1,21 @@ +//! IndAlligatorTeeth — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAlligatorTeeth +//! It opens an 800x600 window showing one IndAlligatorTeeth widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAlligatorTeeth")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAlligatorTeeth", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAlligatorTeeth example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAnchoredVWAP.rs b/crates/xframe-demo/examples/IndAnchoredVWAP.rs new file mode 100644 index 0000000..4132452 --- /dev/null +++ b/crates/xframe-demo/examples/IndAnchoredVWAP.rs @@ -0,0 +1,21 @@ +//! IndAnchoredVWAP — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAnchoredVWAP +//! It opens an 800x600 window showing one IndAnchoredVWAP widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAnchoredVWAP")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAnchoredVWAP", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAnchoredVWAP example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAroonDown.rs b/crates/xframe-demo/examples/IndAroonDown.rs new file mode 100644 index 0000000..5dd774a --- /dev/null +++ b/crates/xframe-demo/examples/IndAroonDown.rs @@ -0,0 +1,21 @@ +//! IndAroonDown — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAroonDown +//! It opens an 800x600 window showing one IndAroonDown widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAroonDown")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAroonDown", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAroonDown example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAroonOscillator.rs b/crates/xframe-demo/examples/IndAroonOscillator.rs new file mode 100644 index 0000000..aa2b3fa --- /dev/null +++ b/crates/xframe-demo/examples/IndAroonOscillator.rs @@ -0,0 +1,21 @@ +//! IndAroonOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAroonOscillator +//! It opens an 800x600 window showing one IndAroonOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAroonOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAroonOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAroonOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAroonUp.rs b/crates/xframe-demo/examples/IndAroonUp.rs new file mode 100644 index 0000000..0a94206 --- /dev/null +++ b/crates/xframe-demo/examples/IndAroonUp.rs @@ -0,0 +1,21 @@ +//! IndAroonUp — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAroonUp +//! It opens an 800x600 window showing one IndAroonUp widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAroonUp")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAroonUp", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAroonUp example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAutocorrelation.rs b/crates/xframe-demo/examples/IndAutocorrelation.rs new file mode 100644 index 0000000..2c8f373 --- /dev/null +++ b/crates/xframe-demo/examples/IndAutocorrelation.rs @@ -0,0 +1,21 @@ +//! IndAutocorrelation — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAutocorrelation +//! It opens an 800x600 window showing one IndAutocorrelation widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAutocorrelation")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAutocorrelation", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAutocorrelation example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndAwesomeOscillator.rs b/crates/xframe-demo/examples/IndAwesomeOscillator.rs new file mode 100644 index 0000000..3b49965 --- /dev/null +++ b/crates/xframe-demo/examples/IndAwesomeOscillator.rs @@ -0,0 +1,21 @@ +//! IndAwesomeOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndAwesomeOscillator +//! It opens an 800x600 window showing one IndAwesomeOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndAwesomeOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndAwesomeOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndAwesomeOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBalanceOfPower.rs b/crates/xframe-demo/examples/IndBalanceOfPower.rs new file mode 100644 index 0000000..cf02a27 --- /dev/null +++ b/crates/xframe-demo/examples/IndBalanceOfPower.rs @@ -0,0 +1,21 @@ +//! IndBalanceOfPower — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBalanceOfPower +//! It opens an 800x600 window showing one IndBalanceOfPower widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBalanceOfPower")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBalanceOfPower", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBalanceOfPower example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBearPower.rs b/crates/xframe-demo/examples/IndBearPower.rs new file mode 100644 index 0000000..5f7e975 --- /dev/null +++ b/crates/xframe-demo/examples/IndBearPower.rs @@ -0,0 +1,21 @@ +//! IndBearPower — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBearPower +//! It opens an 800x600 window showing one IndBearPower widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBearPower")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBearPower", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBearPower example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBollingerBands.rs b/crates/xframe-demo/examples/IndBollingerBands.rs new file mode 100644 index 0000000..97253a8 --- /dev/null +++ b/crates/xframe-demo/examples/IndBollingerBands.rs @@ -0,0 +1,21 @@ +//! IndBollingerBands — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBollingerBands +//! It opens an 800x600 window showing one IndBollingerBands widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBollingerBands")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBollingerBands", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBollingerBands example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBollingerBandwidth.rs b/crates/xframe-demo/examples/IndBollingerBandwidth.rs new file mode 100644 index 0000000..8adcd0f --- /dev/null +++ b/crates/xframe-demo/examples/IndBollingerBandwidth.rs @@ -0,0 +1,21 @@ +//! IndBollingerBandwidth — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBollingerBandwidth +//! It opens an 800x600 window showing one IndBollingerBandwidth widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBollingerBandwidth")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBollingerBandwidth", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBollingerBandwidth example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBollingerPercentB.rs b/crates/xframe-demo/examples/IndBollingerPercentB.rs new file mode 100644 index 0000000..081782c --- /dev/null +++ b/crates/xframe-demo/examples/IndBollingerPercentB.rs @@ -0,0 +1,21 @@ +//! IndBollingerPercentB — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBollingerPercentB +//! It opens an 800x600 window showing one IndBollingerPercentB widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBollingerPercentB")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBollingerPercentB", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBollingerPercentB example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndBullPower.rs b/crates/xframe-demo/examples/IndBullPower.rs new file mode 100644 index 0000000..0867f0c --- /dev/null +++ b/crates/xframe-demo/examples/IndBullPower.rs @@ -0,0 +1,21 @@ +//! IndBullPower — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndBullPower +//! It opens an 800x600 window showing one IndBullPower widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndBullPower")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndBullPower", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndBullPower example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCCI.rs b/crates/xframe-demo/examples/IndCCI.rs new file mode 100644 index 0000000..1272e77 --- /dev/null +++ b/crates/xframe-demo/examples/IndCCI.rs @@ -0,0 +1,21 @@ +//! IndCCI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCCI +//! It opens an 800x600 window showing one IndCCI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCCI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCCI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCCI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCamarillaPivotPoints.rs b/crates/xframe-demo/examples/IndCamarillaPivotPoints.rs new file mode 100644 index 0000000..1cf6341 --- /dev/null +++ b/crates/xframe-demo/examples/IndCamarillaPivotPoints.rs @@ -0,0 +1,21 @@ +//! IndCamarillaPivotPoints — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCamarillaPivotPoints +//! It opens an 800x600 window showing one IndCamarillaPivotPoints widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCamarillaPivotPoints")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCamarillaPivotPoints", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCamarillaPivotPoints example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCenterOfGravity.rs b/crates/xframe-demo/examples/IndCenterOfGravity.rs new file mode 100644 index 0000000..ff26f20 --- /dev/null +++ b/crates/xframe-demo/examples/IndCenterOfGravity.rs @@ -0,0 +1,21 @@ +//! IndCenterOfGravity — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCenterOfGravity +//! It opens an 800x600 window showing one IndCenterOfGravity widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCenterOfGravity")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCenterOfGravity", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCenterOfGravity example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChaikinMoneyFlow.rs b/crates/xframe-demo/examples/IndChaikinMoneyFlow.rs new file mode 100644 index 0000000..b6e9c82 --- /dev/null +++ b/crates/xframe-demo/examples/IndChaikinMoneyFlow.rs @@ -0,0 +1,21 @@ +//! IndChaikinMoneyFlow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChaikinMoneyFlow +//! It opens an 800x600 window showing one IndChaikinMoneyFlow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChaikinMoneyFlow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChaikinMoneyFlow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChaikinMoneyFlow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChaikinOscillator.rs b/crates/xframe-demo/examples/IndChaikinOscillator.rs new file mode 100644 index 0000000..5c95c8c --- /dev/null +++ b/crates/xframe-demo/examples/IndChaikinOscillator.rs @@ -0,0 +1,21 @@ +//! IndChaikinOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChaikinOscillator +//! It opens an 800x600 window showing one IndChaikinOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChaikinOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChaikinOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChaikinOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChaikinVolatility.rs b/crates/xframe-demo/examples/IndChaikinVolatility.rs new file mode 100644 index 0000000..e6502a4 --- /dev/null +++ b/crates/xframe-demo/examples/IndChaikinVolatility.rs @@ -0,0 +1,21 @@ +//! IndChaikinVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChaikinVolatility +//! It opens an 800x600 window showing one IndChaikinVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChaikinVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChaikinVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChaikinVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandeForecastOscillator.rs b/crates/xframe-demo/examples/IndChandeForecastOscillator.rs new file mode 100644 index 0000000..3dc191a --- /dev/null +++ b/crates/xframe-demo/examples/IndChandeForecastOscillator.rs @@ -0,0 +1,21 @@ +//! IndChandeForecastOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandeForecastOscillator +//! It opens an 800x600 window showing one IndChandeForecastOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandeForecastOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandeForecastOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandeForecastOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandeKrollStop.rs b/crates/xframe-demo/examples/IndChandeKrollStop.rs new file mode 100644 index 0000000..f54a2ab --- /dev/null +++ b/crates/xframe-demo/examples/IndChandeKrollStop.rs @@ -0,0 +1,21 @@ +//! IndChandeKrollStop — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandeKrollStop +//! It opens an 800x600 window showing one IndChandeKrollStop widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandeKrollStop")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandeKrollStop", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandeKrollStop example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandeMomentumOscillator.rs b/crates/xframe-demo/examples/IndChandeMomentumOscillator.rs new file mode 100644 index 0000000..fdb24ac --- /dev/null +++ b/crates/xframe-demo/examples/IndChandeMomentumOscillator.rs @@ -0,0 +1,21 @@ +//! IndChandeMomentumOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandeMomentumOscillator +//! It opens an 800x600 window showing one IndChandeMomentumOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandeMomentumOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandeMomentumOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandeMomentumOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandelierExit.rs b/crates/xframe-demo/examples/IndChandelierExit.rs new file mode 100644 index 0000000..94c486b --- /dev/null +++ b/crates/xframe-demo/examples/IndChandelierExit.rs @@ -0,0 +1,21 @@ +//! IndChandelierExit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandelierExit +//! It opens an 800x600 window showing one IndChandelierExit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandelierExit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandelierExit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandelierExit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandelierExitLong.rs b/crates/xframe-demo/examples/IndChandelierExitLong.rs new file mode 100644 index 0000000..f1ace48 --- /dev/null +++ b/crates/xframe-demo/examples/IndChandelierExitLong.rs @@ -0,0 +1,21 @@ +//! IndChandelierExitLong — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandelierExitLong +//! It opens an 800x600 window showing one IndChandelierExitLong widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandelierExitLong")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandelierExitLong", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandelierExitLong example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChandelierExitShort.rs b/crates/xframe-demo/examples/IndChandelierExitShort.rs new file mode 100644 index 0000000..5febf2c --- /dev/null +++ b/crates/xframe-demo/examples/IndChandelierExitShort.rs @@ -0,0 +1,21 @@ +//! IndChandelierExitShort — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChandelierExitShort +//! It opens an 800x600 window showing one IndChandelierExitShort widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChandelierExitShort")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChandelierExitShort", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChandelierExitShort example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChikouSpan.rs b/crates/xframe-demo/examples/IndChikouSpan.rs new file mode 100644 index 0000000..9a8f83b --- /dev/null +++ b/crates/xframe-demo/examples/IndChikouSpan.rs @@ -0,0 +1,21 @@ +//! IndChikouSpan — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChikouSpan +//! It opens an 800x600 window showing one IndChikouSpan widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChikouSpan")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChikouSpan", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChikouSpan example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndChoppinessIndex.rs b/crates/xframe-demo/examples/IndChoppinessIndex.rs new file mode 100644 index 0000000..4c5146c --- /dev/null +++ b/crates/xframe-demo/examples/IndChoppinessIndex.rs @@ -0,0 +1,21 @@ +//! IndChoppinessIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndChoppinessIndex +//! It opens an 800x600 window showing one IndChoppinessIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndChoppinessIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndChoppinessIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndChoppinessIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCloseVolatility.rs b/crates/xframe-demo/examples/IndCloseVolatility.rs new file mode 100644 index 0000000..3f7f5b4 --- /dev/null +++ b/crates/xframe-demo/examples/IndCloseVolatility.rs @@ -0,0 +1,21 @@ +//! IndCloseVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCloseVolatility +//! It opens an 800x600 window showing one IndCloseVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCloseVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCloseVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCloseVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndConnorsRSI.rs b/crates/xframe-demo/examples/IndConnorsRSI.rs new file mode 100644 index 0000000..be162d9 --- /dev/null +++ b/crates/xframe-demo/examples/IndConnorsRSI.rs @@ -0,0 +1,21 @@ +//! IndConnorsRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndConnorsRSI +//! It opens an 800x600 window showing one IndConnorsRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndConnorsRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndConnorsRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndConnorsRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCoppockCurve.rs b/crates/xframe-demo/examples/IndCoppockCurve.rs new file mode 100644 index 0000000..aad77f3 --- /dev/null +++ b/crates/xframe-demo/examples/IndCoppockCurve.rs @@ -0,0 +1,21 @@ +//! IndCoppockCurve — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCoppockCurve +//! It opens an 800x600 window showing one IndCoppockCurve widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCoppockCurve")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCoppockCurve", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCoppockCurve example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCorrelation.rs b/crates/xframe-demo/examples/IndCorrelation.rs new file mode 100644 index 0000000..0a79c1e --- /dev/null +++ b/crates/xframe-demo/examples/IndCorrelation.rs @@ -0,0 +1,21 @@ +//! IndCorrelation — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCorrelation +//! It opens an 800x600 window showing one IndCorrelation widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCorrelation")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCorrelation", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCorrelation example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCorrelationCoefficient.rs b/crates/xframe-demo/examples/IndCorrelationCoefficient.rs new file mode 100644 index 0000000..ae84219 --- /dev/null +++ b/crates/xframe-demo/examples/IndCorrelationCoefficient.rs @@ -0,0 +1,21 @@ +//! IndCorrelationCoefficient — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCorrelationCoefficient +//! It opens an 800x600 window showing one IndCorrelationCoefficient widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCorrelationCoefficient")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCorrelationCoefficient", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCorrelationCoefficient example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCovariance.rs b/crates/xframe-demo/examples/IndCovariance.rs new file mode 100644 index 0000000..b989987 --- /dev/null +++ b/crates/xframe-demo/examples/IndCovariance.rs @@ -0,0 +1,21 @@ +//! IndCovariance — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCovariance +//! It opens an 800x600 window showing one IndCovariance widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCovariance")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCovariance", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCovariance example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCumulativeVolumeDelta.rs b/crates/xframe-demo/examples/IndCumulativeVolumeDelta.rs new file mode 100644 index 0000000..78ad7b1 --- /dev/null +++ b/crates/xframe-demo/examples/IndCumulativeVolumeDelta.rs @@ -0,0 +1,21 @@ +//! IndCumulativeVolumeDelta — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCumulativeVolumeDelta +//! It opens an 800x600 window showing one IndCumulativeVolumeDelta widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCumulativeVolumeDelta")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCumulativeVolumeDelta", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCumulativeVolumeDelta example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCutlerRSI.rs b/crates/xframe-demo/examples/IndCutlerRSI.rs new file mode 100644 index 0000000..970f309 --- /dev/null +++ b/crates/xframe-demo/examples/IndCutlerRSI.rs @@ -0,0 +1,21 @@ +//! IndCutlerRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCutlerRSI +//! It opens an 800x600 window showing one IndCutlerRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCutlerRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCutlerRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCutlerRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndCyberCycle.rs b/crates/xframe-demo/examples/IndCyberCycle.rs new file mode 100644 index 0000000..3b18afa --- /dev/null +++ b/crates/xframe-demo/examples/IndCyberCycle.rs @@ -0,0 +1,21 @@ +//! IndCyberCycle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndCyberCycle +//! It opens an 800x600 window showing one IndCyberCycle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndCyberCycle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndCyberCycle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndCyberCycle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDEMA.rs b/crates/xframe-demo/examples/IndDEMA.rs new file mode 100644 index 0000000..4c81fbe --- /dev/null +++ b/crates/xframe-demo/examples/IndDEMA.rs @@ -0,0 +1,21 @@ +//! IndDEMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDEMA +//! It opens an 800x600 window showing one IndDEMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDEMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDEMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDEMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDPO.rs b/crates/xframe-demo/examples/IndDPO.rs new file mode 100644 index 0000000..6dbfc6e --- /dev/null +++ b/crates/xframe-demo/examples/IndDPO.rs @@ -0,0 +1,21 @@ +//! IndDPO — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDPO +//! It opens an 800x600 window showing one IndDPO widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDPO")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDPO", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDPO example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDSS.rs b/crates/xframe-demo/examples/IndDSS.rs new file mode 100644 index 0000000..300f569 --- /dev/null +++ b/crates/xframe-demo/examples/IndDSS.rs @@ -0,0 +1,21 @@ +//! IndDSS — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDSS +//! It opens an 800x600 window showing one IndDSS widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDSS")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDSS", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDSS example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDX.rs b/crates/xframe-demo/examples/IndDX.rs new file mode 100644 index 0000000..c9d7a4e --- /dev/null +++ b/crates/xframe-demo/examples/IndDX.rs @@ -0,0 +1,21 @@ +//! IndDX — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDX +//! It opens an 800x600 window showing one IndDX widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDX")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDX", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDX example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDeMarker.rs b/crates/xframe-demo/examples/IndDeMarker.rs new file mode 100644 index 0000000..55b257f --- /dev/null +++ b/crates/xframe-demo/examples/IndDeMarker.rs @@ -0,0 +1,21 @@ +//! IndDeMarker — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDeMarker +//! It opens an 800x600 window showing one IndDeMarker widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDeMarker")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDeMarker", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDeMarker example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDecycler.rs b/crates/xframe-demo/examples/IndDecycler.rs new file mode 100644 index 0000000..e967026 --- /dev/null +++ b/crates/xframe-demo/examples/IndDecycler.rs @@ -0,0 +1,21 @@ +//! IndDecycler — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDecycler +//! It opens an 800x600 window showing one IndDecycler widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDecycler")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDecycler", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDecycler example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDemandIndex.rs b/crates/xframe-demo/examples/IndDemandIndex.rs new file mode 100644 index 0000000..1b58249 --- /dev/null +++ b/crates/xframe-demo/examples/IndDemandIndex.rs @@ -0,0 +1,21 @@ +//! IndDemandIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDemandIndex +//! It opens an 800x600 window showing one IndDemandIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDemandIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDemandIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDemandIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDetrendedPriceOscillator.rs b/crates/xframe-demo/examples/IndDetrendedPriceOscillator.rs new file mode 100644 index 0000000..2da0ed0 --- /dev/null +++ b/crates/xframe-demo/examples/IndDetrendedPriceOscillator.rs @@ -0,0 +1,21 @@ +//! IndDetrendedPriceOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDetrendedPriceOscillator +//! It opens an 800x600 window showing one IndDetrendedPriceOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDetrendedPriceOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDetrendedPriceOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDetrendedPriceOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDisparityIndex.rs b/crates/xframe-demo/examples/IndDisparityIndex.rs new file mode 100644 index 0000000..fa497d0 --- /dev/null +++ b/crates/xframe-demo/examples/IndDisparityIndex.rs @@ -0,0 +1,21 @@ +//! IndDisparityIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDisparityIndex +//! It opens an 800x600 window showing one IndDisparityIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDisparityIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDisparityIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDisparityIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDominantCycle.rs b/crates/xframe-demo/examples/IndDominantCycle.rs new file mode 100644 index 0000000..66323d0 --- /dev/null +++ b/crates/xframe-demo/examples/IndDominantCycle.rs @@ -0,0 +1,21 @@ +//! IndDominantCycle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDominantCycle +//! It opens an 800x600 window showing one IndDominantCycle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDominantCycle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDominantCycle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDominantCycle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDominantCyclePeriod.rs b/crates/xframe-demo/examples/IndDominantCyclePeriod.rs new file mode 100644 index 0000000..1f795b1 --- /dev/null +++ b/crates/xframe-demo/examples/IndDominantCyclePeriod.rs @@ -0,0 +1,21 @@ +//! IndDominantCyclePeriod — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDominantCyclePeriod +//! It opens an 800x600 window showing one IndDominantCyclePeriod widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDominantCyclePeriod")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDominantCyclePeriod", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDominantCyclePeriod example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDonchianChannels.rs b/crates/xframe-demo/examples/IndDonchianChannels.rs new file mode 100644 index 0000000..45a885d --- /dev/null +++ b/crates/xframe-demo/examples/IndDonchianChannels.rs @@ -0,0 +1,21 @@ +//! IndDonchianChannels — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDonchianChannels +//! It opens an 800x600 window showing one IndDonchianChannels widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDonchianChannels")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDonchianChannels", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDonchianChannels example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDonchianLower.rs b/crates/xframe-demo/examples/IndDonchianLower.rs new file mode 100644 index 0000000..a0f176c --- /dev/null +++ b/crates/xframe-demo/examples/IndDonchianLower.rs @@ -0,0 +1,21 @@ +//! IndDonchianLower — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDonchianLower +//! It opens an 800x600 window showing one IndDonchianLower widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDonchianLower")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDonchianLower", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDonchianLower example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDonchianMiddle.rs b/crates/xframe-demo/examples/IndDonchianMiddle.rs new file mode 100644 index 0000000..0fbface --- /dev/null +++ b/crates/xframe-demo/examples/IndDonchianMiddle.rs @@ -0,0 +1,21 @@ +//! IndDonchianMiddle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDonchianMiddle +//! It opens an 800x600 window showing one IndDonchianMiddle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDonchianMiddle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDonchianMiddle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDonchianMiddle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDonchianUpper.rs b/crates/xframe-demo/examples/IndDonchianUpper.rs new file mode 100644 index 0000000..5690b46 --- /dev/null +++ b/crates/xframe-demo/examples/IndDonchianUpper.rs @@ -0,0 +1,21 @@ +//! IndDonchianUpper — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDonchianUpper +//! It opens an 800x600 window showing one IndDonchianUpper widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDonchianUpper")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDonchianUpper", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDonchianUpper example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDoubleStochastic.rs b/crates/xframe-demo/examples/IndDoubleStochastic.rs new file mode 100644 index 0000000..e31c1f5 --- /dev/null +++ b/crates/xframe-demo/examples/IndDoubleStochastic.rs @@ -0,0 +1,21 @@ +//! IndDoubleStochastic — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDoubleStochastic +//! It opens an 800x600 window showing one IndDoubleStochastic widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDoubleStochastic")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDoubleStochastic", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDoubleStochastic example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndDynamicMomentumIndex.rs b/crates/xframe-demo/examples/IndDynamicMomentumIndex.rs new file mode 100644 index 0000000..064e171 --- /dev/null +++ b/crates/xframe-demo/examples/IndDynamicMomentumIndex.rs @@ -0,0 +1,21 @@ +//! IndDynamicMomentumIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndDynamicMomentumIndex +//! It opens an 800x600 window showing one IndDynamicMomentumIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndDynamicMomentumIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndDynamicMomentumIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndDynamicMomentumIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEMA.rs b/crates/xframe-demo/examples/IndEMA.rs new file mode 100644 index 0000000..381291b --- /dev/null +++ b/crates/xframe-demo/examples/IndEMA.rs @@ -0,0 +1,21 @@ +//! IndEMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEMA +//! It opens an 800x600 window showing one IndEMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEaseOfMovement.rs b/crates/xframe-demo/examples/IndEaseOfMovement.rs new file mode 100644 index 0000000..20e07b6 --- /dev/null +++ b/crates/xframe-demo/examples/IndEaseOfMovement.rs @@ -0,0 +1,21 @@ +//! IndEaseOfMovement — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEaseOfMovement +//! It opens an 800x600 window showing one IndEaseOfMovement widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEaseOfMovement")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEaseOfMovement", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEaseOfMovement example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEfficiencyRatio.rs b/crates/xframe-demo/examples/IndEfficiencyRatio.rs new file mode 100644 index 0000000..ab6273a --- /dev/null +++ b/crates/xframe-demo/examples/IndEfficiencyRatio.rs @@ -0,0 +1,21 @@ +//! IndEfficiencyRatio — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEfficiencyRatio +//! It opens an 800x600 window showing one IndEfficiencyRatio widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEfficiencyRatio")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEfficiencyRatio", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEfficiencyRatio example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEhlersDecycler.rs b/crates/xframe-demo/examples/IndEhlersDecycler.rs new file mode 100644 index 0000000..2239cbd --- /dev/null +++ b/crates/xframe-demo/examples/IndEhlersDecycler.rs @@ -0,0 +1,21 @@ +//! IndEhlersDecycler — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEhlersDecycler +//! It opens an 800x600 window showing one IndEhlersDecycler widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEhlersDecycler")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEhlersDecycler", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEhlersDecycler example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEhlersSmoothedRSI.rs b/crates/xframe-demo/examples/IndEhlersSmoothedRSI.rs new file mode 100644 index 0000000..190f518 --- /dev/null +++ b/crates/xframe-demo/examples/IndEhlersSmoothedRSI.rs @@ -0,0 +1,21 @@ +//! IndEhlersSmoothedRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEhlersSmoothedRSI +//! It opens an 800x600 window showing one IndEhlersSmoothedRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEhlersSmoothedRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEhlersSmoothedRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEhlersSmoothedRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEhlersSuperSmoother.rs b/crates/xframe-demo/examples/IndEhlersSuperSmoother.rs new file mode 100644 index 0000000..ed463ac --- /dev/null +++ b/crates/xframe-demo/examples/IndEhlersSuperSmoother.rs @@ -0,0 +1,21 @@ +//! IndEhlersSuperSmoother — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEhlersSuperSmoother +//! It opens an 800x600 window showing one IndEhlersSuperSmoother widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEhlersSuperSmoother")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEhlersSuperSmoother", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEhlersSuperSmoother example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEhlersTrendline.rs b/crates/xframe-demo/examples/IndEhlersTrendline.rs new file mode 100644 index 0000000..bce1969 --- /dev/null +++ b/crates/xframe-demo/examples/IndEhlersTrendline.rs @@ -0,0 +1,21 @@ +//! IndEhlersTrendline — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEhlersTrendline +//! It opens an 800x600 window showing one IndEhlersTrendline widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEhlersTrendline")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEhlersTrendline", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEhlersTrendline example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndElderForceIndex.rs b/crates/xframe-demo/examples/IndElderForceIndex.rs new file mode 100644 index 0000000..08f8d80 --- /dev/null +++ b/crates/xframe-demo/examples/IndElderForceIndex.rs @@ -0,0 +1,21 @@ +//! IndElderForceIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndElderForceIndex +//! It opens an 800x600 window showing one IndElderForceIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndElderForceIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndElderForceIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndElderForceIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndElderImpulse.rs b/crates/xframe-demo/examples/IndElderImpulse.rs new file mode 100644 index 0000000..96c78f7 --- /dev/null +++ b/crates/xframe-demo/examples/IndElderImpulse.rs @@ -0,0 +1,21 @@ +//! IndElderImpulse — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndElderImpulse +//! It opens an 800x600 window showing one IndElderImpulse widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndElderImpulse")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndElderImpulse", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndElderImpulse example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndElderRayBear.rs b/crates/xframe-demo/examples/IndElderRayBear.rs new file mode 100644 index 0000000..d480d47 --- /dev/null +++ b/crates/xframe-demo/examples/IndElderRayBear.rs @@ -0,0 +1,21 @@ +//! IndElderRayBear — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndElderRayBear +//! It opens an 800x600 window showing one IndElderRayBear widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndElderRayBear")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndElderRayBear", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndElderRayBear example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndElderRayBull.rs b/crates/xframe-demo/examples/IndElderRayBull.rs new file mode 100644 index 0000000..772ab41 --- /dev/null +++ b/crates/xframe-demo/examples/IndElderRayBull.rs @@ -0,0 +1,21 @@ +//! IndElderRayBull — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndElderRayBull +//! It opens an 800x600 window showing one IndElderRayBull widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndElderRayBull")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndElderRayBull", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndElderRayBull example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndElderSafeZone.rs b/crates/xframe-demo/examples/IndElderSafeZone.rs new file mode 100644 index 0000000..6fe6df5 --- /dev/null +++ b/crates/xframe-demo/examples/IndElderSafeZone.rs @@ -0,0 +1,21 @@ +//! IndElderSafeZone — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndElderSafeZone +//! It opens an 800x600 window showing one IndElderSafeZone widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndElderSafeZone")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndElderSafeZone", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndElderSafeZone example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndErgodicOscillator.rs b/crates/xframe-demo/examples/IndErgodicOscillator.rs new file mode 100644 index 0000000..a4d9bc7 --- /dev/null +++ b/crates/xframe-demo/examples/IndErgodicOscillator.rs @@ -0,0 +1,21 @@ +//! IndErgodicOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndErgodicOscillator +//! It opens an 800x600 window showing one IndErgodicOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndErgodicOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndErgodicOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndErgodicOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndEvenBetterSineWave.rs b/crates/xframe-demo/examples/IndEvenBetterSineWave.rs new file mode 100644 index 0000000..4af0dc8 --- /dev/null +++ b/crates/xframe-demo/examples/IndEvenBetterSineWave.rs @@ -0,0 +1,21 @@ +//! IndEvenBetterSineWave — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndEvenBetterSineWave +//! It opens an 800x600 window showing one IndEvenBetterSineWave widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndEvenBetterSineWave")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndEvenBetterSineWave", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndEvenBetterSineWave example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFAMA.rs b/crates/xframe-demo/examples/IndFAMA.rs new file mode 100644 index 0000000..fc6d1d4 --- /dev/null +++ b/crates/xframe-demo/examples/IndFAMA.rs @@ -0,0 +1,21 @@ +//! IndFAMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFAMA +//! It opens an 800x600 window showing one IndFAMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFAMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFAMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFAMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFRAMA.rs b/crates/xframe-demo/examples/IndFRAMA.rs new file mode 100644 index 0000000..d83938b --- /dev/null +++ b/crates/xframe-demo/examples/IndFRAMA.rs @@ -0,0 +1,21 @@ +//! IndFRAMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFRAMA +//! It opens an 800x600 window showing one IndFRAMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFRAMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFRAMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFRAMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFibonacciPivotPoints.rs b/crates/xframe-demo/examples/IndFibonacciPivotPoints.rs new file mode 100644 index 0000000..9279707 --- /dev/null +++ b/crates/xframe-demo/examples/IndFibonacciPivotPoints.rs @@ -0,0 +1,21 @@ +//! IndFibonacciPivotPoints — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFibonacciPivotPoints +//! It opens an 800x600 window showing one IndFibonacciPivotPoints widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFibonacciPivotPoints")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFibonacciPivotPoints", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFibonacciPivotPoints example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFisherTransform.rs b/crates/xframe-demo/examples/IndFisherTransform.rs new file mode 100644 index 0000000..5819bf7 --- /dev/null +++ b/crates/xframe-demo/examples/IndFisherTransform.rs @@ -0,0 +1,21 @@ +//! IndFisherTransform — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFisherTransform +//! It opens an 800x600 window showing one IndFisherTransform widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFisherTransform")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFisherTransform", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFisherTransform example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFractalDimension.rs b/crates/xframe-demo/examples/IndFractalDimension.rs new file mode 100644 index 0000000..1641f14 --- /dev/null +++ b/crates/xframe-demo/examples/IndFractalDimension.rs @@ -0,0 +1,21 @@ +//! IndFractalDimension — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFractalDimension +//! It opens an 800x600 window showing one IndFractalDimension widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFractalDimension")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFractalDimension", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFractalDimension example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFractalDimensionIndex.rs b/crates/xframe-demo/examples/IndFractalDimensionIndex.rs new file mode 100644 index 0000000..a8508a2 --- /dev/null +++ b/crates/xframe-demo/examples/IndFractalDimensionIndex.rs @@ -0,0 +1,21 @@ +//! IndFractalDimensionIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFractalDimensionIndex +//! It opens an 800x600 window showing one IndFractalDimensionIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFractalDimensionIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFractalDimensionIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFractalDimensionIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFractalDown.rs b/crates/xframe-demo/examples/IndFractalDown.rs new file mode 100644 index 0000000..90166cf --- /dev/null +++ b/crates/xframe-demo/examples/IndFractalDown.rs @@ -0,0 +1,21 @@ +//! IndFractalDown — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFractalDown +//! It opens an 800x600 window showing one IndFractalDown widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFractalDown")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFractalDown", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFractalDown example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndFractalUp.rs b/crates/xframe-demo/examples/IndFractalUp.rs new file mode 100644 index 0000000..c53e627 --- /dev/null +++ b/crates/xframe-demo/examples/IndFractalUp.rs @@ -0,0 +1,21 @@ +//! IndFractalUp — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndFractalUp +//! It opens an 800x600 window showing one IndFractalUp widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndFractalUp")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndFractalUp", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndFractalUp example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGannHiLoActivator.rs b/crates/xframe-demo/examples/IndGannHiLoActivator.rs new file mode 100644 index 0000000..2c8f94f --- /dev/null +++ b/crates/xframe-demo/examples/IndGannHiLoActivator.rs @@ -0,0 +1,21 @@ +//! IndGannHiLoActivator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGannHiLoActivator +//! It opens an 800x600 window showing one IndGannHiLoActivator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGannHiLoActivator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGannHiLoActivator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGannHiLoActivator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGannSwingOscillator.rs b/crates/xframe-demo/examples/IndGannSwingOscillator.rs new file mode 100644 index 0000000..0e9498b --- /dev/null +++ b/crates/xframe-demo/examples/IndGannSwingOscillator.rs @@ -0,0 +1,21 @@ +//! IndGannSwingOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGannSwingOscillator +//! It opens an 800x600 window showing one IndGannSwingOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGannSwingOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGannSwingOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGannSwingOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGarmanKlassVolatility.rs b/crates/xframe-demo/examples/IndGarmanKlassVolatility.rs new file mode 100644 index 0000000..b671813 --- /dev/null +++ b/crates/xframe-demo/examples/IndGarmanKlassVolatility.rs @@ -0,0 +1,21 @@ +//! IndGarmanKlassVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGarmanKlassVolatility +//! It opens an 800x600 window showing one IndGarmanKlassVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGarmanKlassVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGarmanKlassVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGarmanKlassVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGatorOscillator.rs b/crates/xframe-demo/examples/IndGatorOscillator.rs new file mode 100644 index 0000000..829247a --- /dev/null +++ b/crates/xframe-demo/examples/IndGatorOscillator.rs @@ -0,0 +1,21 @@ +//! IndGatorOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGatorOscillator +//! It opens an 800x600 window showing one IndGatorOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGatorOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGatorOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGatorOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGaussianMA.rs b/crates/xframe-demo/examples/IndGaussianMA.rs new file mode 100644 index 0000000..cfa8101 --- /dev/null +++ b/crates/xframe-demo/examples/IndGaussianMA.rs @@ -0,0 +1,21 @@ +//! IndGaussianMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGaussianMA +//! It opens an 800x600 window showing one IndGaussianMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGaussianMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGaussianMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGaussianMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGopalakrishnanRangeIndex.rs b/crates/xframe-demo/examples/IndGopalakrishnanRangeIndex.rs new file mode 100644 index 0000000..ef33001 --- /dev/null +++ b/crates/xframe-demo/examples/IndGopalakrishnanRangeIndex.rs @@ -0,0 +1,21 @@ +//! IndGopalakrishnanRangeIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGopalakrishnanRangeIndex +//! It opens an 800x600 window showing one IndGopalakrishnanRangeIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGopalakrishnanRangeIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGopalakrishnanRangeIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGopalakrishnanRangeIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndGuppyMMA.rs b/crates/xframe-demo/examples/IndGuppyMMA.rs new file mode 100644 index 0000000..0b893b2 --- /dev/null +++ b/crates/xframe-demo/examples/IndGuppyMMA.rs @@ -0,0 +1,21 @@ +//! IndGuppyMMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndGuppyMMA +//! It opens an 800x600 window showing one IndGuppyMMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndGuppyMMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndGuppyMMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndGuppyMMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndHMA.rs b/crates/xframe-demo/examples/IndHMA.rs new file mode 100644 index 0000000..726e84c --- /dev/null +++ b/crates/xframe-demo/examples/IndHMA.rs @@ -0,0 +1,21 @@ +//! IndHMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndHMA +//! It opens an 800x600 window showing one IndHMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndHMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndHMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndHMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndHalfTrend.rs b/crates/xframe-demo/examples/IndHalfTrend.rs new file mode 100644 index 0000000..4299d99 --- /dev/null +++ b/crates/xframe-demo/examples/IndHalfTrend.rs @@ -0,0 +1,21 @@ +//! IndHalfTrend — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndHalfTrend +//! It opens an 800x600 window showing one IndHalfTrend widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndHalfTrend")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndHalfTrend", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndHalfTrend example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndHighLowRange.rs b/crates/xframe-demo/examples/IndHighLowRange.rs new file mode 100644 index 0000000..32a1b67 --- /dev/null +++ b/crates/xframe-demo/examples/IndHighLowRange.rs @@ -0,0 +1,21 @@ +//! IndHighLowRange — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndHighLowRange +//! It opens an 800x600 window showing one IndHighLowRange widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndHighLowRange")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndHighLowRange", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndHighLowRange example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndHistoricalVolatility.rs b/crates/xframe-demo/examples/IndHistoricalVolatility.rs new file mode 100644 index 0000000..8cc8328 --- /dev/null +++ b/crates/xframe-demo/examples/IndHistoricalVolatility.rs @@ -0,0 +1,21 @@ +//! IndHistoricalVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndHistoricalVolatility +//! It opens an 800x600 window showing one IndHistoricalVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndHistoricalVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndHistoricalVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndHistoricalVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndHurstExponent.rs b/crates/xframe-demo/examples/IndHurstExponent.rs new file mode 100644 index 0000000..16e9f92 --- /dev/null +++ b/crates/xframe-demo/examples/IndHurstExponent.rs @@ -0,0 +1,21 @@ +//! IndHurstExponent — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndHurstExponent +//! It opens an 800x600 window showing one IndHurstExponent widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndHurstExponent")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndHurstExponent", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndHurstExponent example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndInertia.rs b/crates/xframe-demo/examples/IndInertia.rs new file mode 100644 index 0000000..d5d83da --- /dev/null +++ b/crates/xframe-demo/examples/IndInertia.rs @@ -0,0 +1,21 @@ +//! IndInertia — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndInertia +//! It opens an 800x600 window showing one IndInertia widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndInertia")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndInertia", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndInertia example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndIntradayIntensityIndex.rs b/crates/xframe-demo/examples/IndIntradayIntensityIndex.rs new file mode 100644 index 0000000..1adc242 --- /dev/null +++ b/crates/xframe-demo/examples/IndIntradayIntensityIndex.rs @@ -0,0 +1,21 @@ +//! IndIntradayIntensityIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndIntradayIntensityIndex +//! It opens an 800x600 window showing one IndIntradayIntensityIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndIntradayIntensityIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndIntradayIntensityIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndIntradayIntensityIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndIntradayMomentumIndex.rs b/crates/xframe-demo/examples/IndIntradayMomentumIndex.rs new file mode 100644 index 0000000..1caaeda --- /dev/null +++ b/crates/xframe-demo/examples/IndIntradayMomentumIndex.rs @@ -0,0 +1,21 @@ +//! IndIntradayMomentumIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndIntradayMomentumIndex +//! It opens an 800x600 window showing one IndIntradayMomentumIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndIntradayMomentumIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndIntradayMomentumIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndIntradayMomentumIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndInverseFisherTransform.rs b/crates/xframe-demo/examples/IndInverseFisherTransform.rs new file mode 100644 index 0000000..f0cc230 --- /dev/null +++ b/crates/xframe-demo/examples/IndInverseFisherTransform.rs @@ -0,0 +1,21 @@ +//! IndInverseFisherTransform — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndInverseFisherTransform +//! It opens an 800x600 window showing one IndInverseFisherTransform widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndInverseFisherTransform")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndInverseFisherTransform", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndInverseFisherTransform example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndJurikMovingAverage.rs b/crates/xframe-demo/examples/IndJurikMovingAverage.rs new file mode 100644 index 0000000..48447f4 --- /dev/null +++ b/crates/xframe-demo/examples/IndJurikMovingAverage.rs @@ -0,0 +1,21 @@ +//! IndJurikMovingAverage — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndJurikMovingAverage +//! It opens an 800x600 window showing one IndJurikMovingAverage widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndJurikMovingAverage")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndJurikMovingAverage", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndJurikMovingAverage example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndJurikVelocity.rs b/crates/xframe-demo/examples/IndJurikVelocity.rs new file mode 100644 index 0000000..2466f7a --- /dev/null +++ b/crates/xframe-demo/examples/IndJurikVelocity.rs @@ -0,0 +1,21 @@ +//! IndJurikVelocity — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndJurikVelocity +//! It opens an 800x600 window showing one IndJurikVelocity widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndJurikVelocity")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndJurikVelocity", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndJurikVelocity example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKAMA.rs b/crates/xframe-demo/examples/IndKAMA.rs new file mode 100644 index 0000000..1860ea5 --- /dev/null +++ b/crates/xframe-demo/examples/IndKAMA.rs @@ -0,0 +1,21 @@ +//! IndKAMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKAMA +//! It opens an 800x600 window showing one IndKAMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKAMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKAMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKAMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKDJ.rs b/crates/xframe-demo/examples/IndKDJ.rs new file mode 100644 index 0000000..1310618 --- /dev/null +++ b/crates/xframe-demo/examples/IndKDJ.rs @@ -0,0 +1,21 @@ +//! IndKDJ — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKDJ +//! It opens an 800x600 window showing one IndKDJ widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKDJ")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKDJ", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKDJ example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKST.rs b/crates/xframe-demo/examples/IndKST.rs new file mode 100644 index 0000000..84d0373 --- /dev/null +++ b/crates/xframe-demo/examples/IndKST.rs @@ -0,0 +1,21 @@ +//! IndKST — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKST +//! It opens an 800x600 window showing one IndKST widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKST")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKST", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKST example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKairi.rs b/crates/xframe-demo/examples/IndKairi.rs new file mode 100644 index 0000000..988eef1 --- /dev/null +++ b/crates/xframe-demo/examples/IndKairi.rs @@ -0,0 +1,21 @@ +//! IndKairi — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKairi +//! It opens an 800x600 window showing one IndKairi widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKairi")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKairi", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKairi example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKeltnerBandwidth.rs b/crates/xframe-demo/examples/IndKeltnerBandwidth.rs new file mode 100644 index 0000000..a19020f --- /dev/null +++ b/crates/xframe-demo/examples/IndKeltnerBandwidth.rs @@ -0,0 +1,21 @@ +//! IndKeltnerBandwidth — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKeltnerBandwidth +//! It opens an 800x600 window showing one IndKeltnerBandwidth widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKeltnerBandwidth")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKeltnerBandwidth", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKeltnerBandwidth example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKeltnerChannels.rs b/crates/xframe-demo/examples/IndKeltnerChannels.rs new file mode 100644 index 0000000..59c7947 --- /dev/null +++ b/crates/xframe-demo/examples/IndKeltnerChannels.rs @@ -0,0 +1,21 @@ +//! IndKeltnerChannels — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKeltnerChannels +//! It opens an 800x600 window showing one IndKeltnerChannels widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKeltnerChannels")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKeltnerChannels", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKeltnerChannels example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKijunSen.rs b/crates/xframe-demo/examples/IndKijunSen.rs new file mode 100644 index 0000000..480d191 --- /dev/null +++ b/crates/xframe-demo/examples/IndKijunSen.rs @@ -0,0 +1,21 @@ +//! IndKijunSen — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKijunSen +//! It opens an 800x600 window showing one IndKijunSen widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKijunSen")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKijunSen", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKijunSen example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKlingerVolumeOscillator.rs b/crates/xframe-demo/examples/IndKlingerVolumeOscillator.rs new file mode 100644 index 0000000..5c63d51 --- /dev/null +++ b/crates/xframe-demo/examples/IndKlingerVolumeOscillator.rs @@ -0,0 +1,21 @@ +//! IndKlingerVolumeOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKlingerVolumeOscillator +//! It opens an 800x600 window showing one IndKlingerVolumeOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKlingerVolumeOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKlingerVolumeOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKlingerVolumeOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndKurtosis.rs b/crates/xframe-demo/examples/IndKurtosis.rs new file mode 100644 index 0000000..f1ed8c7 --- /dev/null +++ b/crates/xframe-demo/examples/IndKurtosis.rs @@ -0,0 +1,21 @@ +//! IndKurtosis — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndKurtosis +//! It opens an 800x600 window showing one IndKurtosis widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndKurtosis")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndKurtosis", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndKurtosis example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLSMA.rs b/crates/xframe-demo/examples/IndLSMA.rs new file mode 100644 index 0000000..efba074 --- /dev/null +++ b/crates/xframe-demo/examples/IndLSMA.rs @@ -0,0 +1,21 @@ +//! IndLSMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLSMA +//! It opens an 800x600 window showing one IndLSMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLSMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLSMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLSMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLaguerreFilter.rs b/crates/xframe-demo/examples/IndLaguerreFilter.rs new file mode 100644 index 0000000..abf9b8c --- /dev/null +++ b/crates/xframe-demo/examples/IndLaguerreFilter.rs @@ -0,0 +1,21 @@ +//! IndLaguerreFilter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLaguerreFilter +//! It opens an 800x600 window showing one IndLaguerreFilter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLaguerreFilter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLaguerreFilter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLaguerreFilter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLaguerreRSI.rs b/crates/xframe-demo/examples/IndLaguerreRSI.rs new file mode 100644 index 0000000..74cb0d1 --- /dev/null +++ b/crates/xframe-demo/examples/IndLaguerreRSI.rs @@ -0,0 +1,21 @@ +//! IndLaguerreRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLaguerreRSI +//! It opens an 800x600 window showing one IndLaguerreRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLaguerreRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLaguerreRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLaguerreRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinReg.rs b/crates/xframe-demo/examples/IndLinReg.rs new file mode 100644 index 0000000..b9ff1e7 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinReg.rs @@ -0,0 +1,21 @@ +//! IndLinReg — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinReg +//! It opens an 800x600 window showing one IndLinReg widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinReg")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinReg", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinReg example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinRegAngle.rs b/crates/xframe-demo/examples/IndLinRegAngle.rs new file mode 100644 index 0000000..c9866b8 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinRegAngle.rs @@ -0,0 +1,21 @@ +//! IndLinRegAngle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinRegAngle +//! It opens an 800x600 window showing one IndLinRegAngle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinRegAngle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinRegAngle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinRegAngle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinRegIntercept.rs b/crates/xframe-demo/examples/IndLinRegIntercept.rs new file mode 100644 index 0000000..542e492 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinRegIntercept.rs @@ -0,0 +1,21 @@ +//! IndLinRegIntercept — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinRegIntercept +//! It opens an 800x600 window showing one IndLinRegIntercept widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinRegIntercept")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinRegIntercept", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinRegIntercept example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinRegSlope.rs b/crates/xframe-demo/examples/IndLinRegSlope.rs new file mode 100644 index 0000000..ddbb682 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinRegSlope.rs @@ -0,0 +1,21 @@ +//! IndLinRegSlope — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinRegSlope +//! It opens an 800x600 window showing one IndLinRegSlope widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinRegSlope")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinRegSlope", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinRegSlope example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinearRegressionForecast.rs b/crates/xframe-demo/examples/IndLinearRegressionForecast.rs new file mode 100644 index 0000000..38ff896 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinearRegressionForecast.rs @@ -0,0 +1,21 @@ +//! IndLinearRegressionForecast — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinearRegressionForecast +//! It opens an 800x600 window showing one IndLinearRegressionForecast widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinearRegressionForecast")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinearRegressionForecast", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinearRegressionForecast example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinearRegressionIntercept.rs b/crates/xframe-demo/examples/IndLinearRegressionIntercept.rs new file mode 100644 index 0000000..937edbd --- /dev/null +++ b/crates/xframe-demo/examples/IndLinearRegressionIntercept.rs @@ -0,0 +1,21 @@ +//! IndLinearRegressionIntercept — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinearRegressionIntercept +//! It opens an 800x600 window showing one IndLinearRegressionIntercept widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinearRegressionIntercept")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinearRegressionIntercept", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinearRegressionIntercept example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinearRegressionOscillator.rs b/crates/xframe-demo/examples/IndLinearRegressionOscillator.rs new file mode 100644 index 0000000..4a40d69 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinearRegressionOscillator.rs @@ -0,0 +1,21 @@ +//! IndLinearRegressionOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinearRegressionOscillator +//! It opens an 800x600 window showing one IndLinearRegressionOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinearRegressionOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinearRegressionOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinearRegressionOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndLinearRegressionSlope.rs b/crates/xframe-demo/examples/IndLinearRegressionSlope.rs new file mode 100644 index 0000000..bf0d0a1 --- /dev/null +++ b/crates/xframe-demo/examples/IndLinearRegressionSlope.rs @@ -0,0 +1,21 @@ +//! IndLinearRegressionSlope — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndLinearRegressionSlope +//! It opens an 800x600 window showing one IndLinearRegressionSlope widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndLinearRegressionSlope")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndLinearRegressionSlope", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndLinearRegressionSlope example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMACD.rs b/crates/xframe-demo/examples/IndMACD.rs new file mode 100644 index 0000000..4e7eb91 --- /dev/null +++ b/crates/xframe-demo/examples/IndMACD.rs @@ -0,0 +1,21 @@ +//! IndMACD — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMACD +//! It opens an 800x600 window showing one IndMACD widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMACD")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMACD", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMACD example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMACDHistogram.rs b/crates/xframe-demo/examples/IndMACDHistogram.rs new file mode 100644 index 0000000..b094aad --- /dev/null +++ b/crates/xframe-demo/examples/IndMACDHistogram.rs @@ -0,0 +1,21 @@ +//! IndMACDHistogram — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMACDHistogram +//! It opens an 800x600 window showing one IndMACDHistogram widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMACDHistogram")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMACDHistogram", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMACDHistogram example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMACDofRSI.rs b/crates/xframe-demo/examples/IndMACDofRSI.rs new file mode 100644 index 0000000..19a4ba8 --- /dev/null +++ b/crates/xframe-demo/examples/IndMACDofRSI.rs @@ -0,0 +1,21 @@ +//! IndMACDofRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMACDofRSI +//! It opens an 800x600 window showing one IndMACDofRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMACDofRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMACDofRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMACDofRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMAEnvelopeLower.rs b/crates/xframe-demo/examples/IndMAEnvelopeLower.rs new file mode 100644 index 0000000..5b733d1 --- /dev/null +++ b/crates/xframe-demo/examples/IndMAEnvelopeLower.rs @@ -0,0 +1,21 @@ +//! IndMAEnvelopeLower — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMAEnvelopeLower +//! It opens an 800x600 window showing one IndMAEnvelopeLower widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMAEnvelopeLower")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMAEnvelopeLower", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMAEnvelopeLower example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMAEnvelopeUpper.rs b/crates/xframe-demo/examples/IndMAEnvelopeUpper.rs new file mode 100644 index 0000000..dff7f3c --- /dev/null +++ b/crates/xframe-demo/examples/IndMAEnvelopeUpper.rs @@ -0,0 +1,21 @@ +//! IndMAEnvelopeUpper — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMAEnvelopeUpper +//! It opens an 800x600 window showing one IndMAEnvelopeUpper widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMAEnvelopeUpper")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMAEnvelopeUpper", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMAEnvelopeUpper example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMAMA.rs b/crates/xframe-demo/examples/IndMAMA.rs new file mode 100644 index 0000000..f0c4325 --- /dev/null +++ b/crates/xframe-demo/examples/IndMAMA.rs @@ -0,0 +1,21 @@ +//! IndMAMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMAMA +//! It opens an 800x600 window showing one IndMAMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMAMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMAMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMAMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMassIndex.rs b/crates/xframe-demo/examples/IndMassIndex.rs new file mode 100644 index 0000000..41905b1 --- /dev/null +++ b/crates/xframe-demo/examples/IndMassIndex.rs @@ -0,0 +1,21 @@ +//! IndMassIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMassIndex +//! It opens an 800x600 window showing one IndMassIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMassIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMassIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMassIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMcGinley.rs b/crates/xframe-demo/examples/IndMcGinley.rs new file mode 100644 index 0000000..ca1f326 --- /dev/null +++ b/crates/xframe-demo/examples/IndMcGinley.rs @@ -0,0 +1,21 @@ +//! IndMcGinley — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMcGinley +//! It opens an 800x600 window showing one IndMcGinley widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMcGinley")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMcGinley", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMcGinley example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMedianMA.rs b/crates/xframe-demo/examples/IndMedianMA.rs new file mode 100644 index 0000000..2b384a4 --- /dev/null +++ b/crates/xframe-demo/examples/IndMedianMA.rs @@ -0,0 +1,21 @@ +//! IndMedianMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMedianMA +//! It opens an 800x600 window showing one IndMedianMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMedianMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMedianMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMedianMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMedianPrice.rs b/crates/xframe-demo/examples/IndMedianPrice.rs new file mode 100644 index 0000000..cd1af1a --- /dev/null +++ b/crates/xframe-demo/examples/IndMedianPrice.rs @@ -0,0 +1,21 @@ +//! IndMedianPrice — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMedianPrice +//! It opens an 800x600 window showing one IndMedianPrice widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMedianPrice")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMedianPrice", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMedianPrice example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMinusDI.rs b/crates/xframe-demo/examples/IndMinusDI.rs new file mode 100644 index 0000000..047776e --- /dev/null +++ b/crates/xframe-demo/examples/IndMinusDI.rs @@ -0,0 +1,21 @@ +//! IndMinusDI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMinusDI +//! It opens an 800x600 window showing one IndMinusDI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMinusDI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMinusDI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMinusDI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMomentum.rs b/crates/xframe-demo/examples/IndMomentum.rs new file mode 100644 index 0000000..042dcb7 --- /dev/null +++ b/crates/xframe-demo/examples/IndMomentum.rs @@ -0,0 +1,21 @@ +//! IndMomentum — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMomentum +//! It opens an 800x600 window showing one IndMomentum widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMomentum")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMomentum", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMomentum example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMoneyFlowIndex.rs b/crates/xframe-demo/examples/IndMoneyFlowIndex.rs new file mode 100644 index 0000000..8722794 --- /dev/null +++ b/crates/xframe-demo/examples/IndMoneyFlowIndex.rs @@ -0,0 +1,21 @@ +//! IndMoneyFlowIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMoneyFlowIndex +//! It opens an 800x600 window showing one IndMoneyFlowIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMoneyFlowIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMoneyFlowIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMoneyFlowIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMoneyFlowVolume.rs b/crates/xframe-demo/examples/IndMoneyFlowVolume.rs new file mode 100644 index 0000000..78dd2f6 --- /dev/null +++ b/crates/xframe-demo/examples/IndMoneyFlowVolume.rs @@ -0,0 +1,21 @@ +//! IndMoneyFlowVolume — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMoneyFlowVolume +//! It opens an 800x600 window showing one IndMoneyFlowVolume widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMoneyFlowVolume")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMoneyFlowVolume", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMoneyFlowVolume example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndMovingAverageRibbon.rs b/crates/xframe-demo/examples/IndMovingAverageRibbon.rs new file mode 100644 index 0000000..212227f --- /dev/null +++ b/crates/xframe-demo/examples/IndMovingAverageRibbon.rs @@ -0,0 +1,21 @@ +//! IndMovingAverageRibbon — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndMovingAverageRibbon +//! It opens an 800x600 window showing one IndMovingAverageRibbon widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndMovingAverageRibbon")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndMovingAverageRibbon", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndMovingAverageRibbon example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndNATR.rs b/crates/xframe-demo/examples/IndNATR.rs new file mode 100644 index 0000000..38f7b84 --- /dev/null +++ b/crates/xframe-demo/examples/IndNATR.rs @@ -0,0 +1,21 @@ +//! IndNATR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndNATR +//! It opens an 800x600 window showing one IndNATR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndNATR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndNATR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndNATR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndNegativeVolumeIndex.rs b/crates/xframe-demo/examples/IndNegativeVolumeIndex.rs new file mode 100644 index 0000000..9798c5c --- /dev/null +++ b/crates/xframe-demo/examples/IndNegativeVolumeIndex.rs @@ -0,0 +1,21 @@ +//! IndNegativeVolumeIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndNegativeVolumeIndex +//! It opens an 800x600 window showing one IndNegativeVolumeIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndNegativeVolumeIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndNegativeVolumeIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndNegativeVolumeIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndNormalizedROC.rs b/crates/xframe-demo/examples/IndNormalizedROC.rs new file mode 100644 index 0000000..4d1ba0e --- /dev/null +++ b/crates/xframe-demo/examples/IndNormalizedROC.rs @@ -0,0 +1,21 @@ +//! IndNormalizedROC — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndNormalizedROC +//! It opens an 800x600 window showing one IndNormalizedROC widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndNormalizedROC")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndNormalizedROC", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndNormalizedROC example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndOBV.rs b/crates/xframe-demo/examples/IndOBV.rs new file mode 100644 index 0000000..8c33401 --- /dev/null +++ b/crates/xframe-demo/examples/IndOBV.rs @@ -0,0 +1,21 @@ +//! IndOBV — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndOBV +//! It opens an 800x600 window showing one IndOBV widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndOBV")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndOBV", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndOBV example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPPO.rs b/crates/xframe-demo/examples/IndPPO.rs new file mode 100644 index 0000000..740099b --- /dev/null +++ b/crates/xframe-demo/examples/IndPPO.rs @@ -0,0 +1,21 @@ +//! IndPPO — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPPO +//! It opens an 800x600 window showing one IndPPO widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPPO")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPPO", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPPO example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPSAR.rs b/crates/xframe-demo/examples/IndPSAR.rs new file mode 100644 index 0000000..f30775e --- /dev/null +++ b/crates/xframe-demo/examples/IndPSAR.rs @@ -0,0 +1,21 @@ +//! IndPSAR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPSAR +//! It opens an 800x600 window showing one IndPSAR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPSAR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPSAR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPSAR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndParkinsonVolatility.rs b/crates/xframe-demo/examples/IndParkinsonVolatility.rs new file mode 100644 index 0000000..309ecf0 --- /dev/null +++ b/crates/xframe-demo/examples/IndParkinsonVolatility.rs @@ -0,0 +1,21 @@ +//! IndParkinsonVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndParkinsonVolatility +//! It opens an 800x600 window showing one IndParkinsonVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndParkinsonVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndParkinsonVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndParkinsonVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPercentRank.rs b/crates/xframe-demo/examples/IndPercentRank.rs new file mode 100644 index 0000000..18cb9f4 --- /dev/null +++ b/crates/xframe-demo/examples/IndPercentRank.rs @@ -0,0 +1,21 @@ +//! IndPercentRank — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPercentRank +//! It opens an 800x600 window showing one IndPercentRank widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPercentRank")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPercentRank", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPercentRank example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPercentageVolumeOscillator.rs b/crates/xframe-demo/examples/IndPercentageVolumeOscillator.rs new file mode 100644 index 0000000..4245ca4 --- /dev/null +++ b/crates/xframe-demo/examples/IndPercentageVolumeOscillator.rs @@ -0,0 +1,21 @@ +//! IndPercentageVolumeOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPercentageVolumeOscillator +//! It opens an 800x600 window showing one IndPercentageVolumeOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPercentageVolumeOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPercentageVolumeOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPercentageVolumeOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPercentileRank.rs b/crates/xframe-demo/examples/IndPercentileRank.rs new file mode 100644 index 0000000..ba2db13 --- /dev/null +++ b/crates/xframe-demo/examples/IndPercentileRank.rs @@ -0,0 +1,21 @@ +//! IndPercentileRank — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPercentileRank +//! It opens an 800x600 window showing one IndPercentileRank widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPercentileRank")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPercentileRank", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPercentileRank example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPivotPoint.rs b/crates/xframe-demo/examples/IndPivotPoint.rs new file mode 100644 index 0000000..2748c2e --- /dev/null +++ b/crates/xframe-demo/examples/IndPivotPoint.rs @@ -0,0 +1,21 @@ +//! IndPivotPoint — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPivotPoint +//! It opens an 800x600 window showing one IndPivotPoint widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPivotPoint")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPivotPoint", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPivotPoint example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPlusDI.rs b/crates/xframe-demo/examples/IndPlusDI.rs new file mode 100644 index 0000000..23429d6 --- /dev/null +++ b/crates/xframe-demo/examples/IndPlusDI.rs @@ -0,0 +1,21 @@ +//! IndPlusDI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPlusDI +//! It opens an 800x600 window showing one IndPlusDI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPlusDI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPlusDI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPlusDI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPositiveVolumeIndex.rs b/crates/xframe-demo/examples/IndPositiveVolumeIndex.rs new file mode 100644 index 0000000..f8f8d17 --- /dev/null +++ b/crates/xframe-demo/examples/IndPositiveVolumeIndex.rs @@ -0,0 +1,21 @@ +//! IndPositiveVolumeIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPositiveVolumeIndex +//! It opens an 800x600 window showing one IndPositiveVolumeIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPositiveVolumeIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPositiveVolumeIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPositiveVolumeIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPrettyGoodOscillator.rs b/crates/xframe-demo/examples/IndPrettyGoodOscillator.rs new file mode 100644 index 0000000..c720e49 --- /dev/null +++ b/crates/xframe-demo/examples/IndPrettyGoodOscillator.rs @@ -0,0 +1,21 @@ +//! IndPrettyGoodOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPrettyGoodOscillator +//! It opens an 800x600 window showing one IndPrettyGoodOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPrettyGoodOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPrettyGoodOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPrettyGoodOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndPriceMomentumOscillator.rs b/crates/xframe-demo/examples/IndPriceMomentumOscillator.rs new file mode 100644 index 0000000..85b4a96 --- /dev/null +++ b/crates/xframe-demo/examples/IndPriceMomentumOscillator.rs @@ -0,0 +1,21 @@ +//! IndPriceMomentumOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndPriceMomentumOscillator +//! It opens an 800x600 window showing one IndPriceMomentumOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndPriceMomentumOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndPriceMomentumOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndPriceMomentumOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndQStick.rs b/crates/xframe-demo/examples/IndQStick.rs new file mode 100644 index 0000000..0de3f89 --- /dev/null +++ b/crates/xframe-demo/examples/IndQStick.rs @@ -0,0 +1,21 @@ +//! IndQStick — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndQStick +//! It opens an 800x600 window showing one IndQStick widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndQStick")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndQStick", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndQStick example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRMA.rs b/crates/xframe-demo/examples/IndRMA.rs new file mode 100644 index 0000000..d83e0f9 --- /dev/null +++ b/crates/xframe-demo/examples/IndRMA.rs @@ -0,0 +1,21 @@ +//! IndRMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRMA +//! It opens an 800x600 window showing one IndRMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndROC.rs b/crates/xframe-demo/examples/IndROC.rs new file mode 100644 index 0000000..79c447b --- /dev/null +++ b/crates/xframe-demo/examples/IndROC.rs @@ -0,0 +1,21 @@ +//! IndROC — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndROC +//! It opens an 800x600 window showing one IndROC widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndROC")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndROC", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndROC example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndROCR.rs b/crates/xframe-demo/examples/IndROCR.rs new file mode 100644 index 0000000..683adf9 --- /dev/null +++ b/crates/xframe-demo/examples/IndROCR.rs @@ -0,0 +1,21 @@ +//! IndROCR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndROCR +//! It opens an 800x600 window showing one IndROCR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndROCR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndROCR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndROCR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRSI.rs b/crates/xframe-demo/examples/IndRSI.rs new file mode 100644 index 0000000..efba902 --- /dev/null +++ b/crates/xframe-demo/examples/IndRSI.rs @@ -0,0 +1,21 @@ +//! IndRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRSI +//! It opens an 800x600 window showing one IndRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRSX.rs b/crates/xframe-demo/examples/IndRSX.rs new file mode 100644 index 0000000..d2c42a0 --- /dev/null +++ b/crates/xframe-demo/examples/IndRSX.rs @@ -0,0 +1,21 @@ +//! IndRSX — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRSX +//! It opens an 800x600 window showing one IndRSX widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRSX")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRSX", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRSX example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRSquared.rs b/crates/xframe-demo/examples/IndRSquared.rs new file mode 100644 index 0000000..1446888 --- /dev/null +++ b/crates/xframe-demo/examples/IndRSquared.rs @@ -0,0 +1,21 @@ +//! IndRSquared — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRSquared +//! It opens an 800x600 window showing one IndRSquared widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRSquared")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRSquared", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRSquared example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRWIHigh.rs b/crates/xframe-demo/examples/IndRWIHigh.rs new file mode 100644 index 0000000..0ac146d --- /dev/null +++ b/crates/xframe-demo/examples/IndRWIHigh.rs @@ -0,0 +1,21 @@ +//! IndRWIHigh — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRWIHigh +//! It opens an 800x600 window showing one IndRWIHigh widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRWIHigh")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRWIHigh", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRWIHigh example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRWILow.rs b/crates/xframe-demo/examples/IndRWILow.rs new file mode 100644 index 0000000..1c62db6 --- /dev/null +++ b/crates/xframe-demo/examples/IndRWILow.rs @@ -0,0 +1,21 @@ +//! IndRWILow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRWILow +//! It opens an 800x600 window showing one IndRWILow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRWILow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRWILow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRWILow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRainbowOscillator.rs b/crates/xframe-demo/examples/IndRainbowOscillator.rs new file mode 100644 index 0000000..fed0bfd --- /dev/null +++ b/crates/xframe-demo/examples/IndRainbowOscillator.rs @@ -0,0 +1,21 @@ +//! IndRainbowOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRainbowOscillator +//! It opens an 800x600 window showing one IndRainbowOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRainbowOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRainbowOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRainbowOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRangeExpansionIndex.rs b/crates/xframe-demo/examples/IndRangeExpansionIndex.rs new file mode 100644 index 0000000..6344964 --- /dev/null +++ b/crates/xframe-demo/examples/IndRangeExpansionIndex.rs @@ -0,0 +1,21 @@ +//! IndRangeExpansionIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRangeExpansionIndex +//! It opens an 800x600 window showing one IndRangeExpansionIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRangeExpansionIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRangeExpansionIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRangeExpansionIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndReflex.rs b/crates/xframe-demo/examples/IndReflex.rs new file mode 100644 index 0000000..4ddaa1f --- /dev/null +++ b/crates/xframe-demo/examples/IndReflex.rs @@ -0,0 +1,21 @@ +//! IndReflex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndReflex +//! It opens an 800x600 window showing one IndReflex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndReflex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndReflex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndReflex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRegressionChannel.rs b/crates/xframe-demo/examples/IndRegressionChannel.rs new file mode 100644 index 0000000..e91f583 --- /dev/null +++ b/crates/xframe-demo/examples/IndRegressionChannel.rs @@ -0,0 +1,21 @@ +//! IndRegressionChannel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRegressionChannel +//! It opens an 800x600 window showing one IndRegressionChannel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRegressionChannel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRegressionChannel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRegressionChannel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRelativeMomentumIndex.rs b/crates/xframe-demo/examples/IndRelativeMomentumIndex.rs new file mode 100644 index 0000000..7463fc3 --- /dev/null +++ b/crates/xframe-demo/examples/IndRelativeMomentumIndex.rs @@ -0,0 +1,21 @@ +//! IndRelativeMomentumIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRelativeMomentumIndex +//! It opens an 800x600 window showing one IndRelativeMomentumIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRelativeMomentumIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRelativeMomentumIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRelativeMomentumIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRelativeVigorIndex.rs b/crates/xframe-demo/examples/IndRelativeVigorIndex.rs new file mode 100644 index 0000000..ffd3196 --- /dev/null +++ b/crates/xframe-demo/examples/IndRelativeVigorIndex.rs @@ -0,0 +1,21 @@ +//! IndRelativeVigorIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRelativeVigorIndex +//! It opens an 800x600 window showing one IndRelativeVigorIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRelativeVigorIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRelativeVigorIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRelativeVigorIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRelativeVolatilityIndex.rs b/crates/xframe-demo/examples/IndRelativeVolatilityIndex.rs new file mode 100644 index 0000000..235644a --- /dev/null +++ b/crates/xframe-demo/examples/IndRelativeVolatilityIndex.rs @@ -0,0 +1,21 @@ +//! IndRelativeVolatilityIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRelativeVolatilityIndex +//! It opens an 800x600 window showing one IndRelativeVolatilityIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRelativeVolatilityIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRelativeVolatilityIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRelativeVolatilityIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRelativeVolume.rs b/crates/xframe-demo/examples/IndRelativeVolume.rs new file mode 100644 index 0000000..3887167 --- /dev/null +++ b/crates/xframe-demo/examples/IndRelativeVolume.rs @@ -0,0 +1,21 @@ +//! IndRelativeVolume — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRelativeVolume +//! It opens an 800x600 window showing one IndRelativeVolume widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRelativeVolume")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRelativeVolume", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRelativeVolume example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRogersSatchellVolatility.rs b/crates/xframe-demo/examples/IndRogersSatchellVolatility.rs new file mode 100644 index 0000000..403f800 --- /dev/null +++ b/crates/xframe-demo/examples/IndRogersSatchellVolatility.rs @@ -0,0 +1,21 @@ +//! IndRogersSatchellVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRogersSatchellVolatility +//! It opens an 800x600 window showing one IndRogersSatchellVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRogersSatchellVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRogersSatchellVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRogersSatchellVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndRoofingFilter.rs b/crates/xframe-demo/examples/IndRoofingFilter.rs new file mode 100644 index 0000000..58b5a78 --- /dev/null +++ b/crates/xframe-demo/examples/IndRoofingFilter.rs @@ -0,0 +1,21 @@ +//! IndRoofingFilter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndRoofingFilter +//! It opens an 800x600 window showing one IndRoofingFilter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndRoofingFilter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndRoofingFilter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndRoofingFilter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSMA.rs b/crates/xframe-demo/examples/IndSMA.rs new file mode 100644 index 0000000..12a9367 --- /dev/null +++ b/crates/xframe-demo/examples/IndSMA.rs @@ -0,0 +1,21 @@ +//! IndSMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSMA +//! It opens an 800x600 window showing one IndSMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSMI.rs b/crates/xframe-demo/examples/IndSMI.rs new file mode 100644 index 0000000..01296cf --- /dev/null +++ b/crates/xframe-demo/examples/IndSMI.rs @@ -0,0 +1,21 @@ +//! IndSMI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSMI +//! It opens an 800x600 window showing one IndSMI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSMI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSMI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSMI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSMMA.rs b/crates/xframe-demo/examples/IndSMMA.rs new file mode 100644 index 0000000..27c35bf --- /dev/null +++ b/crates/xframe-demo/examples/IndSMMA.rs @@ -0,0 +1,21 @@ +//! IndSMMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSMMA +//! It opens an 800x600 window showing one IndSMMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSMMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSMMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSMMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSSLChannel.rs b/crates/xframe-demo/examples/IndSSLChannel.rs new file mode 100644 index 0000000..219119b --- /dev/null +++ b/crates/xframe-demo/examples/IndSSLChannel.rs @@ -0,0 +1,21 @@ +//! IndSSLChannel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSSLChannel +//! It opens an 800x600 window showing one IndSSLChannel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSSLChannel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSSLChannel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSSLChannel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSchaffTrendCycle.rs b/crates/xframe-demo/examples/IndSchaffTrendCycle.rs new file mode 100644 index 0000000..80a4f6e --- /dev/null +++ b/crates/xframe-demo/examples/IndSchaffTrendCycle.rs @@ -0,0 +1,21 @@ +//! IndSchaffTrendCycle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSchaffTrendCycle +//! It opens an 800x600 window showing one IndSchaffTrendCycle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSchaffTrendCycle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSchaffTrendCycle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSchaffTrendCycle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSenkouSpanA.rs b/crates/xframe-demo/examples/IndSenkouSpanA.rs new file mode 100644 index 0000000..a340de0 --- /dev/null +++ b/crates/xframe-demo/examples/IndSenkouSpanA.rs @@ -0,0 +1,21 @@ +//! IndSenkouSpanA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSenkouSpanA +//! It opens an 800x600 window showing one IndSenkouSpanA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSenkouSpanA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSenkouSpanA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSenkouSpanA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSenkouSpanB.rs b/crates/xframe-demo/examples/IndSenkouSpanB.rs new file mode 100644 index 0000000..b8457eb --- /dev/null +++ b/crates/xframe-demo/examples/IndSenkouSpanB.rs @@ -0,0 +1,21 @@ +//! IndSenkouSpanB — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSenkouSpanB +//! It opens an 800x600 window showing one IndSenkouSpanB widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSenkouSpanB")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSenkouSpanB", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSenkouSpanB example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndShannonEntropy.rs b/crates/xframe-demo/examples/IndShannonEntropy.rs new file mode 100644 index 0000000..22f1af9 --- /dev/null +++ b/crates/xframe-demo/examples/IndShannonEntropy.rs @@ -0,0 +1,21 @@ +//! IndShannonEntropy — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndShannonEntropy +//! It opens an 800x600 window showing one IndShannonEntropy widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndShannonEntropy")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndShannonEntropy", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndShannonEntropy example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSineWMA.rs b/crates/xframe-demo/examples/IndSineWMA.rs new file mode 100644 index 0000000..0530209 --- /dev/null +++ b/crates/xframe-demo/examples/IndSineWMA.rs @@ -0,0 +1,21 @@ +//! IndSineWMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSineWMA +//! It opens an 800x600 window showing one IndSineWMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSineWMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSineWMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSineWMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSineWave.rs b/crates/xframe-demo/examples/IndSineWave.rs new file mode 100644 index 0000000..e64687a --- /dev/null +++ b/crates/xframe-demo/examples/IndSineWave.rs @@ -0,0 +1,21 @@ +//! IndSineWave — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSineWave +//! It opens an 800x600 window showing one IndSineWave widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSineWave")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSineWave", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSineWave example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSkewness.rs b/crates/xframe-demo/examples/IndSkewness.rs new file mode 100644 index 0000000..dcf4eab --- /dev/null +++ b/crates/xframe-demo/examples/IndSkewness.rs @@ -0,0 +1,21 @@ +//! IndSkewness — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSkewness +//! It opens an 800x600 window showing one IndSkewness widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSkewness")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSkewness", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSkewness example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSmoothedROC.rs b/crates/xframe-demo/examples/IndSmoothedROC.rs new file mode 100644 index 0000000..ead1fc9 --- /dev/null +++ b/crates/xframe-demo/examples/IndSmoothedROC.rs @@ -0,0 +1,21 @@ +//! IndSmoothedROC — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSmoothedROC +//! It opens an 800x600 window showing one IndSmoothedROC widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSmoothedROC")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSmoothedROC", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSmoothedROC example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSpearmanRank.rs b/crates/xframe-demo/examples/IndSpearmanRank.rs new file mode 100644 index 0000000..9099b5d --- /dev/null +++ b/crates/xframe-demo/examples/IndSpearmanRank.rs @@ -0,0 +1,21 @@ +//! IndSpearmanRank — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSpearmanRank +//! It opens an 800x600 window showing one IndSpearmanRank widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSpearmanRank")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSpearmanRank", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSpearmanRank example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSpecialK.rs b/crates/xframe-demo/examples/IndSpecialK.rs new file mode 100644 index 0000000..9ecbc3a --- /dev/null +++ b/crates/xframe-demo/examples/IndSpecialK.rs @@ -0,0 +1,21 @@ +//! IndSpecialK — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSpecialK +//! It opens an 800x600 window showing one IndSpecialK widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSpecialK")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSpecialK", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSpecialK example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStandardError.rs b/crates/xframe-demo/examples/IndStandardError.rs new file mode 100644 index 0000000..4242e8d --- /dev/null +++ b/crates/xframe-demo/examples/IndStandardError.rs @@ -0,0 +1,21 @@ +//! IndStandardError — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStandardError +//! It opens an 800x600 window showing one IndStandardError widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStandardError")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStandardError", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStandardError example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStandardPivotPoints.rs b/crates/xframe-demo/examples/IndStandardPivotPoints.rs new file mode 100644 index 0000000..8b1a99c --- /dev/null +++ b/crates/xframe-demo/examples/IndStandardPivotPoints.rs @@ -0,0 +1,21 @@ +//! IndStandardPivotPoints — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStandardPivotPoints +//! It opens an 800x600 window showing one IndStandardPivotPoints widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStandardPivotPoints")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStandardPivotPoints", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStandardPivotPoints example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStdDev.rs b/crates/xframe-demo/examples/IndStdDev.rs new file mode 100644 index 0000000..f9a3781 --- /dev/null +++ b/crates/xframe-demo/examples/IndStdDev.rs @@ -0,0 +1,21 @@ +//! IndStdDev — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStdDev +//! It opens an 800x600 window showing one IndStdDev widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStdDev")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStdDev", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStdDev example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStochRSI.rs b/crates/xframe-demo/examples/IndStochRSI.rs new file mode 100644 index 0000000..097e5be --- /dev/null +++ b/crates/xframe-demo/examples/IndStochRSI.rs @@ -0,0 +1,21 @@ +//! IndStochRSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStochRSI +//! It opens an 800x600 window showing one IndStochRSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStochRSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStochRSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStochRSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStochasticFast.rs b/crates/xframe-demo/examples/IndStochasticFast.rs new file mode 100644 index 0000000..069f178 --- /dev/null +++ b/crates/xframe-demo/examples/IndStochasticFast.rs @@ -0,0 +1,21 @@ +//! IndStochasticFast — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStochasticFast +//! It opens an 800x600 window showing one IndStochasticFast widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStochasticFast")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStochasticFast", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStochasticFast example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStochasticFull.rs b/crates/xframe-demo/examples/IndStochasticFull.rs new file mode 100644 index 0000000..e1f1b48 --- /dev/null +++ b/crates/xframe-demo/examples/IndStochasticFull.rs @@ -0,0 +1,21 @@ +//! IndStochasticFull — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStochasticFull +//! It opens an 800x600 window showing one IndStochasticFull widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStochasticFull")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStochasticFull", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStochasticFull example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStochasticPop.rs b/crates/xframe-demo/examples/IndStochasticPop.rs new file mode 100644 index 0000000..5c04e9f --- /dev/null +++ b/crates/xframe-demo/examples/IndStochasticPop.rs @@ -0,0 +1,21 @@ +//! IndStochasticPop — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStochasticPop +//! It opens an 800x600 window showing one IndStochasticPop widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStochasticPop")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStochasticPop", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStochasticPop example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndStochasticSlow.rs b/crates/xframe-demo/examples/IndStochasticSlow.rs new file mode 100644 index 0000000..168a903 --- /dev/null +++ b/crates/xframe-demo/examples/IndStochasticSlow.rs @@ -0,0 +1,21 @@ +//! IndStochasticSlow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndStochasticSlow +//! It opens an 800x600 window showing one IndStochasticSlow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndStochasticSlow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndStochasticSlow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndStochasticSlow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSuperSmoother.rs b/crates/xframe-demo/examples/IndSuperSmoother.rs new file mode 100644 index 0000000..4f4bd39 --- /dev/null +++ b/crates/xframe-demo/examples/IndSuperSmoother.rs @@ -0,0 +1,21 @@ +//! IndSuperSmoother — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSuperSmoother +//! It opens an 800x600 window showing one IndSuperSmoother widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSuperSmoother")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSuperSmoother", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSuperSmoother example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSupertrend.rs b/crates/xframe-demo/examples/IndSupertrend.rs new file mode 100644 index 0000000..10a925d --- /dev/null +++ b/crates/xframe-demo/examples/IndSupertrend.rs @@ -0,0 +1,21 @@ +//! IndSupertrend — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSupertrend +//! It opens an 800x600 window showing one IndSupertrend widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSupertrend")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSupertrend", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSupertrend example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSwenlinTradingOscillator.rs b/crates/xframe-demo/examples/IndSwenlinTradingOscillator.rs new file mode 100644 index 0000000..72766c7 --- /dev/null +++ b/crates/xframe-demo/examples/IndSwenlinTradingOscillator.rs @@ -0,0 +1,21 @@ +//! IndSwenlinTradingOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSwenlinTradingOscillator +//! It opens an 800x600 window showing one IndSwenlinTradingOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSwenlinTradingOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSwenlinTradingOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSwenlinTradingOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndSwingIndex.rs b/crates/xframe-demo/examples/IndSwingIndex.rs new file mode 100644 index 0000000..cad330e --- /dev/null +++ b/crates/xframe-demo/examples/IndSwingIndex.rs @@ -0,0 +1,21 @@ +//! IndSwingIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndSwingIndex +//! It opens an 800x600 window showing one IndSwingIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndSwingIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndSwingIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndSwingIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndT3.rs b/crates/xframe-demo/examples/IndT3.rs new file mode 100644 index 0000000..47fa79c --- /dev/null +++ b/crates/xframe-demo/examples/IndT3.rs @@ -0,0 +1,21 @@ +//! IndT3 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndT3 +//! It opens an 800x600 window showing one IndT3 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndT3")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndT3", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndT3 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTDSequential.rs b/crates/xframe-demo/examples/IndTDSequential.rs new file mode 100644 index 0000000..063498e --- /dev/null +++ b/crates/xframe-demo/examples/IndTDSequential.rs @@ -0,0 +1,21 @@ +//! IndTDSequential — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTDSequential +//! It opens an 800x600 window showing one IndTDSequential widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTDSequential")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTDSequential", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTDSequential example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTEMA.rs b/crates/xframe-demo/examples/IndTEMA.rs new file mode 100644 index 0000000..ab4640f --- /dev/null +++ b/crates/xframe-demo/examples/IndTEMA.rs @@ -0,0 +1,21 @@ +//! IndTEMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTEMA +//! It opens an 800x600 window showing one IndTEMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTEMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTEMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTEMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTRIMA.rs b/crates/xframe-demo/examples/IndTRIMA.rs new file mode 100644 index 0000000..c57db81 --- /dev/null +++ b/crates/xframe-demo/examples/IndTRIMA.rs @@ -0,0 +1,21 @@ +//! IndTRIMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTRIMA +//! It opens an 800x600 window showing one IndTRIMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTRIMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTRIMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTRIMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTRIX.rs b/crates/xframe-demo/examples/IndTRIX.rs new file mode 100644 index 0000000..a463852 --- /dev/null +++ b/crates/xframe-demo/examples/IndTRIX.rs @@ -0,0 +1,21 @@ +//! IndTRIX — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTRIX +//! It opens an 800x600 window showing one IndTRIX widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTRIX")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTRIX", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTRIX example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTSF.rs b/crates/xframe-demo/examples/IndTSF.rs new file mode 100644 index 0000000..88e2651 --- /dev/null +++ b/crates/xframe-demo/examples/IndTSF.rs @@ -0,0 +1,21 @@ +//! IndTSF — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTSF +//! It opens an 800x600 window showing one IndTSF widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTSF")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTSF", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTSF example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTSI.rs b/crates/xframe-demo/examples/IndTSI.rs new file mode 100644 index 0000000..fee9cb0 --- /dev/null +++ b/crates/xframe-demo/examples/IndTSI.rs @@ -0,0 +1,21 @@ +//! IndTSI — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTSI +//! It opens an 800x600 window showing one IndTSI widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTSI")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTSI", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTSI example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTSMA.rs b/crates/xframe-demo/examples/IndTSMA.rs new file mode 100644 index 0000000..4a6dd17 --- /dev/null +++ b/crates/xframe-demo/examples/IndTSMA.rs @@ -0,0 +1,21 @@ +//! IndTSMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTSMA +//! It opens an 800x600 window showing one IndTSMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTSMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTSMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTSMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTTMSqueeze.rs b/crates/xframe-demo/examples/IndTTMSqueeze.rs new file mode 100644 index 0000000..267b133 --- /dev/null +++ b/crates/xframe-demo/examples/IndTTMSqueeze.rs @@ -0,0 +1,21 @@ +//! IndTTMSqueeze — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTTMSqueeze +//! It opens an 800x600 window showing one IndTTMSqueeze widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTTMSqueeze")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTTMSqueeze", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTTMSqueeze example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTenkanSen.rs b/crates/xframe-demo/examples/IndTenkanSen.rs new file mode 100644 index 0000000..cf808ac --- /dev/null +++ b/crates/xframe-demo/examples/IndTenkanSen.rs @@ -0,0 +1,21 @@ +//! IndTenkanSen — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTenkanSen +//! It opens an 800x600 window showing one IndTenkanSen widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTenkanSen")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTenkanSen", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTenkanSen example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTrendFlex.rs b/crates/xframe-demo/examples/IndTrendFlex.rs new file mode 100644 index 0000000..3e37318 --- /dev/null +++ b/crates/xframe-demo/examples/IndTrendFlex.rs @@ -0,0 +1,21 @@ +//! IndTrendFlex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTrendFlex +//! It opens an 800x600 window showing one IndTrendFlex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTrendFlex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTrendFlex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTrendFlex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTrendIntensityIndex.rs b/crates/xframe-demo/examples/IndTrendIntensityIndex.rs new file mode 100644 index 0000000..61160ab --- /dev/null +++ b/crates/xframe-demo/examples/IndTrendIntensityIndex.rs @@ -0,0 +1,21 @@ +//! IndTrendIntensityIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTrendIntensityIndex +//! It opens an 800x600 window showing one IndTrendIntensityIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTrendIntensityIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTrendIntensityIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTrendIntensityIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTrueRange.rs b/crates/xframe-demo/examples/IndTrueRange.rs new file mode 100644 index 0000000..e0472ab --- /dev/null +++ b/crates/xframe-demo/examples/IndTrueRange.rs @@ -0,0 +1,21 @@ +//! IndTrueRange — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTrueRange +//! It opens an 800x600 window showing one IndTrueRange widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTrueRange")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTrueRange", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTrueRange example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTwiggsMoneyFlow.rs b/crates/xframe-demo/examples/IndTwiggsMoneyFlow.rs new file mode 100644 index 0000000..3c58d3d --- /dev/null +++ b/crates/xframe-demo/examples/IndTwiggsMoneyFlow.rs @@ -0,0 +1,21 @@ +//! IndTwiggsMoneyFlow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTwiggsMoneyFlow +//! It opens an 800x600 window showing one IndTwiggsMoneyFlow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTwiggsMoneyFlow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTwiggsMoneyFlow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTwiggsMoneyFlow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndTypicalPrice.rs b/crates/xframe-demo/examples/IndTypicalPrice.rs new file mode 100644 index 0000000..f00f4a5 --- /dev/null +++ b/crates/xframe-demo/examples/IndTypicalPrice.rs @@ -0,0 +1,21 @@ +//! IndTypicalPrice — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndTypicalPrice +//! It opens an 800x600 window showing one IndTypicalPrice widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndTypicalPrice")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndTypicalPrice", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndTypicalPrice example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndUTBot.rs b/crates/xframe-demo/examples/IndUTBot.rs new file mode 100644 index 0000000..e33db3d --- /dev/null +++ b/crates/xframe-demo/examples/IndUTBot.rs @@ -0,0 +1,21 @@ +//! IndUTBot — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndUTBot +//! It opens an 800x600 window showing one IndUTBot widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndUTBot")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndUTBot", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndUTBot example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndUlcerIndex.rs b/crates/xframe-demo/examples/IndUlcerIndex.rs new file mode 100644 index 0000000..b08dfec --- /dev/null +++ b/crates/xframe-demo/examples/IndUlcerIndex.rs @@ -0,0 +1,21 @@ +//! IndUlcerIndex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndUlcerIndex +//! It opens an 800x600 window showing one IndUlcerIndex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndUlcerIndex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndUlcerIndex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndUlcerIndex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndUltimateOscillator.rs b/crates/xframe-demo/examples/IndUltimateOscillator.rs new file mode 100644 index 0000000..0749749 --- /dev/null +++ b/crates/xframe-demo/examples/IndUltimateOscillator.rs @@ -0,0 +1,21 @@ +//! IndUltimateOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndUltimateOscillator +//! It opens an 800x600 window showing one IndUltimateOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndUltimateOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndUltimateOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndUltimateOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndUpDownRatio.rs b/crates/xframe-demo/examples/IndUpDownRatio.rs new file mode 100644 index 0000000..b456bab --- /dev/null +++ b/crates/xframe-demo/examples/IndUpDownRatio.rs @@ -0,0 +1,21 @@ +//! IndUpDownRatio — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndUpDownRatio +//! It opens an 800x600 window showing one IndUpDownRatio widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndUpDownRatio")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndUpDownRatio", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndUpDownRatio example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndUpDownVolumeRatio.rs b/crates/xframe-demo/examples/IndUpDownVolumeRatio.rs new file mode 100644 index 0000000..a2902d4 --- /dev/null +++ b/crates/xframe-demo/examples/IndUpDownVolumeRatio.rs @@ -0,0 +1,21 @@ +//! IndUpDownVolumeRatio — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndUpDownVolumeRatio +//! It opens an 800x600 window showing one IndUpDownVolumeRatio widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndUpDownVolumeRatio")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndUpDownVolumeRatio", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndUpDownVolumeRatio example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVHF.rs b/crates/xframe-demo/examples/IndVHF.rs new file mode 100644 index 0000000..ff11774 --- /dev/null +++ b/crates/xframe-demo/examples/IndVHF.rs @@ -0,0 +1,21 @@ +//! IndVHF — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVHF +//! It opens an 800x600 window showing one IndVHF widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVHF")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVHF", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVHF example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVIDYA.rs b/crates/xframe-demo/examples/IndVIDYA.rs new file mode 100644 index 0000000..9861e0d --- /dev/null +++ b/crates/xframe-demo/examples/IndVIDYA.rs @@ -0,0 +1,21 @@ +//! IndVIDYA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVIDYA +//! It opens an 800x600 window showing one IndVIDYA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVIDYA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVIDYA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVIDYA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVWAP.rs b/crates/xframe-demo/examples/IndVWAP.rs new file mode 100644 index 0000000..f504d0b --- /dev/null +++ b/crates/xframe-demo/examples/IndVWAP.rs @@ -0,0 +1,21 @@ +//! IndVWAP — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVWAP +//! It opens an 800x600 window showing one IndVWAP widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVWAP")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVWAP", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVWAP example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVWAPBands.rs b/crates/xframe-demo/examples/IndVWAPBands.rs new file mode 100644 index 0000000..1ade5cf --- /dev/null +++ b/crates/xframe-demo/examples/IndVWAPBands.rs @@ -0,0 +1,21 @@ +//! IndVWAPBands — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVWAPBands +//! It opens an 800x600 window showing one IndVWAPBands widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVWAPBands")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVWAPBands", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVWAPBands example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVWEMA.rs b/crates/xframe-demo/examples/IndVWEMA.rs new file mode 100644 index 0000000..594b756 --- /dev/null +++ b/crates/xframe-demo/examples/IndVWEMA.rs @@ -0,0 +1,21 @@ +//! IndVWEMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVWEMA +//! It opens an 800x600 window showing one IndVWEMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVWEMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVWEMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVWEMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVWMA.rs b/crates/xframe-demo/examples/IndVWMA.rs new file mode 100644 index 0000000..4db3da2 --- /dev/null +++ b/crates/xframe-demo/examples/IndVWMA.rs @@ -0,0 +1,21 @@ +//! IndVWMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVWMA +//! It opens an 800x600 window showing one IndVWMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVWMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVWMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVWMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVariance.rs b/crates/xframe-demo/examples/IndVariance.rs new file mode 100644 index 0000000..ded8d1e --- /dev/null +++ b/crates/xframe-demo/examples/IndVariance.rs @@ -0,0 +1,21 @@ +//! IndVariance — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVariance +//! It opens an 800x600 window showing one IndVariance widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVariance")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVariance", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVariance example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolatilityRatio.rs b/crates/xframe-demo/examples/IndVolatilityRatio.rs new file mode 100644 index 0000000..8b15b6d --- /dev/null +++ b/crates/xframe-demo/examples/IndVolatilityRatio.rs @@ -0,0 +1,21 @@ +//! IndVolatilityRatio — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolatilityRatio +//! It opens an 800x600 window showing one IndVolatilityRatio widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolatilityRatio")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolatilityRatio", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolatilityRatio example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolatilityStop.rs b/crates/xframe-demo/examples/IndVolatilityStop.rs new file mode 100644 index 0000000..b3efb87 --- /dev/null +++ b/crates/xframe-demo/examples/IndVolatilityStop.rs @@ -0,0 +1,21 @@ +//! IndVolatilityStop — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolatilityStop +//! It opens an 800x600 window showing one IndVolatilityStop widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolatilityStop")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolatilityStop", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolatilityStop example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeAverage.rs b/crates/xframe-demo/examples/IndVolumeAverage.rs new file mode 100644 index 0000000..e3f5c66 --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeAverage.rs @@ -0,0 +1,21 @@ +//! IndVolumeAverage — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeAverage +//! It opens an 800x600 window showing one IndVolumeAverage widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeAverage")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeAverage", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeAverage example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeDelta.rs b/crates/xframe-demo/examples/IndVolumeDelta.rs new file mode 100644 index 0000000..49fe0b5 --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeDelta.rs @@ -0,0 +1,21 @@ +//! IndVolumeDelta — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeDelta +//! It opens an 800x600 window showing one IndVolumeDelta widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeDelta")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeDelta", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeDelta example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeOscillator.rs b/crates/xframe-demo/examples/IndVolumeOscillator.rs new file mode 100644 index 0000000..5ee86a6 --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeOscillator.rs @@ -0,0 +1,21 @@ +//! IndVolumeOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeOscillator +//! It opens an 800x600 window showing one IndVolumeOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumePriceTrend.rs b/crates/xframe-demo/examples/IndVolumePriceTrend.rs new file mode 100644 index 0000000..4a1159e --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumePriceTrend.rs @@ -0,0 +1,21 @@ +//! IndVolumePriceTrend — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumePriceTrend +//! It opens an 800x600 window showing one IndVolumePriceTrend widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumePriceTrend")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumePriceTrend", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumePriceTrend example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeRateOfChange.rs b/crates/xframe-demo/examples/IndVolumeRateOfChange.rs new file mode 100644 index 0000000..25d946d --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeRateOfChange.rs @@ -0,0 +1,21 @@ +//! IndVolumeRateOfChange — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeRateOfChange +//! It opens an 800x600 window showing one IndVolumeRateOfChange widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeRateOfChange")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeRateOfChange", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeRateOfChange example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeWeightedMovingAverage.rs b/crates/xframe-demo/examples/IndVolumeWeightedMovingAverage.rs new file mode 100644 index 0000000..c364a8b --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeWeightedMovingAverage.rs @@ -0,0 +1,21 @@ +//! IndVolumeWeightedMovingAverage — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeWeightedMovingAverage +//! It opens an 800x600 window showing one IndVolumeWeightedMovingAverage widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeWeightedMovingAverage")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeWeightedMovingAverage", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeWeightedMovingAverage example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVolumeZoneOscillator.rs b/crates/xframe-demo/examples/IndVolumeZoneOscillator.rs new file mode 100644 index 0000000..d8e11f1 --- /dev/null +++ b/crates/xframe-demo/examples/IndVolumeZoneOscillator.rs @@ -0,0 +1,21 @@ +//! IndVolumeZoneOscillator — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVolumeZoneOscillator +//! It opens an 800x600 window showing one IndVolumeZoneOscillator widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVolumeZoneOscillator")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVolumeZoneOscillator", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVolumeZoneOscillator example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndVortex.rs b/crates/xframe-demo/examples/IndVortex.rs new file mode 100644 index 0000000..0e306b3 --- /dev/null +++ b/crates/xframe-demo/examples/IndVortex.rs @@ -0,0 +1,21 @@ +//! IndVortex — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndVortex +//! It opens an 800x600 window showing one IndVortex widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndVortex")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndVortex", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndVortex example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWMA.rs b/crates/xframe-demo/examples/IndWMA.rs new file mode 100644 index 0000000..878d29a --- /dev/null +++ b/crates/xframe-demo/examples/IndWMA.rs @@ -0,0 +1,21 @@ +//! IndWMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWMA +//! It opens an 800x600 window showing one IndWMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWaveTrend.rs b/crates/xframe-demo/examples/IndWaveTrend.rs new file mode 100644 index 0000000..0551263 --- /dev/null +++ b/crates/xframe-demo/examples/IndWaveTrend.rs @@ -0,0 +1,21 @@ +//! IndWaveTrend — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWaveTrend +//! It opens an 800x600 window showing one IndWaveTrend widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWaveTrend")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWaveTrend", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWaveTrend example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWeightedClose.rs b/crates/xframe-demo/examples/IndWeightedClose.rs new file mode 100644 index 0000000..bbfc09f --- /dev/null +++ b/crates/xframe-demo/examples/IndWeightedClose.rs @@ -0,0 +1,21 @@ +//! IndWeightedClose — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWeightedClose +//! It opens an 800x600 window showing one IndWeightedClose widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWeightedClose")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWeightedClose", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWeightedClose example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWilderVolatilitySystem.rs b/crates/xframe-demo/examples/IndWilderVolatilitySystem.rs new file mode 100644 index 0000000..7cdf866 --- /dev/null +++ b/crates/xframe-demo/examples/IndWilderVolatilitySystem.rs @@ -0,0 +1,21 @@ +//! IndWilderVolatilitySystem — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWilderVolatilitySystem +//! It opens an 800x600 window showing one IndWilderVolatilitySystem widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWilderVolatilitySystem")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWilderVolatilitySystem", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWilderVolatilitySystem example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWildersMA.rs b/crates/xframe-demo/examples/IndWildersMA.rs new file mode 100644 index 0000000..3a35f75 --- /dev/null +++ b/crates/xframe-demo/examples/IndWildersMA.rs @@ -0,0 +1,21 @@ +//! IndWildersMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWildersMA +//! It opens an 800x600 window showing one IndWildersMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWildersMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWildersMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWildersMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWilliamsAccumulationDistribution.rs b/crates/xframe-demo/examples/IndWilliamsAccumulationDistribution.rs new file mode 100644 index 0000000..7a1d345 --- /dev/null +++ b/crates/xframe-demo/examples/IndWilliamsAccumulationDistribution.rs @@ -0,0 +1,21 @@ +//! IndWilliamsAccumulationDistribution — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWilliamsAccumulationDistribution +//! It opens an 800x600 window showing one IndWilliamsAccumulationDistribution widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWilliamsAccumulationDistribution")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWilliamsAccumulationDistribution", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWilliamsAccumulationDistribution example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWilliamsR.rs b/crates/xframe-demo/examples/IndWilliamsR.rs new file mode 100644 index 0000000..2219154 --- /dev/null +++ b/crates/xframe-demo/examples/IndWilliamsR.rs @@ -0,0 +1,21 @@ +//! IndWilliamsR — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWilliamsR +//! It opens an 800x600 window showing one IndWilliamsR widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWilliamsR")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWilliamsR", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWilliamsR example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndWoodiePivotPoints.rs b/crates/xframe-demo/examples/IndWoodiePivotPoints.rs new file mode 100644 index 0000000..c77e8ad --- /dev/null +++ b/crates/xframe-demo/examples/IndWoodiePivotPoints.rs @@ -0,0 +1,21 @@ +//! IndWoodiePivotPoints — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndWoodiePivotPoints +//! It opens an 800x600 window showing one IndWoodiePivotPoints widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndWoodiePivotPoints")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndWoodiePivotPoints", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndWoodiePivotPoints example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndYangZhangVolatility.rs b/crates/xframe-demo/examples/IndYangZhangVolatility.rs new file mode 100644 index 0000000..9f341af --- /dev/null +++ b/crates/xframe-demo/examples/IndYangZhangVolatility.rs @@ -0,0 +1,21 @@ +//! IndYangZhangVolatility — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndYangZhangVolatility +//! It opens an 800x600 window showing one IndYangZhangVolatility widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndYangZhangVolatility")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndYangZhangVolatility", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndYangZhangVolatility example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndZLEMA.rs b/crates/xframe-demo/examples/IndZLEMA.rs new file mode 100644 index 0000000..df67774 --- /dev/null +++ b/crates/xframe-demo/examples/IndZLEMA.rs @@ -0,0 +1,21 @@ +//! IndZLEMA — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndZLEMA +//! It opens an 800x600 window showing one IndZLEMA widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndZLEMA")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndZLEMA", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndZLEMA example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndZScore.rs b/crates/xframe-demo/examples/IndZScore.rs new file mode 100644 index 0000000..25ad871 --- /dev/null +++ b/crates/xframe-demo/examples/IndZScore.rs @@ -0,0 +1,21 @@ +//! IndZScore — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndZScore +//! It opens an 800x600 window showing one IndZScore widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndZScore")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndZScore", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndZScore example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndZeroLagMACD.rs b/crates/xframe-demo/examples/IndZeroLagMACD.rs new file mode 100644 index 0000000..4cfbb7b --- /dev/null +++ b/crates/xframe-demo/examples/IndZeroLagMACD.rs @@ -0,0 +1,21 @@ +//! IndZeroLagMACD — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndZeroLagMACD +//! It opens an 800x600 window showing one IndZeroLagMACD widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndZeroLagMACD")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndZeroLagMACD", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndZeroLagMACD example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/IndZigZag.rs b/crates/xframe-demo/examples/IndZigZag.rs new file mode 100644 index 0000000..43f9923 --- /dev/null +++ b/crates/xframe-demo/examples/IndZigZag.rs @@ -0,0 +1,21 @@ +//! IndZigZag — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example IndZigZag +//! It opens an 800x600 window showing one IndZigZag widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("IndZigZag")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("IndZigZag", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("IndZigZag example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstAnalogGauge.rs b/crates/xframe-demo/examples/InstAnalogGauge.rs new file mode 100644 index 0000000..d58b8f9 --- /dev/null +++ b/crates/xframe-demo/examples/InstAnalogGauge.rs @@ -0,0 +1,21 @@ +//! InstAnalogGauge — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstAnalogGauge +//! It opens an 800x600 window showing one InstAnalogGauge widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstAnalogGauge")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstAnalogGauge", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstAnalogGauge example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstBarMeter.rs b/crates/xframe-demo/examples/InstBarMeter.rs new file mode 100644 index 0000000..01c76ff --- /dev/null +++ b/crates/xframe-demo/examples/InstBarMeter.rs @@ -0,0 +1,21 @@ +//! InstBarMeter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstBarMeter +//! It opens an 800x600 window showing one InstBarMeter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstBarMeter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstBarMeter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstBarMeter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstBeacon.rs b/crates/xframe-demo/examples/InstBeacon.rs new file mode 100644 index 0000000..a1914f0 --- /dev/null +++ b/crates/xframe-demo/examples/InstBeacon.rs @@ -0,0 +1,21 @@ +//! InstBeacon — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstBeacon +//! It opens an 800x600 window showing one InstBeacon widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstBeacon")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstBeacon", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstBeacon example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstBezel.rs b/crates/xframe-demo/examples/InstBezel.rs new file mode 100644 index 0000000..ced85ac --- /dev/null +++ b/crates/xframe-demo/examples/InstBezel.rs @@ -0,0 +1,21 @@ +//! InstBezel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstBezel +//! It opens an 800x600 window showing one InstBezel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstBezel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstBezel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstBezel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstCircuitBreaker.rs b/crates/xframe-demo/examples/InstCircuitBreaker.rs new file mode 100644 index 0000000..b3aee19 --- /dev/null +++ b/crates/xframe-demo/examples/InstCircuitBreaker.rs @@ -0,0 +1,21 @@ +//! InstCircuitBreaker — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstCircuitBreaker +//! It opens an 800x600 window showing one InstCircuitBreaker widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstCircuitBreaker")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstCircuitBreaker", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstCircuitBreaker example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstControlPanel.rs b/crates/xframe-demo/examples/InstControlPanel.rs new file mode 100644 index 0000000..a172223 --- /dev/null +++ b/crates/xframe-demo/examples/InstControlPanel.rs @@ -0,0 +1,21 @@ +//! InstControlPanel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstControlPanel +//! It opens an 800x600 window showing one InstControlPanel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstControlPanel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstControlPanel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstControlPanel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstDigitalReadout.rs b/crates/xframe-demo/examples/InstDigitalReadout.rs new file mode 100644 index 0000000..77f2d65 --- /dev/null +++ b/crates/xframe-demo/examples/InstDigitalReadout.rs @@ -0,0 +1,21 @@ +//! InstDigitalReadout — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstDigitalReadout +//! It opens an 800x600 window showing one InstDigitalReadout widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstDigitalReadout")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstDigitalReadout", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstDigitalReadout example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstEmergencyStop.rs b/crates/xframe-demo/examples/InstEmergencyStop.rs new file mode 100644 index 0000000..1cd75e1 --- /dev/null +++ b/crates/xframe-demo/examples/InstEmergencyStop.rs @@ -0,0 +1,21 @@ +//! InstEmergencyStop — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstEmergencyStop +//! It opens an 800x600 window showing one InstEmergencyStop widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstEmergencyStop")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstEmergencyStop", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstEmergencyStop example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstFlowMeter.rs b/crates/xframe-demo/examples/InstFlowMeter.rs new file mode 100644 index 0000000..ec8ff9d --- /dev/null +++ b/crates/xframe-demo/examples/InstFlowMeter.rs @@ -0,0 +1,21 @@ +//! InstFlowMeter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstFlowMeter +//! It opens an 800x600 window showing one InstFlowMeter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstFlowMeter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstFlowMeter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstFlowMeter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstHorizontalTankLevel.rs b/crates/xframe-demo/examples/InstHorizontalTankLevel.rs new file mode 100644 index 0000000..ec481e7 --- /dev/null +++ b/crates/xframe-demo/examples/InstHorizontalTankLevel.rs @@ -0,0 +1,21 @@ +//! InstHorizontalTankLevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstHorizontalTankLevel +//! It opens an 800x600 window showing one InstHorizontalTankLevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstHorizontalTankLevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstHorizontalTankLevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstHorizontalTankLevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstKeySwitch.rs b/crates/xframe-demo/examples/InstKeySwitch.rs new file mode 100644 index 0000000..71a9602 --- /dev/null +++ b/crates/xframe-demo/examples/InstKeySwitch.rs @@ -0,0 +1,21 @@ +//! InstKeySwitch — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstKeySwitch +//! It opens an 800x600 window showing one InstKeySwitch widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstKeySwitch")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstKeySwitch", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstKeySwitch example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLampTestButton.rs b/crates/xframe-demo/examples/InstLampTestButton.rs new file mode 100644 index 0000000..ac1a41c --- /dev/null +++ b/crates/xframe-demo/examples/InstLampTestButton.rs @@ -0,0 +1,21 @@ +//! InstLampTestButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLampTestButton +//! It opens an 800x600 window showing one InstLampTestButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLampTestButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLampTestButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLampTestButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedBlue.rs b/crates/xframe-demo/examples/InstLedBlue.rs new file mode 100644 index 0000000..b75e57b --- /dev/null +++ b/crates/xframe-demo/examples/InstLedBlue.rs @@ -0,0 +1,21 @@ +//! InstLedBlue — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedBlue +//! It opens an 800x600 window showing one InstLedBlue widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedBlue")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedBlue", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedBlue example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits1.rs b/crates/xframe-demo/examples/InstLedDigits1.rs new file mode 100644 index 0000000..2341954 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits1.rs @@ -0,0 +1,21 @@ +//! InstLedDigits1 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits1 +//! It opens an 800x600 window showing one InstLedDigits1 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits1")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits1", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits1 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits2.rs b/crates/xframe-demo/examples/InstLedDigits2.rs new file mode 100644 index 0000000..7e60057 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits2.rs @@ -0,0 +1,21 @@ +//! InstLedDigits2 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits2 +//! It opens an 800x600 window showing one InstLedDigits2 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits2")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits2", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits2 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits3.rs b/crates/xframe-demo/examples/InstLedDigits3.rs new file mode 100644 index 0000000..43d66f6 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits3.rs @@ -0,0 +1,21 @@ +//! InstLedDigits3 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits3 +//! It opens an 800x600 window showing one InstLedDigits3 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits3")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits3", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits3 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits4.rs b/crates/xframe-demo/examples/InstLedDigits4.rs new file mode 100644 index 0000000..5882d53 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits4.rs @@ -0,0 +1,21 @@ +//! InstLedDigits4 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits4 +//! It opens an 800x600 window showing one InstLedDigits4 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits4")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits4", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits4 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits5.rs b/crates/xframe-demo/examples/InstLedDigits5.rs new file mode 100644 index 0000000..3e1ffdd --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits5.rs @@ -0,0 +1,21 @@ +//! InstLedDigits5 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits5 +//! It opens an 800x600 window showing one InstLedDigits5 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits5")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits5", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits5 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedDigits6.rs b/crates/xframe-demo/examples/InstLedDigits6.rs new file mode 100644 index 0000000..5258515 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedDigits6.rs @@ -0,0 +1,21 @@ +//! InstLedDigits6 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedDigits6 +//! It opens an 800x600 window showing one InstLedDigits6 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedDigits6")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedDigits6", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedDigits6 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedGreen.rs b/crates/xframe-demo/examples/InstLedGreen.rs new file mode 100644 index 0000000..db2df80 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedGreen.rs @@ -0,0 +1,21 @@ +//! InstLedGreen — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedGreen +//! It opens an 800x600 window showing one InstLedGreen widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedGreen")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedGreen", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedGreen example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLedRed.rs b/crates/xframe-demo/examples/InstLedRed.rs new file mode 100644 index 0000000..f7bfac4 --- /dev/null +++ b/crates/xframe-demo/examples/InstLedRed.rs @@ -0,0 +1,21 @@ +//! InstLedRed — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLedRed +//! It opens an 800x600 window showing one InstLedRed widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLedRed")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLedRed", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLedRed example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLevelColumnGauge.rs b/crates/xframe-demo/examples/InstLevelColumnGauge.rs new file mode 100644 index 0000000..d288ff6 --- /dev/null +++ b/crates/xframe-demo/examples/InstLevelColumnGauge.rs @@ -0,0 +1,21 @@ +//! InstLevelColumnGauge — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLevelColumnGauge +//! It opens an 800x600 window showing one InstLevelColumnGauge widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLevelColumnGauge")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLevelColumnGauge", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLevelColumnGauge example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstLevelTransmitter.rs b/crates/xframe-demo/examples/InstLevelTransmitter.rs new file mode 100644 index 0000000..17dddc5 --- /dev/null +++ b/crates/xframe-demo/examples/InstLevelTransmitter.rs @@ -0,0 +1,21 @@ +//! InstLevelTransmitter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstLevelTransmitter +//! It opens an 800x600 window showing one InstLevelTransmitter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstLevelTransmitter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstLevelTransmitter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstLevelTransmitter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstManometer.rs b/crates/xframe-demo/examples/InstManometer.rs new file mode 100644 index 0000000..221ec2b --- /dev/null +++ b/crates/xframe-demo/examples/InstManometer.rs @@ -0,0 +1,21 @@ +//! InstManometer — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstManometer +//! It opens an 800x600 window showing one InstManometer widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstManometer")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstManometer", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstManometer example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstNameplate.rs b/crates/xframe-demo/examples/InstNameplate.rs new file mode 100644 index 0000000..2e2530c --- /dev/null +++ b/crates/xframe-demo/examples/InstNameplate.rs @@ -0,0 +1,21 @@ +//! InstNameplate — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstNameplate +//! It opens an 800x600 window showing one InstNameplate widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstNameplate")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstNameplate", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstNameplate example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstNeedleEdgewise.rs b/crates/xframe-demo/examples/InstNeedleEdgewise.rs new file mode 100644 index 0000000..0828aa5 --- /dev/null +++ b/crates/xframe-demo/examples/InstNeedleEdgewise.rs @@ -0,0 +1,21 @@ +//! InstNeedleEdgewise — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstNeedleEdgewise +//! It opens an 800x600 window showing one InstNeedleEdgewise widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstNeedleEdgewise")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstNeedleEdgewise", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstNeedleEdgewise example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstNeedleKnifeEdge.rs b/crates/xframe-demo/examples/InstNeedleKnifeEdge.rs new file mode 100644 index 0000000..2b95ef4 --- /dev/null +++ b/crates/xframe-demo/examples/InstNeedleKnifeEdge.rs @@ -0,0 +1,21 @@ +//! InstNeedleKnifeEdge — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstNeedleKnifeEdge +//! It opens an 800x600 window showing one InstNeedleKnifeEdge widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstNeedleKnifeEdge")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstNeedleKnifeEdge", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstNeedleKnifeEdge example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstNeedleTapered.rs b/crates/xframe-demo/examples/InstNeedleTapered.rs new file mode 100644 index 0000000..d333dcc --- /dev/null +++ b/crates/xframe-demo/examples/InstNeedleTapered.rs @@ -0,0 +1,21 @@ +//! InstNeedleTapered — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstNeedleTapered +//! It opens an 800x600 window showing one InstNeedleTapered widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstNeedleTapered")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstNeedleTapered", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstNeedleTapered example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstNeedleVu.rs b/crates/xframe-demo/examples/InstNeedleVu.rs new file mode 100644 index 0000000..95d8a2f --- /dev/null +++ b/crates/xframe-demo/examples/InstNeedleVu.rs @@ -0,0 +1,21 @@ +//! InstNeedleVu — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstNeedleVu +//! It opens an 800x600 window showing one InstNeedleVu widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstNeedleVu")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstNeedleVu", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstNeedleVu example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstOpenChannelLevel.rs b/crates/xframe-demo/examples/InstOpenChannelLevel.rs new file mode 100644 index 0000000..cf3fcde --- /dev/null +++ b/crates/xframe-demo/examples/InstOpenChannelLevel.rs @@ -0,0 +1,21 @@ +//! InstOpenChannelLevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstOpenChannelLevel +//! It opens an 800x600 window showing one InstOpenChannelLevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstOpenChannelLevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstOpenChannelLevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstOpenChannelLevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelLampAmber.rs b/crates/xframe-demo/examples/InstPanelLampAmber.rs new file mode 100644 index 0000000..6563abd --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelLampAmber.rs @@ -0,0 +1,21 @@ +//! InstPanelLampAmber — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelLampAmber +//! It opens an 800x600 window showing one InstPanelLampAmber widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelLampAmber")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelLampAmber", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelLampAmber example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelLampBlue.rs b/crates/xframe-demo/examples/InstPanelLampBlue.rs new file mode 100644 index 0000000..523dd55 --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelLampBlue.rs @@ -0,0 +1,21 @@ +//! InstPanelLampBlue — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelLampBlue +//! It opens an 800x600 window showing one InstPanelLampBlue widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelLampBlue")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelLampBlue", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelLampBlue example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelLampGreen.rs b/crates/xframe-demo/examples/InstPanelLampGreen.rs new file mode 100644 index 0000000..c70b260 --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelLampGreen.rs @@ -0,0 +1,21 @@ +//! InstPanelLampGreen — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelLampGreen +//! It opens an 800x600 window showing one InstPanelLampGreen widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelLampGreen")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelLampGreen", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelLampGreen example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelLampRed.rs b/crates/xframe-demo/examples/InstPanelLampRed.rs new file mode 100644 index 0000000..db83f20 --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelLampRed.rs @@ -0,0 +1,21 @@ +//! InstPanelLampRed — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelLampRed +//! It opens an 800x600 window showing one InstPanelLampRed widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelLampRed")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelLampRed", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelLampRed example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelLampWhite.rs b/crates/xframe-demo/examples/InstPanelLampWhite.rs new file mode 100644 index 0000000..e1e4470 --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelLampWhite.rs @@ -0,0 +1,21 @@ +//! InstPanelLampWhite — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelLampWhite +//! It opens an 800x600 window showing one InstPanelLampWhite widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelLampWhite")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelLampWhite", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelLampWhite example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPanelPlate.rs b/crates/xframe-demo/examples/InstPanelPlate.rs new file mode 100644 index 0000000..0e5d3ec --- /dev/null +++ b/crates/xframe-demo/examples/InstPanelPlate.rs @@ -0,0 +1,21 @@ +//! InstPanelPlate — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPanelPlate +//! It opens an 800x600 window showing one InstPanelPlate widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPanelPlate")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPanelPlate", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPanelPlate example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPushButton.rs b/crates/xframe-demo/examples/InstPushButton.rs new file mode 100644 index 0000000..dbfac28 --- /dev/null +++ b/crates/xframe-demo/examples/InstPushButton.rs @@ -0,0 +1,21 @@ +//! InstPushButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPushButton +//! It opens an 800x600 window showing one InstPushButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPushButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPushButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPushButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstPushButtonLatching.rs b/crates/xframe-demo/examples/InstPushButtonLatching.rs new file mode 100644 index 0000000..20c8339 --- /dev/null +++ b/crates/xframe-demo/examples/InstPushButtonLatching.rs @@ -0,0 +1,21 @@ +//! InstPushButtonLatching — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstPushButtonLatching +//! It opens an 800x600 window showing one InstPushButtonLatching widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstPushButtonLatching")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstPushButtonLatching", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstPushButtonLatching example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstRgbStatusLed.rs b/crates/xframe-demo/examples/InstRgbStatusLed.rs new file mode 100644 index 0000000..f73f4bc --- /dev/null +++ b/crates/xframe-demo/examples/InstRgbStatusLed.rs @@ -0,0 +1,21 @@ +//! InstRgbStatusLed — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstRgbStatusLed +//! It opens an 800x600 window showing one InstRgbStatusLed widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstRgbStatusLed")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstRgbStatusLed", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstRgbStatusLed example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstRockerSwitch.rs b/crates/xframe-demo/examples/InstRockerSwitch.rs new file mode 100644 index 0000000..c0998f3 --- /dev/null +++ b/crates/xframe-demo/examples/InstRockerSwitch.rs @@ -0,0 +1,21 @@ +//! InstRockerSwitch — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstRockerSwitch +//! It opens an 800x600 window showing one InstRockerSwitch widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstRockerSwitch")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstRockerSwitch", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstRockerSwitch example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstRockerSwitchDouble.rs b/crates/xframe-demo/examples/InstRockerSwitchDouble.rs new file mode 100644 index 0000000..c729bdf --- /dev/null +++ b/crates/xframe-demo/examples/InstRockerSwitchDouble.rs @@ -0,0 +1,21 @@ +//! InstRockerSwitchDouble — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstRockerSwitchDouble +//! It opens an 800x600 window showing one InstRockerSwitchDouble widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstRockerSwitchDouble")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstRockerSwitchDouble", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstRockerSwitchDouble example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstRockerSwitchIlluminated.rs b/crates/xframe-demo/examples/InstRockerSwitchIlluminated.rs new file mode 100644 index 0000000..823fedf --- /dev/null +++ b/crates/xframe-demo/examples/InstRockerSwitchIlluminated.rs @@ -0,0 +1,21 @@ +//! InstRockerSwitchIlluminated — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstRockerSwitchIlluminated +//! It opens an 800x600 window showing one InstRockerSwitchIlluminated widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstRockerSwitchIlluminated")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstRockerSwitchIlluminated", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstRockerSwitchIlluminated example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstRotarySelector.rs b/crates/xframe-demo/examples/InstRotarySelector.rs new file mode 100644 index 0000000..0ab1aea --- /dev/null +++ b/crates/xframe-demo/examples/InstRotarySelector.rs @@ -0,0 +1,21 @@ +//! InstRotarySelector — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstRotarySelector +//! It opens an 800x600 window showing one InstRotarySelector widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstRotarySelector")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstRotarySelector", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstRotarySelector example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display1.rs b/crates/xframe-demo/examples/InstSeg14Display1.rs new file mode 100644 index 0000000..b9ef483 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display1.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display1 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display1 +//! It opens an 800x600 window showing one InstSeg14Display1 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display1")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display1", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display1 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display2.rs b/crates/xframe-demo/examples/InstSeg14Display2.rs new file mode 100644 index 0000000..0c42ae5 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display2.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display2 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display2 +//! It opens an 800x600 window showing one InstSeg14Display2 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display2")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display2", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display2 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display3.rs b/crates/xframe-demo/examples/InstSeg14Display3.rs new file mode 100644 index 0000000..a656946 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display3.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display3 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display3 +//! It opens an 800x600 window showing one InstSeg14Display3 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display3")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display3", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display3 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display4.rs b/crates/xframe-demo/examples/InstSeg14Display4.rs new file mode 100644 index 0000000..736f6d0 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display4.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display4 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display4 +//! It opens an 800x600 window showing one InstSeg14Display4 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display4")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display4", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display4 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display5.rs b/crates/xframe-demo/examples/InstSeg14Display5.rs new file mode 100644 index 0000000..c224d6d --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display5.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display5 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display5 +//! It opens an 800x600 window showing one InstSeg14Display5 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display5")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display5", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display5 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg14Display6.rs b/crates/xframe-demo/examples/InstSeg14Display6.rs new file mode 100644 index 0000000..0ef0574 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg14Display6.rs @@ -0,0 +1,21 @@ +//! InstSeg14Display6 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg14Display6 +//! It opens an 800x600 window showing one InstSeg14Display6 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg14Display6")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg14Display6", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg14Display6 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display1.rs b/crates/xframe-demo/examples/InstSeg16Display1.rs new file mode 100644 index 0000000..9e71ed8 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display1.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display1 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display1 +//! It opens an 800x600 window showing one InstSeg16Display1 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display1")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display1", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display1 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display2.rs b/crates/xframe-demo/examples/InstSeg16Display2.rs new file mode 100644 index 0000000..b460dd6 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display2.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display2 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display2 +//! It opens an 800x600 window showing one InstSeg16Display2 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display2")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display2", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display2 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display3.rs b/crates/xframe-demo/examples/InstSeg16Display3.rs new file mode 100644 index 0000000..923939f --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display3.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display3 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display3 +//! It opens an 800x600 window showing one InstSeg16Display3 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display3")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display3", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display3 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display4.rs b/crates/xframe-demo/examples/InstSeg16Display4.rs new file mode 100644 index 0000000..db2bbfa --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display4.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display4 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display4 +//! It opens an 800x600 window showing one InstSeg16Display4 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display4")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display4", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display4 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display5.rs b/crates/xframe-demo/examples/InstSeg16Display5.rs new file mode 100644 index 0000000..c625cb8 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display5.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display5 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display5 +//! It opens an 800x600 window showing one InstSeg16Display5 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display5")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display5", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display5 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSeg16Display6.rs b/crates/xframe-demo/examples/InstSeg16Display6.rs new file mode 100644 index 0000000..4ab7931 --- /dev/null +++ b/crates/xframe-demo/examples/InstSeg16Display6.rs @@ -0,0 +1,21 @@ +//! InstSeg16Display6 — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSeg16Display6 +//! It opens an 800x600 window showing one InstSeg16Display6 widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSeg16Display6")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSeg16Display6", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSeg16Display6 example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSightGlassLevel.rs b/crates/xframe-demo/examples/InstSightGlassLevel.rs new file mode 100644 index 0000000..2d8ce6f --- /dev/null +++ b/crates/xframe-demo/examples/InstSightGlassLevel.rs @@ -0,0 +1,21 @@ +//! InstSightGlassLevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSightGlassLevel +//! It opens an 800x600 window showing one InstSightGlassLevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSightGlassLevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSightGlassLevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSightGlassLevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSlideSwitch.rs b/crates/xframe-demo/examples/InstSlideSwitch.rs new file mode 100644 index 0000000..a19aab7 --- /dev/null +++ b/crates/xframe-demo/examples/InstSlideSwitch.rs @@ -0,0 +1,21 @@ +//! InstSlideSwitch — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSlideSwitch +//! It opens an 800x600 window showing one InstSlideSwitch widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSlideSwitch")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSlideSwitch", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSlideSwitch example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstSphericalTankLevel.rs b/crates/xframe-demo/examples/InstSphericalTankLevel.rs new file mode 100644 index 0000000..51a6ce9 --- /dev/null +++ b/crates/xframe-demo/examples/InstSphericalTankLevel.rs @@ -0,0 +1,21 @@ +//! InstSphericalTankLevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstSphericalTankLevel +//! It opens an 800x600 window showing one InstSphericalTankLevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstSphericalTankLevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstSphericalTankLevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstSphericalTankLevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstStackLight.rs b/crates/xframe-demo/examples/InstStackLight.rs new file mode 100644 index 0000000..fafb686 --- /dev/null +++ b/crates/xframe-demo/examples/InstStackLight.rs @@ -0,0 +1,21 @@ +//! InstStackLight — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstStackLight +//! It opens an 800x600 window showing one InstStackLight widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstStackLight")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstStackLight", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstStackLight example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstTankLevelAlarms.rs b/crates/xframe-demo/examples/InstTankLevelAlarms.rs new file mode 100644 index 0000000..6bdec3d --- /dev/null +++ b/crates/xframe-demo/examples/InstTankLevelAlarms.rs @@ -0,0 +1,21 @@ +//! InstTankLevelAlarms — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstTankLevelAlarms +//! It opens an 800x600 window showing one InstTankLevelAlarms widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstTankLevelAlarms")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstTankLevelAlarms", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstTankLevelAlarms example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstTemperatureGauge.rs b/crates/xframe-demo/examples/InstTemperatureGauge.rs new file mode 100644 index 0000000..f547f37 --- /dev/null +++ b/crates/xframe-demo/examples/InstTemperatureGauge.rs @@ -0,0 +1,21 @@ +//! InstTemperatureGauge — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstTemperatureGauge +//! It opens an 800x600 window showing one InstTemperatureGauge widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstTemperatureGauge")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstTemperatureGauge", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstTemperatureGauge example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstToggleSwitch.rs b/crates/xframe-demo/examples/InstToggleSwitch.rs new file mode 100644 index 0000000..8a01b05 --- /dev/null +++ b/crates/xframe-demo/examples/InstToggleSwitch.rs @@ -0,0 +1,21 @@ +//! InstToggleSwitch — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstToggleSwitch +//! It opens an 800x600 window showing one InstToggleSwitch widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstToggleSwitch")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstToggleSwitch", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstToggleSwitch example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstToggleSwitchIlluminated.rs b/crates/xframe-demo/examples/InstToggleSwitchIlluminated.rs new file mode 100644 index 0000000..fba939c --- /dev/null +++ b/crates/xframe-demo/examples/InstToggleSwitchIlluminated.rs @@ -0,0 +1,21 @@ +//! InstToggleSwitchIlluminated — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstToggleSwitchIlluminated +//! It opens an 800x600 window showing one InstToggleSwitchIlluminated widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstToggleSwitchIlluminated")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstToggleSwitchIlluminated", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstToggleSwitchIlluminated example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstVerticalTankLevel.rs b/crates/xframe-demo/examples/InstVerticalTankLevel.rs new file mode 100644 index 0000000..1ee072f --- /dev/null +++ b/crates/xframe-demo/examples/InstVerticalTankLevel.rs @@ -0,0 +1,21 @@ +//! InstVerticalTankLevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstVerticalTankLevel +//! It opens an 800x600 window showing one InstVerticalTankLevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstVerticalTankLevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstVerticalTankLevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstVerticalTankLevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/InstVuMeter.rs b/crates/xframe-demo/examples/InstVuMeter.rs new file mode 100644 index 0000000..f54dd3d --- /dev/null +++ b/crates/xframe-demo/examples/InstVuMeter.rs @@ -0,0 +1,21 @@ +//! InstVuMeter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example InstVuMeter +//! It opens an 800x600 window showing one InstVuMeter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("InstVuMeter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("InstVuMeter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("InstVuMeter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockAccumulationDistribution.rs b/crates/xframe-demo/examples/StockAccumulationDistribution.rs new file mode 100644 index 0000000..a837efb --- /dev/null +++ b/crates/xframe-demo/examples/StockAccumulationDistribution.rs @@ -0,0 +1,21 @@ +//! StockAccumulationDistribution — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockAccumulationDistribution +//! It opens an 800x600 window showing one StockAccumulationDistribution widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockAccumulationDistribution")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockAccumulationDistribution", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockAccumulationDistribution example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockAreaChart.rs b/crates/xframe-demo/examples/StockAreaChart.rs new file mode 100644 index 0000000..0bac541 --- /dev/null +++ b/crates/xframe-demo/examples/StockAreaChart.rs @@ -0,0 +1,21 @@ +//! StockAreaChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockAreaChart +//! It opens an 800x600 window showing one StockAreaChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockAreaChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockAreaChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockAreaChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockArrow.rs b/crates/xframe-demo/examples/StockArrow.rs new file mode 100644 index 0000000..83002bd --- /dev/null +++ b/crates/xframe-demo/examples/StockArrow.rs @@ -0,0 +1,21 @@ +//! StockArrow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockArrow +//! It opens an 800x600 window showing one StockArrow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockArrow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockArrow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockArrow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockBaselineChart.rs b/crates/xframe-demo/examples/StockBaselineChart.rs new file mode 100644 index 0000000..8144d72 --- /dev/null +++ b/crates/xframe-demo/examples/StockBaselineChart.rs @@ -0,0 +1,21 @@ +//! StockBaselineChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockBaselineChart +//! It opens an 800x600 window showing one StockBaselineChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockBaselineChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockBaselineChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockBaselineChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockBrush.rs b/crates/xframe-demo/examples/StockBrush.rs new file mode 100644 index 0000000..3128cc1 --- /dev/null +++ b/crates/xframe-demo/examples/StockBrush.rs @@ -0,0 +1,21 @@ +//! StockBrush — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockBrush +//! It opens an 800x600 window showing one StockBrush widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockBrush")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockBrush", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockBrush example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockCandlestickChart.rs b/crates/xframe-demo/examples/StockCandlestickChart.rs new file mode 100644 index 0000000..8b2762c --- /dev/null +++ b/crates/xframe-demo/examples/StockCandlestickChart.rs @@ -0,0 +1,21 @@ +//! StockCandlestickChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockCandlestickChart +//! It opens an 800x600 window showing one StockCandlestickChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockCandlestickChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockCandlestickChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockCandlestickChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockCorrelationView.rs b/crates/xframe-demo/examples/StockCorrelationView.rs new file mode 100644 index 0000000..1221acb --- /dev/null +++ b/crates/xframe-demo/examples/StockCorrelationView.rs @@ -0,0 +1,21 @@ +//! StockCorrelationView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockCorrelationView +//! It opens an 800x600 window showing one StockCorrelationView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockCorrelationView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockCorrelationView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockCorrelationView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockEllipse.rs b/crates/xframe-demo/examples/StockEllipse.rs new file mode 100644 index 0000000..e7f0b99 --- /dev/null +++ b/crates/xframe-demo/examples/StockEllipse.rs @@ -0,0 +1,21 @@ +//! StockEllipse — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockEllipse +//! It opens an 800x600 window showing one StockEllipse widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockEllipse")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockEllipse", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockEllipse example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockFibExtension.rs b/crates/xframe-demo/examples/StockFibExtension.rs new file mode 100644 index 0000000..8277170 --- /dev/null +++ b/crates/xframe-demo/examples/StockFibExtension.rs @@ -0,0 +1,21 @@ +//! StockFibExtension — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockFibExtension +//! It opens an 800x600 window showing one StockFibExtension widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockFibExtension")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockFibExtension", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockFibExtension example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockFibRetracement.rs b/crates/xframe-demo/examples/StockFibRetracement.rs new file mode 100644 index 0000000..b92a3fb --- /dev/null +++ b/crates/xframe-demo/examples/StockFibRetracement.rs @@ -0,0 +1,21 @@ +//! StockFibRetracement — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockFibRetracement +//! It opens an 800x600 window showing one StockFibRetracement widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockFibRetracement")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockFibRetracement", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockFibRetracement example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockHeikinAshi.rs b/crates/xframe-demo/examples/StockHeikinAshi.rs new file mode 100644 index 0000000..12b62bc --- /dev/null +++ b/crates/xframe-demo/examples/StockHeikinAshi.rs @@ -0,0 +1,21 @@ +//! StockHeikinAshi — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockHeikinAshi +//! It opens an 800x600 window showing one StockHeikinAshi widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockHeikinAshi")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockHeikinAshi", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockHeikinAshi example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockHollowCandles.rs b/crates/xframe-demo/examples/StockHollowCandles.rs new file mode 100644 index 0000000..1df2863 --- /dev/null +++ b/crates/xframe-demo/examples/StockHollowCandles.rs @@ -0,0 +1,21 @@ +//! StockHollowCandles — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockHollowCandles +//! It opens an 800x600 window showing one StockHollowCandles widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockHollowCandles")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockHollowCandles", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockHollowCandles example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockHorizontalLine.rs b/crates/xframe-demo/examples/StockHorizontalLine.rs new file mode 100644 index 0000000..f1dbf9d --- /dev/null +++ b/crates/xframe-demo/examples/StockHorizontalLine.rs @@ -0,0 +1,21 @@ +//! StockHorizontalLine — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockHorizontalLine +//! It opens an 800x600 window showing one StockHorizontalLine widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockHorizontalLine")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockHorizontalLine", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockHorizontalLine example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockIndexedComparison.rs b/crates/xframe-demo/examples/StockIndexedComparison.rs new file mode 100644 index 0000000..3c87712 --- /dev/null +++ b/crates/xframe-demo/examples/StockIndexedComparison.rs @@ -0,0 +1,21 @@ +//! StockIndexedComparison — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockIndexedComparison +//! It opens an 800x600 window showing one StockIndexedComparison widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockIndexedComparison")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockIndexedComparison", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockIndexedComparison example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockLineChart.rs b/crates/xframe-demo/examples/StockLineChart.rs new file mode 100644 index 0000000..2b1446d --- /dev/null +++ b/crates/xframe-demo/examples/StockLineChart.rs @@ -0,0 +1,21 @@ +//! StockLineChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockLineChart +//! It opens an 800x600 window showing one StockLineChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockLineChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockLineChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockLineChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockMeasureTool.rs b/crates/xframe-demo/examples/StockMeasureTool.rs new file mode 100644 index 0000000..caa3b6e --- /dev/null +++ b/crates/xframe-demo/examples/StockMeasureTool.rs @@ -0,0 +1,21 @@ +//! StockMeasureTool — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockMeasureTool +//! It opens an 800x600 window showing one StockMeasureTool widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockMeasureTool")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockMeasureTool", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockMeasureTool example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockMoneyFlowChart.rs b/crates/xframe-demo/examples/StockMoneyFlowChart.rs new file mode 100644 index 0000000..0e7d093 --- /dev/null +++ b/crates/xframe-demo/examples/StockMoneyFlowChart.rs @@ -0,0 +1,21 @@ +//! StockMoneyFlowChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockMoneyFlowChart +//! It opens an 800x600 window showing one StockMoneyFlowChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockMoneyFlowChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockMoneyFlowChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockMoneyFlowChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockMultiSymbolChart.rs b/crates/xframe-demo/examples/StockMultiSymbolChart.rs new file mode 100644 index 0000000..0f5a28b --- /dev/null +++ b/crates/xframe-demo/examples/StockMultiSymbolChart.rs @@ -0,0 +1,21 @@ +//! StockMultiSymbolChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockMultiSymbolChart +//! It opens an 800x600 window showing one StockMultiSymbolChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockMultiSymbolChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockMultiSymbolChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockMultiSymbolChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockOBVChart.rs b/crates/xframe-demo/examples/StockOBVChart.rs new file mode 100644 index 0000000..075d3ff --- /dev/null +++ b/crates/xframe-demo/examples/StockOBVChart.rs @@ -0,0 +1,21 @@ +//! StockOBVChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockOBVChart +//! It opens an 800x600 window showing one StockOBVChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockOBVChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockOBVChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockOBVChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockOHLCBarChart.rs b/crates/xframe-demo/examples/StockOHLCBarChart.rs new file mode 100644 index 0000000..fc79b0b --- /dev/null +++ b/crates/xframe-demo/examples/StockOHLCBarChart.rs @@ -0,0 +1,21 @@ +//! StockOHLCBarChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockOHLCBarChart +//! It opens an 800x600 window showing one StockOHLCBarChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockOHLCBarChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockOHLCBarChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockOHLCBarChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockOverlayChart.rs b/crates/xframe-demo/examples/StockOverlayChart.rs new file mode 100644 index 0000000..5764bc6 --- /dev/null +++ b/crates/xframe-demo/examples/StockOverlayChart.rs @@ -0,0 +1,21 @@ +//! StockOverlayChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockOverlayChart +//! It opens an 800x600 window showing one StockOverlayChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockOverlayChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockOverlayChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockOverlayChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockParallelChannel.rs b/crates/xframe-demo/examples/StockParallelChannel.rs new file mode 100644 index 0000000..fe32db5 --- /dev/null +++ b/crates/xframe-demo/examples/StockParallelChannel.rs @@ -0,0 +1,21 @@ +//! StockParallelChannel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockParallelChannel +//! It opens an 800x600 window showing one StockParallelChannel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockParallelChannel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockParallelChannel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockParallelChannel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockPitchfork.rs b/crates/xframe-demo/examples/StockPitchfork.rs new file mode 100644 index 0000000..0373bf1 --- /dev/null +++ b/crates/xframe-demo/examples/StockPitchfork.rs @@ -0,0 +1,21 @@ +//! StockPitchfork — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockPitchfork +//! It opens an 800x600 window showing one StockPitchfork widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockPitchfork")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockPitchfork", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockPitchfork example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockPriceLabel.rs b/crates/xframe-demo/examples/StockPriceLabel.rs new file mode 100644 index 0000000..0f5ef89 --- /dev/null +++ b/crates/xframe-demo/examples/StockPriceLabel.rs @@ -0,0 +1,21 @@ +//! StockPriceLabel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockPriceLabel +//! It opens an 800x600 window showing one StockPriceLabel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockPriceLabel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockPriceLabel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockPriceLabel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockRatioChart.rs b/crates/xframe-demo/examples/StockRatioChart.rs new file mode 100644 index 0000000..f984602 --- /dev/null +++ b/crates/xframe-demo/examples/StockRatioChart.rs @@ -0,0 +1,21 @@ +//! StockRatioChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockRatioChart +//! It opens an 800x600 window showing one StockRatioChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockRatioChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockRatioChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockRatioChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockRectangle.rs b/crates/xframe-demo/examples/StockRectangle.rs new file mode 100644 index 0000000..ef0ae76 --- /dev/null +++ b/crates/xframe-demo/examples/StockRectangle.rs @@ -0,0 +1,21 @@ +//! StockRectangle — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockRectangle +//! It opens an 800x600 window showing one StockRectangle widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockRectangle")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockRectangle", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockRectangle example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockRelativePerformance.rs b/crates/xframe-demo/examples/StockRelativePerformance.rs new file mode 100644 index 0000000..fc07bea --- /dev/null +++ b/crates/xframe-demo/examples/StockRelativePerformance.rs @@ -0,0 +1,21 @@ +//! StockRelativePerformance — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockRelativePerformance +//! It opens an 800x600 window showing one StockRelativePerformance widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockRelativePerformance")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockRelativePerformance", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockRelativePerformance example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockRenko.rs b/crates/xframe-demo/examples/StockRenko.rs new file mode 100644 index 0000000..cc3aeb7 --- /dev/null +++ b/crates/xframe-demo/examples/StockRenko.rs @@ -0,0 +1,21 @@ +//! StockRenko — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockRenko +//! It opens an 800x600 window showing one StockRenko widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockRenko")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockRenko", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockRenko example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockSectorComparison.rs b/crates/xframe-demo/examples/StockSectorComparison.rs new file mode 100644 index 0000000..9985406 --- /dev/null +++ b/crates/xframe-demo/examples/StockSectorComparison.rs @@ -0,0 +1,21 @@ +//! StockSectorComparison — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockSectorComparison +//! It opens an 800x600 window showing one StockSectorComparison widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockSectorComparison")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockSectorComparison", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockSectorComparison example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockSpreadChart.rs b/crates/xframe-demo/examples/StockSpreadChart.rs new file mode 100644 index 0000000..10149a1 --- /dev/null +++ b/crates/xframe-demo/examples/StockSpreadChart.rs @@ -0,0 +1,21 @@ +//! StockSpreadChart — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockSpreadChart +//! It opens an 800x600 window showing one StockSpreadChart widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockSpreadChart")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockSpreadChart", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockSpreadChart example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockTextAnnotation.rs b/crates/xframe-demo/examples/StockTextAnnotation.rs new file mode 100644 index 0000000..9d71e68 --- /dev/null +++ b/crates/xframe-demo/examples/StockTextAnnotation.rs @@ -0,0 +1,21 @@ +//! StockTextAnnotation — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockTextAnnotation +//! It opens an 800x600 window showing one StockTextAnnotation widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockTextAnnotation")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockTextAnnotation", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockTextAnnotation example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockTrendline.rs b/crates/xframe-demo/examples/StockTrendline.rs new file mode 100644 index 0000000..8d25a71 --- /dev/null +++ b/crates/xframe-demo/examples/StockTrendline.rs @@ -0,0 +1,21 @@ +//! StockTrendline — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockTrendline +//! It opens an 800x600 window showing one StockTrendline widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockTrendline")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockTrendline", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockTrendline example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockVWAP.rs b/crates/xframe-demo/examples/StockVWAP.rs new file mode 100644 index 0000000..bce45f1 --- /dev/null +++ b/crates/xframe-demo/examples/StockVWAP.rs @@ -0,0 +1,21 @@ +//! StockVWAP — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockVWAP +//! It opens an 800x600 window showing one StockVWAP widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockVWAP")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockVWAP", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockVWAP example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockVerticalLine.rs b/crates/xframe-demo/examples/StockVerticalLine.rs new file mode 100644 index 0000000..725b45f --- /dev/null +++ b/crates/xframe-demo/examples/StockVerticalLine.rs @@ -0,0 +1,21 @@ +//! StockVerticalLine — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockVerticalLine +//! It opens an 800x600 window showing one StockVerticalLine widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockVerticalLine")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockVerticalLine", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockVerticalLine example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockVolumeBars.rs b/crates/xframe-demo/examples/StockVolumeBars.rs new file mode 100644 index 0000000..659510e --- /dev/null +++ b/crates/xframe-demo/examples/StockVolumeBars.rs @@ -0,0 +1,21 @@ +//! StockVolumeBars — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockVolumeBars +//! It opens an 800x600 window showing one StockVolumeBars widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockVolumeBars")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockVolumeBars", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockVolumeBars example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockVolumeCandles.rs b/crates/xframe-demo/examples/StockVolumeCandles.rs new file mode 100644 index 0000000..8e1f550 --- /dev/null +++ b/crates/xframe-demo/examples/StockVolumeCandles.rs @@ -0,0 +1,21 @@ +//! StockVolumeCandles — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockVolumeCandles +//! It opens an 800x600 window showing one StockVolumeCandles widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockVolumeCandles")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockVolumeCandles", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockVolumeCandles example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/StockVolumeProfile.rs b/crates/xframe-demo/examples/StockVolumeProfile.rs new file mode 100644 index 0000000..1ccea8c --- /dev/null +++ b/crates/xframe-demo/examples/StockVolumeProfile.rs @@ -0,0 +1,21 @@ +//! StockVolumeProfile — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example StockVolumeProfile +//! It opens an 800x600 window showing one StockVolumeProfile widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("StockVolumeProfile")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("StockVolumeProfile", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("StockVolumeProfile example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TActionList.rs b/crates/xframe-demo/examples/TActionList.rs new file mode 100644 index 0000000..daa9ef1 --- /dev/null +++ b/crates/xframe-demo/examples/TActionList.rs @@ -0,0 +1,21 @@ +//! TActionList — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TActionList +//! It opens an 800x600 window showing one TActionList widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TActionList")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TActionList", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TActionList example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TApplicationProperties.rs b/crates/xframe-demo/examples/TApplicationProperties.rs new file mode 100644 index 0000000..091dd4e --- /dev/null +++ b/crates/xframe-demo/examples/TApplicationProperties.rs @@ -0,0 +1,21 @@ +//! TApplicationProperties — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TApplicationProperties +//! It opens an 800x600 window showing one TApplicationProperties widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TApplicationProperties")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TApplicationProperties", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TApplicationProperties example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TArrow.rs b/crates/xframe-demo/examples/TArrow.rs new file mode 100644 index 0000000..24b5281 --- /dev/null +++ b/crates/xframe-demo/examples/TArrow.rs @@ -0,0 +1,21 @@ +//! TArrow — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TArrow +//! It opens an 800x600 window showing one TArrow widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TArrow")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TArrow", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TArrow example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TBevel.rs b/crates/xframe-demo/examples/TBevel.rs new file mode 100644 index 0000000..69ac502 --- /dev/null +++ b/crates/xframe-demo/examples/TBevel.rs @@ -0,0 +1,21 @@ +//! TBevel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TBevel +//! It opens an 800x600 window showing one TBevel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TBevel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TBevel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TBevel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TBitBtn.rs b/crates/xframe-demo/examples/TBitBtn.rs new file mode 100644 index 0000000..99faf1b --- /dev/null +++ b/crates/xframe-demo/examples/TBitBtn.rs @@ -0,0 +1,21 @@ +//! TBitBtn — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TBitBtn +//! It opens an 800x600 window showing one TBitBtn widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TBitBtn")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TBitBtn", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TBitBtn example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TButton.rs b/crates/xframe-demo/examples/TButton.rs new file mode 100644 index 0000000..afd44cc --- /dev/null +++ b/crates/xframe-demo/examples/TButton.rs @@ -0,0 +1,21 @@ +//! TButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TButton +//! It opens an 800x600 window showing one TButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TButtonPanel.rs b/crates/xframe-demo/examples/TButtonPanel.rs new file mode 100644 index 0000000..d675ccd --- /dev/null +++ b/crates/xframe-demo/examples/TButtonPanel.rs @@ -0,0 +1,21 @@ +//! TButtonPanel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TButtonPanel +//! It opens an 800x600 window showing one TButtonPanel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TButtonPanel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TButtonPanel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TButtonPanel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCalcEdit.rs b/crates/xframe-demo/examples/TCalcEdit.rs new file mode 100644 index 0000000..1f4ce97 --- /dev/null +++ b/crates/xframe-demo/examples/TCalcEdit.rs @@ -0,0 +1,21 @@ +//! TCalcEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCalcEdit +//! It opens an 800x600 window showing one TCalcEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCalcEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCalcEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCalcEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCalculatorDialog.rs b/crates/xframe-demo/examples/TCalculatorDialog.rs new file mode 100644 index 0000000..641ce02 --- /dev/null +++ b/crates/xframe-demo/examples/TCalculatorDialog.rs @@ -0,0 +1,21 @@ +//! TCalculatorDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCalculatorDialog +//! It opens an 800x600 window showing one TCalculatorDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCalculatorDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCalculatorDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCalculatorDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCalendar.rs b/crates/xframe-demo/examples/TCalendar.rs new file mode 100644 index 0000000..9e41471 --- /dev/null +++ b/crates/xframe-demo/examples/TCalendar.rs @@ -0,0 +1,21 @@ +//! TCalendar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCalendar +//! It opens an 800x600 window showing one TCalendar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCalendar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCalendar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCalendar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCalendarDialog.rs b/crates/xframe-demo/examples/TCalendarDialog.rs new file mode 100644 index 0000000..e27c38d --- /dev/null +++ b/crates/xframe-demo/examples/TCalendarDialog.rs @@ -0,0 +1,21 @@ +//! TCalendarDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCalendarDialog +//! It opens an 800x600 window showing one TCalendarDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCalendarDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCalendarDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCalendarDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCheckBox.rs b/crates/xframe-demo/examples/TCheckBox.rs new file mode 100644 index 0000000..c8bd25e --- /dev/null +++ b/crates/xframe-demo/examples/TCheckBox.rs @@ -0,0 +1,21 @@ +//! TCheckBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCheckBox +//! It opens an 800x600 window showing one TCheckBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCheckBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCheckBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCheckBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCheckComboBox.rs b/crates/xframe-demo/examples/TCheckComboBox.rs new file mode 100644 index 0000000..af515b1 --- /dev/null +++ b/crates/xframe-demo/examples/TCheckComboBox.rs @@ -0,0 +1,21 @@ +//! TCheckComboBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCheckComboBox +//! It opens an 800x600 window showing one TCheckComboBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCheckComboBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCheckComboBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCheckComboBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCheckGroup.rs b/crates/xframe-demo/examples/TCheckGroup.rs new file mode 100644 index 0000000..84dbb3e --- /dev/null +++ b/crates/xframe-demo/examples/TCheckGroup.rs @@ -0,0 +1,21 @@ +//! TCheckGroup — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCheckGroup +//! It opens an 800x600 window showing one TCheckGroup widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCheckGroup")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCheckGroup", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCheckGroup example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCheckListBox.rs b/crates/xframe-demo/examples/TCheckListBox.rs new file mode 100644 index 0000000..732dab3 --- /dev/null +++ b/crates/xframe-demo/examples/TCheckListBox.rs @@ -0,0 +1,21 @@ +//! TCheckListBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCheckListBox +//! It opens an 800x600 window showing one TCheckListBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCheckListBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCheckListBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCheckListBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TColorBox.rs b/crates/xframe-demo/examples/TColorBox.rs new file mode 100644 index 0000000..e7a5cdb --- /dev/null +++ b/crates/xframe-demo/examples/TColorBox.rs @@ -0,0 +1,21 @@ +//! TColorBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TColorBox +//! It opens an 800x600 window showing one TColorBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TColorBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TColorBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TColorBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TColorButton.rs b/crates/xframe-demo/examples/TColorButton.rs new file mode 100644 index 0000000..5c6ad54 --- /dev/null +++ b/crates/xframe-demo/examples/TColorButton.rs @@ -0,0 +1,21 @@ +//! TColorButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TColorButton +//! It opens an 800x600 window showing one TColorButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TColorButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TColorButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TColorButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TColorDialog.rs b/crates/xframe-demo/examples/TColorDialog.rs new file mode 100644 index 0000000..a04b082 --- /dev/null +++ b/crates/xframe-demo/examples/TColorDialog.rs @@ -0,0 +1,21 @@ +//! TColorDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TColorDialog +//! It opens an 800x600 window showing one TColorDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TColorDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TColorDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TColorDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TColorListBox.rs b/crates/xframe-demo/examples/TColorListBox.rs new file mode 100644 index 0000000..15eb21c --- /dev/null +++ b/crates/xframe-demo/examples/TColorListBox.rs @@ -0,0 +1,21 @@ +//! TColorListBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TColorListBox +//! It opens an 800x600 window showing one TColorListBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TColorListBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TColorListBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TColorListBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TComboBox.rs b/crates/xframe-demo/examples/TComboBox.rs new file mode 100644 index 0000000..c940164 --- /dev/null +++ b/crates/xframe-demo/examples/TComboBox.rs @@ -0,0 +1,21 @@ +//! TComboBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TComboBox +//! It opens an 800x600 window showing one TComboBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TComboBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TComboBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TComboBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TComboBoxEx.rs b/crates/xframe-demo/examples/TComboBoxEx.rs new file mode 100644 index 0000000..68b680e --- /dev/null +++ b/crates/xframe-demo/examples/TComboBoxEx.rs @@ -0,0 +1,21 @@ +//! TComboBoxEx — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TComboBoxEx +//! It opens an 800x600 window showing one TComboBoxEx widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TComboBoxEx")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TComboBoxEx", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TComboBoxEx example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TControlBar.rs b/crates/xframe-demo/examples/TControlBar.rs new file mode 100644 index 0000000..2bac6a7 --- /dev/null +++ b/crates/xframe-demo/examples/TControlBar.rs @@ -0,0 +1,21 @@ +//! TControlBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TControlBar +//! It opens an 800x600 window showing one TControlBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TControlBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TControlBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TControlBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TCoolBar.rs b/crates/xframe-demo/examples/TCoolBar.rs new file mode 100644 index 0000000..d54dff7 --- /dev/null +++ b/crates/xframe-demo/examples/TCoolBar.rs @@ -0,0 +1,21 @@ +//! TCoolBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TCoolBar +//! It opens an 800x600 window showing one TCoolBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TCoolBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TCoolBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TCoolBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TDateEdit.rs b/crates/xframe-demo/examples/TDateEdit.rs new file mode 100644 index 0000000..efb1252 --- /dev/null +++ b/crates/xframe-demo/examples/TDateEdit.rs @@ -0,0 +1,21 @@ +//! TDateEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TDateEdit +//! It opens an 800x600 window showing one TDateEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TDateEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TDateEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TDateEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TDateTimePicker.rs b/crates/xframe-demo/examples/TDateTimePicker.rs new file mode 100644 index 0000000..f9daa09 --- /dev/null +++ b/crates/xframe-demo/examples/TDateTimePicker.rs @@ -0,0 +1,21 @@ +//! TDateTimePicker — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TDateTimePicker +//! It opens an 800x600 window showing one TDateTimePicker widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TDateTimePicker")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TDateTimePicker", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TDateTimePicker example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TDirectoryEdit.rs b/crates/xframe-demo/examples/TDirectoryEdit.rs new file mode 100644 index 0000000..2837c76 --- /dev/null +++ b/crates/xframe-demo/examples/TDirectoryEdit.rs @@ -0,0 +1,21 @@ +//! TDirectoryEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TDirectoryEdit +//! It opens an 800x600 window showing one TDirectoryEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TDirectoryEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TDirectoryEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TDirectoryEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TDrawGrid.rs b/crates/xframe-demo/examples/TDrawGrid.rs new file mode 100644 index 0000000..715d875 --- /dev/null +++ b/crates/xframe-demo/examples/TDrawGrid.rs @@ -0,0 +1,21 @@ +//! TDrawGrid — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TDrawGrid +//! It opens an 800x600 window showing one TDrawGrid widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TDrawGrid")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TDrawGrid", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TDrawGrid example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TEdit.rs b/crates/xframe-demo/examples/TEdit.rs new file mode 100644 index 0000000..e15ef66 --- /dev/null +++ b/crates/xframe-demo/examples/TEdit.rs @@ -0,0 +1,21 @@ +//! TEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TEdit +//! It opens an 800x600 window showing one TEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TEditButton.rs b/crates/xframe-demo/examples/TEditButton.rs new file mode 100644 index 0000000..0b74eb5 --- /dev/null +++ b/crates/xframe-demo/examples/TEditButton.rs @@ -0,0 +1,21 @@ +//! TEditButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TEditButton +//! It opens an 800x600 window showing one TEditButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TEditButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TEditButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TEditButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFileListBox.rs b/crates/xframe-demo/examples/TFileListBox.rs new file mode 100644 index 0000000..84b2b30 --- /dev/null +++ b/crates/xframe-demo/examples/TFileListBox.rs @@ -0,0 +1,21 @@ +//! TFileListBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFileListBox +//! It opens an 800x600 window showing one TFileListBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFileListBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFileListBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFileListBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFileNameEdit.rs b/crates/xframe-demo/examples/TFileNameEdit.rs new file mode 100644 index 0000000..c09554b --- /dev/null +++ b/crates/xframe-demo/examples/TFileNameEdit.rs @@ -0,0 +1,21 @@ +//! TFileNameEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFileNameEdit +//! It opens an 800x600 window showing one TFileNameEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFileNameEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFileNameEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFileNameEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFilterComboBox.rs b/crates/xframe-demo/examples/TFilterComboBox.rs new file mode 100644 index 0000000..3b3c7f8 --- /dev/null +++ b/crates/xframe-demo/examples/TFilterComboBox.rs @@ -0,0 +1,21 @@ +//! TFilterComboBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFilterComboBox +//! It opens an 800x600 window showing one TFilterComboBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFilterComboBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFilterComboBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFilterComboBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFindDialog.rs b/crates/xframe-demo/examples/TFindDialog.rs new file mode 100644 index 0000000..763970c --- /dev/null +++ b/crates/xframe-demo/examples/TFindDialog.rs @@ -0,0 +1,21 @@ +//! TFindDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFindDialog +//! It opens an 800x600 window showing one TFindDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFindDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFindDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFindDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFloatSpinEdit.rs b/crates/xframe-demo/examples/TFloatSpinEdit.rs new file mode 100644 index 0000000..750927b --- /dev/null +++ b/crates/xframe-demo/examples/TFloatSpinEdit.rs @@ -0,0 +1,21 @@ +//! TFloatSpinEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFloatSpinEdit +//! It opens an 800x600 window showing one TFloatSpinEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFloatSpinEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFloatSpinEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFloatSpinEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFlowPanel.rs b/crates/xframe-demo/examples/TFlowPanel.rs new file mode 100644 index 0000000..663a5bf --- /dev/null +++ b/crates/xframe-demo/examples/TFlowPanel.rs @@ -0,0 +1,21 @@ +//! TFlowPanel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFlowPanel +//! It opens an 800x600 window showing one TFlowPanel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFlowPanel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFlowPanel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFlowPanel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFontDialog.rs b/crates/xframe-demo/examples/TFontDialog.rs new file mode 100644 index 0000000..6684694 --- /dev/null +++ b/crates/xframe-demo/examples/TFontDialog.rs @@ -0,0 +1,21 @@ +//! TFontDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFontDialog +//! It opens an 800x600 window showing one TFontDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFontDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFontDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFontDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TForm.rs b/crates/xframe-demo/examples/TForm.rs new file mode 100644 index 0000000..527af31 --- /dev/null +++ b/crates/xframe-demo/examples/TForm.rs @@ -0,0 +1,21 @@ +//! TForm — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TForm +//! It opens an 800x600 window showing one TForm widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TForm")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TForm", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TForm example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TFrame.rs b/crates/xframe-demo/examples/TFrame.rs new file mode 100644 index 0000000..5cb735a --- /dev/null +++ b/crates/xframe-demo/examples/TFrame.rs @@ -0,0 +1,21 @@ +//! TFrame — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TFrame +//! It opens an 800x600 window showing one TFrame widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TFrame")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TFrame", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TFrame example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TGroupBox.rs b/crates/xframe-demo/examples/TGroupBox.rs new file mode 100644 index 0000000..ab41495 --- /dev/null +++ b/crates/xframe-demo/examples/TGroupBox.rs @@ -0,0 +1,21 @@ +//! TGroupBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TGroupBox +//! It opens an 800x600 window showing one TGroupBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TGroupBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TGroupBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TGroupBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/THeaderControl.rs b/crates/xframe-demo/examples/THeaderControl.rs new file mode 100644 index 0000000..b508d2c --- /dev/null +++ b/crates/xframe-demo/examples/THeaderControl.rs @@ -0,0 +1,21 @@ +//! THeaderControl — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example THeaderControl +//! It opens an 800x600 window showing one THeaderControl widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("THeaderControl")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("THeaderControl", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("THeaderControl example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TImage.rs b/crates/xframe-demo/examples/TImage.rs new file mode 100644 index 0000000..a3ad1d8 --- /dev/null +++ b/crates/xframe-demo/examples/TImage.rs @@ -0,0 +1,21 @@ +//! TImage — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TImage +//! It opens an 800x600 window showing one TImage widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TImage")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TImage", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TImage example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TImageList.rs b/crates/xframe-demo/examples/TImageList.rs new file mode 100644 index 0000000..3de3499 --- /dev/null +++ b/crates/xframe-demo/examples/TImageList.rs @@ -0,0 +1,21 @@ +//! TImageList — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TImageList +//! It opens an 800x600 window showing one TImageList widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TImageList")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TImageList", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TImageList example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TLabel.rs b/crates/xframe-demo/examples/TLabel.rs new file mode 100644 index 0000000..e035623 --- /dev/null +++ b/crates/xframe-demo/examples/TLabel.rs @@ -0,0 +1,21 @@ +//! TLabel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TLabel +//! It opens an 800x600 window showing one TLabel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TLabel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TLabel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TLabel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TLabeledEdit.rs b/crates/xframe-demo/examples/TLabeledEdit.rs new file mode 100644 index 0000000..bd0589c --- /dev/null +++ b/crates/xframe-demo/examples/TLabeledEdit.rs @@ -0,0 +1,21 @@ +//! TLabeledEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TLabeledEdit +//! It opens an 800x600 window showing one TLabeledEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TLabeledEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TLabeledEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TLabeledEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TListBox.rs b/crates/xframe-demo/examples/TListBox.rs new file mode 100644 index 0000000..dcfe133 --- /dev/null +++ b/crates/xframe-demo/examples/TListBox.rs @@ -0,0 +1,21 @@ +//! TListBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TListBox +//! It opens an 800x600 window showing one TListBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TListBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TListBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TListBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TListView.rs b/crates/xframe-demo/examples/TListView.rs new file mode 100644 index 0000000..4f5dd4e --- /dev/null +++ b/crates/xframe-demo/examples/TListView.rs @@ -0,0 +1,21 @@ +//! TListView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TListView +//! It opens an 800x600 window showing one TListView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TListView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TListView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TListView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TMainMenu.rs b/crates/xframe-demo/examples/TMainMenu.rs new file mode 100644 index 0000000..d2039b1 --- /dev/null +++ b/crates/xframe-demo/examples/TMainMenu.rs @@ -0,0 +1,21 @@ +//! TMainMenu — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TMainMenu +//! It opens an 800x600 window showing one TMainMenu widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TMainMenu")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TMainMenu", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TMainMenu example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TMaskEdit.rs b/crates/xframe-demo/examples/TMaskEdit.rs new file mode 100644 index 0000000..f1b1831 --- /dev/null +++ b/crates/xframe-demo/examples/TMaskEdit.rs @@ -0,0 +1,21 @@ +//! TMaskEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TMaskEdit +//! It opens an 800x600 window showing one TMaskEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TMaskEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TMaskEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TMaskEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TMemo.rs b/crates/xframe-demo/examples/TMemo.rs new file mode 100644 index 0000000..753087b --- /dev/null +++ b/crates/xframe-demo/examples/TMemo.rs @@ -0,0 +1,21 @@ +//! TMemo — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TMemo +//! It opens an 800x600 window showing one TMemo widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TMemo")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TMemo", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TMemo example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TNotebook.rs b/crates/xframe-demo/examples/TNotebook.rs new file mode 100644 index 0000000..77a0d32 --- /dev/null +++ b/crates/xframe-demo/examples/TNotebook.rs @@ -0,0 +1,21 @@ +//! TNotebook — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TNotebook +//! It opens an 800x600 window showing one TNotebook widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TNotebook")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TNotebook", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TNotebook example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TOpenDialog.rs b/crates/xframe-demo/examples/TOpenDialog.rs new file mode 100644 index 0000000..c123bb3 --- /dev/null +++ b/crates/xframe-demo/examples/TOpenDialog.rs @@ -0,0 +1,21 @@ +//! TOpenDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TOpenDialog +//! It opens an 800x600 window showing one TOpenDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TOpenDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TOpenDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TOpenDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TOpenPictureDialog.rs b/crates/xframe-demo/examples/TOpenPictureDialog.rs new file mode 100644 index 0000000..5c6f8db --- /dev/null +++ b/crates/xframe-demo/examples/TOpenPictureDialog.rs @@ -0,0 +1,21 @@ +//! TOpenPictureDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TOpenPictureDialog +//! It opens an 800x600 window showing one TOpenPictureDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TOpenPictureDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TOpenPictureDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TOpenPictureDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPageControl.rs b/crates/xframe-demo/examples/TPageControl.rs new file mode 100644 index 0000000..b40de73 --- /dev/null +++ b/crates/xframe-demo/examples/TPageControl.rs @@ -0,0 +1,21 @@ +//! TPageControl — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPageControl +//! It opens an 800x600 window showing one TPageControl widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPageControl")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPageControl", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPageControl example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPageSetupDialog.rs b/crates/xframe-demo/examples/TPageSetupDialog.rs new file mode 100644 index 0000000..a7269fe --- /dev/null +++ b/crates/xframe-demo/examples/TPageSetupDialog.rs @@ -0,0 +1,21 @@ +//! TPageSetupDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPageSetupDialog +//! It opens an 800x600 window showing one TPageSetupDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPageSetupDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPageSetupDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPageSetupDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPaintBox.rs b/crates/xframe-demo/examples/TPaintBox.rs new file mode 100644 index 0000000..f823a57 --- /dev/null +++ b/crates/xframe-demo/examples/TPaintBox.rs @@ -0,0 +1,21 @@ +//! TPaintBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPaintBox +//! It opens an 800x600 window showing one TPaintBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPaintBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPaintBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPaintBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPairSplitter.rs b/crates/xframe-demo/examples/TPairSplitter.rs new file mode 100644 index 0000000..758ac1f --- /dev/null +++ b/crates/xframe-demo/examples/TPairSplitter.rs @@ -0,0 +1,21 @@ +//! TPairSplitter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPairSplitter +//! It opens an 800x600 window showing one TPairSplitter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPairSplitter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPairSplitter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPairSplitter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPanel.rs b/crates/xframe-demo/examples/TPanel.rs new file mode 100644 index 0000000..602ce5b --- /dev/null +++ b/crates/xframe-demo/examples/TPanel.rs @@ -0,0 +1,21 @@ +//! TPanel — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPanel +//! It opens an 800x600 window showing one TPanel widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPanel")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPanel", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPanel example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPopupMenu.rs b/crates/xframe-demo/examples/TPopupMenu.rs new file mode 100644 index 0000000..f1c5d9a --- /dev/null +++ b/crates/xframe-demo/examples/TPopupMenu.rs @@ -0,0 +1,21 @@ +//! TPopupMenu — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPopupMenu +//! It opens an 800x600 window showing one TPopupMenu widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPopupMenu")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPopupMenu", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPopupMenu example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPopupNotifier.rs b/crates/xframe-demo/examples/TPopupNotifier.rs new file mode 100644 index 0000000..bbec632 --- /dev/null +++ b/crates/xframe-demo/examples/TPopupNotifier.rs @@ -0,0 +1,21 @@ +//! TPopupNotifier — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPopupNotifier +//! It opens an 800x600 window showing one TPopupNotifier widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPopupNotifier")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPopupNotifier", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPopupNotifier example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPrintDialog.rs b/crates/xframe-demo/examples/TPrintDialog.rs new file mode 100644 index 0000000..8d8e542 --- /dev/null +++ b/crates/xframe-demo/examples/TPrintDialog.rs @@ -0,0 +1,21 @@ +//! TPrintDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPrintDialog +//! It opens an 800x600 window showing one TPrintDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPrintDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPrintDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPrintDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TPrinterSetupDialog.rs b/crates/xframe-demo/examples/TPrinterSetupDialog.rs new file mode 100644 index 0000000..a00784d --- /dev/null +++ b/crates/xframe-demo/examples/TPrinterSetupDialog.rs @@ -0,0 +1,21 @@ +//! TPrinterSetupDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TPrinterSetupDialog +//! It opens an 800x600 window showing one TPrinterSetupDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TPrinterSetupDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TPrinterSetupDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TPrinterSetupDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TProgressBar.rs b/crates/xframe-demo/examples/TProgressBar.rs new file mode 100644 index 0000000..f6b4ebc --- /dev/null +++ b/crates/xframe-demo/examples/TProgressBar.rs @@ -0,0 +1,21 @@ +//! TProgressBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TProgressBar +//! It opens an 800x600 window showing one TProgressBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TProgressBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TProgressBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TProgressBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TRadioButton.rs b/crates/xframe-demo/examples/TRadioButton.rs new file mode 100644 index 0000000..bbb2651 --- /dev/null +++ b/crates/xframe-demo/examples/TRadioButton.rs @@ -0,0 +1,21 @@ +//! TRadioButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TRadioButton +//! It opens an 800x600 window showing one TRadioButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TRadioButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TRadioButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TRadioButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TRadioGroup.rs b/crates/xframe-demo/examples/TRadioGroup.rs new file mode 100644 index 0000000..b30cd62 --- /dev/null +++ b/crates/xframe-demo/examples/TRadioGroup.rs @@ -0,0 +1,21 @@ +//! TRadioGroup — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TRadioGroup +//! It opens an 800x600 window showing one TRadioGroup widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TRadioGroup")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TRadioGroup", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TRadioGroup example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TReplaceDialog.rs b/crates/xframe-demo/examples/TReplaceDialog.rs new file mode 100644 index 0000000..dad1abe --- /dev/null +++ b/crates/xframe-demo/examples/TReplaceDialog.rs @@ -0,0 +1,21 @@ +//! TReplaceDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TReplaceDialog +//! It opens an 800x600 window showing one TReplaceDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TReplaceDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TReplaceDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TReplaceDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSaveDialog.rs b/crates/xframe-demo/examples/TSaveDialog.rs new file mode 100644 index 0000000..d8f00c8 --- /dev/null +++ b/crates/xframe-demo/examples/TSaveDialog.rs @@ -0,0 +1,21 @@ +//! TSaveDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSaveDialog +//! It opens an 800x600 window showing one TSaveDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSaveDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSaveDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSaveDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSavePictureDialog.rs b/crates/xframe-demo/examples/TSavePictureDialog.rs new file mode 100644 index 0000000..18dd5ec --- /dev/null +++ b/crates/xframe-demo/examples/TSavePictureDialog.rs @@ -0,0 +1,21 @@ +//! TSavePictureDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSavePictureDialog +//! It opens an 800x600 window showing one TSavePictureDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSavePictureDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSavePictureDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSavePictureDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TScrollBar.rs b/crates/xframe-demo/examples/TScrollBar.rs new file mode 100644 index 0000000..0cfd0a2 --- /dev/null +++ b/crates/xframe-demo/examples/TScrollBar.rs @@ -0,0 +1,21 @@ +//! TScrollBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TScrollBar +//! It opens an 800x600 window showing one TScrollBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TScrollBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TScrollBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TScrollBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TScrollBox.rs b/crates/xframe-demo/examples/TScrollBox.rs new file mode 100644 index 0000000..eb78600 --- /dev/null +++ b/crates/xframe-demo/examples/TScrollBox.rs @@ -0,0 +1,21 @@ +//! TScrollBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TScrollBox +//! It opens an 800x600 window showing one TScrollBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TScrollBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TScrollBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TScrollBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSelectDirectoryDialog.rs b/crates/xframe-demo/examples/TSelectDirectoryDialog.rs new file mode 100644 index 0000000..3b1ecdf --- /dev/null +++ b/crates/xframe-demo/examples/TSelectDirectoryDialog.rs @@ -0,0 +1,21 @@ +//! TSelectDirectoryDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSelectDirectoryDialog +//! It opens an 800x600 window showing one TSelectDirectoryDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSelectDirectoryDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSelectDirectoryDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSelectDirectoryDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TShape.rs b/crates/xframe-demo/examples/TShape.rs new file mode 100644 index 0000000..6944e06 --- /dev/null +++ b/crates/xframe-demo/examples/TShape.rs @@ -0,0 +1,21 @@ +//! TShape — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TShape +//! It opens an 800x600 window showing one TShape widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TShape")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TShape", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TShape example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TShellListView.rs b/crates/xframe-demo/examples/TShellListView.rs new file mode 100644 index 0000000..7d0b10f --- /dev/null +++ b/crates/xframe-demo/examples/TShellListView.rs @@ -0,0 +1,21 @@ +//! TShellListView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TShellListView +//! It opens an 800x600 window showing one TShellListView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TShellListView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TShellListView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TShellListView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TShellTreeView.rs b/crates/xframe-demo/examples/TShellTreeView.rs new file mode 100644 index 0000000..a5345b8 --- /dev/null +++ b/crates/xframe-demo/examples/TShellTreeView.rs @@ -0,0 +1,21 @@ +//! TShellTreeView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TShellTreeView +//! It opens an 800x600 window showing one TShellTreeView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TShellTreeView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TShellTreeView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TShellTreeView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSpeedButton.rs b/crates/xframe-demo/examples/TSpeedButton.rs new file mode 100644 index 0000000..b42c88e --- /dev/null +++ b/crates/xframe-demo/examples/TSpeedButton.rs @@ -0,0 +1,21 @@ +//! TSpeedButton — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSpeedButton +//! It opens an 800x600 window showing one TSpeedButton widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSpeedButton")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSpeedButton", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSpeedButton example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSpinEdit.rs b/crates/xframe-demo/examples/TSpinEdit.rs new file mode 100644 index 0000000..812155e --- /dev/null +++ b/crates/xframe-demo/examples/TSpinEdit.rs @@ -0,0 +1,21 @@ +//! TSpinEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSpinEdit +//! It opens an 800x600 window showing one TSpinEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSpinEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSpinEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSpinEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TSplitter.rs b/crates/xframe-demo/examples/TSplitter.rs new file mode 100644 index 0000000..8e3437a --- /dev/null +++ b/crates/xframe-demo/examples/TSplitter.rs @@ -0,0 +1,21 @@ +//! TSplitter — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TSplitter +//! It opens an 800x600 window showing one TSplitter widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TSplitter")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TSplitter", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TSplitter example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TStaticText.rs b/crates/xframe-demo/examples/TStaticText.rs new file mode 100644 index 0000000..cb7c8a6 --- /dev/null +++ b/crates/xframe-demo/examples/TStaticText.rs @@ -0,0 +1,21 @@ +//! TStaticText — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TStaticText +//! It opens an 800x600 window showing one TStaticText widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TStaticText")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TStaticText", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TStaticText example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TStatusBar.rs b/crates/xframe-demo/examples/TStatusBar.rs new file mode 100644 index 0000000..fbaacb7 --- /dev/null +++ b/crates/xframe-demo/examples/TStatusBar.rs @@ -0,0 +1,21 @@ +//! TStatusBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TStatusBar +//! It opens an 800x600 window showing one TStatusBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TStatusBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TStatusBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TStatusBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TStringGrid.rs b/crates/xframe-demo/examples/TStringGrid.rs new file mode 100644 index 0000000..ecc3cec --- /dev/null +++ b/crates/xframe-demo/examples/TStringGrid.rs @@ -0,0 +1,21 @@ +//! TStringGrid — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TStringGrid +//! It opens an 800x600 window showing one TStringGrid widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TStringGrid")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TStringGrid", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TStringGrid example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTabControl.rs b/crates/xframe-demo/examples/TTabControl.rs new file mode 100644 index 0000000..c23050d --- /dev/null +++ b/crates/xframe-demo/examples/TTabControl.rs @@ -0,0 +1,21 @@ +//! TTabControl — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTabControl +//! It opens an 800x600 window showing one TTabControl widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTabControl")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTabControl", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTabControl example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTaskDialog.rs b/crates/xframe-demo/examples/TTaskDialog.rs new file mode 100644 index 0000000..98eee58 --- /dev/null +++ b/crates/xframe-demo/examples/TTaskDialog.rs @@ -0,0 +1,21 @@ +//! TTaskDialog — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTaskDialog +//! It opens an 800x600 window showing one TTaskDialog widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTaskDialog")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTaskDialog", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTaskDialog example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTimeEdit.rs b/crates/xframe-demo/examples/TTimeEdit.rs new file mode 100644 index 0000000..2e07a67 --- /dev/null +++ b/crates/xframe-demo/examples/TTimeEdit.rs @@ -0,0 +1,21 @@ +//! TTimeEdit — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTimeEdit +//! It opens an 800x600 window showing one TTimeEdit widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTimeEdit")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTimeEdit", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTimeEdit example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTimer.rs b/crates/xframe-demo/examples/TTimer.rs new file mode 100644 index 0000000..7cc806f --- /dev/null +++ b/crates/xframe-demo/examples/TTimer.rs @@ -0,0 +1,21 @@ +//! TTimer — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTimer +//! It opens an 800x600 window showing one TTimer widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTimer")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTimer", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTimer example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TToggleBox.rs b/crates/xframe-demo/examples/TToggleBox.rs new file mode 100644 index 0000000..c8df596 --- /dev/null +++ b/crates/xframe-demo/examples/TToggleBox.rs @@ -0,0 +1,21 @@ +//! TToggleBox — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TToggleBox +//! It opens an 800x600 window showing one TToggleBox widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TToggleBox")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TToggleBox", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TToggleBox example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TToolBar.rs b/crates/xframe-demo/examples/TToolBar.rs new file mode 100644 index 0000000..ef4f9f2 --- /dev/null +++ b/crates/xframe-demo/examples/TToolBar.rs @@ -0,0 +1,21 @@ +//! TToolBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TToolBar +//! It opens an 800x600 window showing one TToolBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TToolBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TToolBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TToolBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTrackBar.rs b/crates/xframe-demo/examples/TTrackBar.rs new file mode 100644 index 0000000..3f36ec9 --- /dev/null +++ b/crates/xframe-demo/examples/TTrackBar.rs @@ -0,0 +1,21 @@ +//! TTrackBar — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTrackBar +//! It opens an 800x600 window showing one TTrackBar widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTrackBar")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTrackBar", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTrackBar example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTrayIcon.rs b/crates/xframe-demo/examples/TTrayIcon.rs new file mode 100644 index 0000000..68d6d47 --- /dev/null +++ b/crates/xframe-demo/examples/TTrayIcon.rs @@ -0,0 +1,21 @@ +//! TTrayIcon — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTrayIcon +//! It opens an 800x600 window showing one TTrayIcon widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTrayIcon")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTrayIcon", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTrayIcon example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TTreeView.rs b/crates/xframe-demo/examples/TTreeView.rs new file mode 100644 index 0000000..096a14c --- /dev/null +++ b/crates/xframe-demo/examples/TTreeView.rs @@ -0,0 +1,21 @@ +//! TTreeView — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TTreeView +//! It opens an 800x600 window showing one TTreeView widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TTreeView")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TTreeView", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TTreeView example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TUpDown.rs b/crates/xframe-demo/examples/TUpDown.rs new file mode 100644 index 0000000..d2dc86b --- /dev/null +++ b/crates/xframe-demo/examples/TUpDown.rs @@ -0,0 +1,21 @@ +//! TUpDown — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TUpDown +//! It opens an 800x600 window showing one TUpDown widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TUpDown")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TUpDown", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TUpDown example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/TValueListEditor.rs b/crates/xframe-demo/examples/TValueListEditor.rs new file mode 100644 index 0000000..4173abc --- /dev/null +++ b/crates/xframe-demo/examples/TValueListEditor.rs @@ -0,0 +1,21 @@ +//! TValueListEditor — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example TValueListEditor +//! It opens an 800x600 window showing one TValueListEditor widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("TValueListEditor")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("TValueListEditor", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("TValueListEditor example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/XGraph.rs b/crates/xframe-demo/examples/XGraph.rs new file mode 100644 index 0000000..0d59df9 --- /dev/null +++ b/crates/xframe-demo/examples/XGraph.rs @@ -0,0 +1,21 @@ +//! XGraph — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example XGraph +//! It opens an 800x600 window showing one XGraph widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("XGraph")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("XGraph", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("XGraph example: {}", e); + ExitCode::from(1) + } + } +} diff --git a/crates/xframe-demo/examples/XSpreadsheet.rs b/crates/xframe-demo/examples/XSpreadsheet.rs new file mode 100644 index 0000000..3b0f75b --- /dev/null +++ b/crates/xframe-demo/examples/XSpreadsheet.rs @@ -0,0 +1,21 @@ +//! XSpreadsheet — minimal complete XFrame example. +//! +//! Run it from the workspace root: +//! cargo run -p xframe-demo --example XSpreadsheet +//! It opens an 800x600 window showing one XSpreadsheet widget (press Esc +//! or `q`, or close the window, to quit). The widget is the real +//! `xframe-widgets` implementation for this registry kind, created by +//! `xframe_widgets::create("XSpreadsheet")` inside `xframe_demo::run_widget` +//! — the same code path the `xframe-demo` binary uses. + +use std::process::ExitCode; + +fn main() -> ExitCode { + match xframe_demo::run_widget("XSpreadsheet", false, None, None) { + Ok(code) => ExitCode::from(code as u8), + Err(e) => { + eprintln!("XSpreadsheet example: {}", e); + ExitCode::from(1) + } + } +}