Initial commit

This commit is contained in:
Surferlul 2022-07-29 06:31:52 +02:00
parent 418992be66
commit 66ce05d7dd
3 changed files with 37 additions and 0 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@ Cargo.lock
# These are backup files generated by rustfmt # These are backup files generated by rustfmt
**/*.rs.bk **/*.rs.bk
.idea/

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "native-ui-example"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
native-ui-gnome = { git = "https://github.com/Surferlul/native-ui-gnome" }

26
src/main.rs Normal file
View File

@ -0,0 +1,26 @@
use native_ui_gnome::{
NativeApplication,
abstracts
};
// goal is to only replace
// native_ui_gnome::
// crate for changing the platform to for example
// plasma (qt), windows, or macOS
fn main() {
let abst_app = abstracts::Application::builder()
.title("native-ui GNOME test")
.add_window(
abstracts::Window::builder()
.title("test title")
.build()
)
.add_window(
abstracts::Window::builder()
.title("Test Title")
.build()
)
.build();
let mut app = NativeApplication::new(abst_app);
app.run();
}