about
Bits Content Prototype
05/22/2024
Bits: Prototype UI Content
Test three 2-panel views, one fixed and two with splitter drag and panel click events.
Many of the code bits are being refactored. One consequence is that most of the "RemoteExecute"
buttons do not link to matching code.
1.0 Test Panel Widgets
1.1 Fixed Width Panels
/*------------------------------*/
code here
1.2 Splitter-bar panels with Noflow Text
/*------------------------------*/
code here
and here
--
Some explanatory text here
and here
---
Note: This panel uses style white-space:nowrap
That means that most styles are enforced.
1.3 Splitter-bar panels with pre styling
/*------------------------------*/
code here
and here
--
/*------------------------------*/
output here
and here
...
Note: this panel uses style white-space:pre
That means that almost all other styles are ignored
1.4 Floated Code Block
/*-- initialize language defined types --*/
let i = 42i8; // data type specified
let b = true; // data type inferred
let f:f32 = 3.14159; // variable type specified
let c:char = 'z';
let sl:&str = "a literal string";
let second = sl.chars().nth(1);
let st = "an owned string".to_string();
let fourth = st.chars().nth(3);
let arr:[i32; 3] = [1, 2, 3];
let first = arr[0];
let tp: (i32, f64, char) = (1, 2.5, 'a');
let second = tp.1;
let iref: &i8 = &i;
let aref: &[i32; 3] = &arr;
1.5 Labeled Two Panel Block
Build and Run
Cargo.toml Contents
> cargo run
Compiling hello_world v0.1.0 (C:\github\JimFawcett\RustStory\Chap_1_Models\hello_world)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s
Running `target\debug\hello_world.exe`
Hello, world!
[package]
name = "hello"
version = "0.1.0"
authors = ["James W. Fawcett "]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
1.6 Labeled Two Panel Block with Splits
Build and Run
Cargo.toml Contents
> cargo run
Compiling hello_world v0.1.0 (C:\github\JimFawcett\RustStory\Chap_1_Models\hello_world)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.36s
Running `target\debug\hello_world.exe`
Hello, world!
New Section
> cargo run
[package]
name = "hello"
version = "0.1.0"
authors = ["James W. Fawcett "]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
Newer Section
Some improbable stuff here
1.7 One Panel Block
Cargo.toml
[package]
name = "demo"
version = "0.1.0"
authors = ["James W. Fawcett <jfawcett@twcny.rr.com>"]
edition = "2018"
[dependencies]
demo_lib = { path = "../demo_lib" }
1.8 Experimental Three Panel Block
// C++ code here ----------------------------------------
// C++ code here ----------------------------
Some text here and more here and more here and more here and more