Initial commit
This commit is contained in:
parent
418992be66
commit
66ce05d7dd
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
9
Cargo.toml
Normal 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
26
src/main.rs
Normal 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();
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user