Skip to content

Commit 898b528

Browse files
Dave Hornerdave horner
authored andcommitted
fix(macos): fix coregraphics errors.
1 parent ab03b04 commit 898b528

56 files changed

Lines changed: 5797 additions & 5326 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!-- Version notice -->
66
<p style="font-style: italic; color: #ccc; margin-top: 0.5em;">
7-
You are reading documentation version <span id="doc-version" style="color: white;">0.3.1</span>.
7+
You are reading documentation version <span id="doc-version" style="color: white;">0.3.2</span>.
88
If this does not match the version displayed above, then you're not reading the latest documentation.
99
</p>
1010
<img id="screenshot"
@@ -302,7 +302,7 @@ Note: Disabling the version check means you forgo a mechanism designed to ensure
302302
303303
<!-- Version notice -->
304304
<p style="font-style: italic; color: #ccc; margin-top: 0.5em;">
305-
You are reading documentation version <span id="doc-version" style="color: white;">0.3.1</span>.
305+
You are reading documentation version <span id="doc-version" style="color: white;">0.3.2</span>.
306306
If this does not match the version displayed above, then you're not reading the latest documentation.
307307
</p>
308308

addendum/e_crate_version_checker/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.1.35](https://github.com/davehorner/cargo-e/compare/e_crate_version_checker-v0.1.34...e_crate_version_checker-v0.1.35) - 2025-10-12
6+
7+
### Added
8+
9+
- *(e_window)* Implement message box functionality and auto-centering
10+
511
## [0.1.34](https://github.com/davehorner/cargo-e/compare/e_crate_version_checker-v0.1.33...e_crate_version_checker-v0.1.34) - 2025-10-11
612

713
### Added

addendum/e_crate_version_checker/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "e_crate_version_checker"
33
description = "A tool to check for newer versions of Rust crates on crates.io and interactively update them."
44
license = "MIT OR Apache-2.0"
5-
version = "0.1.34"
5+
version = "0.1.35"
66
authors = ["David Horner"]
77
edition = "2021"
88
rust-version = "1.81.0"

addendum/e_window_api/CHANGELOG.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1-
# Changelog
2-
3-
All notable changes to this project will be documented in this file.
4-
5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7-
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
9+
## [0.1.2](https://github.com/davehorner/cargo-e/compare/e_window_api-v0.1.1...e_window_api-v0.1.2) - 2025-10-12
10+
11+
### Fixed
12+
13+
- *(macos)* fix coregraphics errors.
14+
815
## [0.1.1] - 2025-10-10
916

1017
### Changed

addendum/e_window_api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "e_window_api"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
description = "A Rust API wrapper for e_window providing high-level abstraction"
66
license = "MIT"

addendum/e_window_api/build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fn main() {
2-
// Placeholder for build script logic
3-
println!("cargo:rerun-if-changed=build.rs");
4-
}
1+
fn main() {
2+
// Placeholder for build script logic
3+
println!("cargo:rerun-if-changed=build.rs");
4+
}
Lines changed: 64 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,64 @@
1-
use e_window_api::{EWindow, WindowConfig, Card};
2-
3-
/// Demonstrates anchor link functionality in e_window_api
4-
///
5-
/// This example shows how to create cards with clickable anchor links
6-
/// that can:
7-
/// - Launch other e_window instances
8-
/// - Open URLs in the default browser
9-
/// - Execute system commands
10-
/// - Display text-only anchors (non-clickable)
11-
#[tokio::main]
12-
async fn main() -> Result<(), Box<dyn std::error::Error>> {
13-
println!("Starting anchor links demo...");
14-
15-
// Create a window to demonstrate anchor functionality
16-
let config = WindowConfig::new()
17-
.title("Anchor Links Demo")
18-
.size(800, 600)
19-
.position(200, 200);
20-
21-
let mut window = EWindow::launch(config).await?;
22-
23-
// Create a card with various types of anchors
24-
let main_card = Card::new()
25-
.window_title("Anchor Links Demo")
26-
.field("demo", "anchor_links")
27-
.field("version", "1.0")
28-
.card_title("🔗 e_window Anchor Links Demo")
29-
.header("Click the buttons below to test different anchor types")
30-
.caption("This demonstrates the anchor link functionality")
31-
.body_line("")
32-
.body_line("📋 Available anchor types:")
33-
.body_line("")
34-
.anchor("🪟 Launch another e_window", "e_window --title \"Spawned Window!\" --width 400 --height 300 --x 100 --y 100")
35-
.body_line("")
36-
.anchor("🌐 Open Google in browser", "https://www.google.com")
37-
.body_line("")
38-
.anchor("🧮 Open Calculator", "calc.exe")
39-
.body_line("")
40-
.anchor("📂 Open File Explorer", "explorer.exe")
41-
.body_line("")
42-
.anchor_text("📝 This is a text-only anchor (not clickable)")
43-
.body_line("")
44-
.body_line("💡 Tips:")
45-
.body_line("- URL anchors (http/https) open in your default browser")
46-
.body_line("- Command anchors execute system commands")
47-
.body_line("- e_window anchors can launch new windows with specific configs")
48-
.body_line("- Text-only anchors are for display purposes");
49-
50-
window.show_card_with_auto_close(main_card, 30).await?;
51-
52-
println!("Demo window launched! Try clicking the anchor buttons.");
53-
println!("Window displays countdown timer automatically!");
54-
55-
// Wait for auto-close (30 seconds)
56-
tokio::time::sleep(tokio::time::Duration::from_secs(30)).await;
57-
println!("Window auto-closed successfully!");
58-
59-
window.close().await?;
60-
Ok(())
61-
}
1+
use e_window_api::{Card, EWindow, WindowConfig};
2+
3+
/// Demonstrates anchor link functionality in e_window_api
4+
///
5+
/// This example shows how to create cards with clickable anchor links
6+
/// that can:
7+
/// - Launch other e_window instances
8+
/// - Open URLs in the default browser
9+
/// - Execute system commands
10+
/// - Display text-only anchors (non-clickable)
11+
#[tokio::main]
12+
async fn main() -> Result<(), Box<dyn std::error::Error>> {
13+
println!("Starting anchor links demo...");
14+
15+
// Create a window to demonstrate anchor functionality
16+
let config = WindowConfig::new()
17+
.title("Anchor Links Demo")
18+
.size(800, 600)
19+
.position(200, 200);
20+
21+
let mut window = EWindow::launch(config).await?;
22+
23+
// Create a card with various types of anchors
24+
let main_card = Card::new()
25+
.window_title("Anchor Links Demo")
26+
.field("demo", "anchor_links")
27+
.field("version", "1.0")
28+
.card_title("🔗 e_window Anchor Links Demo")
29+
.header("Click the buttons below to test different anchor types")
30+
.caption("This demonstrates the anchor link functionality")
31+
.body_line("")
32+
.body_line("📋 Available anchor types:")
33+
.body_line("")
34+
.anchor(
35+
"🪟 Launch another e_window",
36+
"e_window --title \"Spawned Window!\" --width 400 --height 300 --x 100 --y 100",
37+
)
38+
.body_line("")
39+
.anchor("🌐 Open Google in browser", "https://www.google.com")
40+
.body_line("")
41+
.anchor("🧮 Open Calculator", "calc.exe")
42+
.body_line("")
43+
.anchor("📂 Open File Explorer", "explorer.exe")
44+
.body_line("")
45+
.anchor_text("📝 This is a text-only anchor (not clickable)")
46+
.body_line("")
47+
.body_line("💡 Tips:")
48+
.body_line("- URL anchors (http/https) open in your default browser")
49+
.body_line("- Command anchors execute system commands")
50+
.body_line("- e_window anchors can launch new windows with specific configs")
51+
.body_line("- Text-only anchors are for display purposes");
52+
53+
window.show_card_with_auto_close(main_card, 30).await?;
54+
55+
println!("Demo window launched! Try clicking the anchor buttons.");
56+
println!("Window displays countdown timer automatically!");
57+
58+
// Wait for auto-close (30 seconds)
59+
tokio::time::sleep(tokio::time::Duration::from_secs(30)).await;
60+
println!("Window auto-closed successfully!");
61+
62+
window.close().await?;
63+
Ok(())
64+
}

0 commit comments

Comments
 (0)