xframe-demo: per-widget cargo examples for all 547 kinds
Generated examples/<WidgetName>.rs (547 files): each is a minimal complete program calling xframe_demo::run_widget(name) — the same code path as the xframe-demo binary. cargo check --examples passes for all 547; the 5 pilot examples were built, run under Xvfb and screenshotted.
This commit is contained in:
1 parent
099e3122b1
commit
b42ab73b80
542 files changed
+11382
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loaded 100 of 542 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user