Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAQ] Some questions regarding this project #473

Open
Raj2032 opened this issue Jan 13, 2022 · 4 comments
Open

[FAQ] Some questions regarding this project #473

Raj2032 opened this issue Jan 13, 2022 · 4 comments
Labels
documentation FAQ Common project related questions and answers

Comments

@Raj2032
Copy link

Raj2032 commented Jan 13, 2022

Hey I have some questions regarding this project:

Is it retained or immediate or is it both?

Does it support Android at this stage?

@rzerres rzerres added documentation FAQ Common project related questions and answers labels Jan 31, 2022
@rzerres
Copy link
Contributor

rzerres commented Jan 31, 2022

Hey @Raj2032,

your question is referenced to #475. No it's not retained nor immediate.

Since multiplatform support is one of the major design goals of this project , android is seen a a first class citizen. Right now, nobody is actively looking into the specific needs of the mobile targets (like gesture support or theme adoption). But yes, OrbTk code should make its way to compile native as an android app.

Please let us know about your expectations. Are you able to pick up a specific part, issue, describe ideas, document available corner cases?

@rzerres rzerres changed the title Some questions regarding this project [FAQ] Some questions regarding this project Jan 31, 2022
@Raj2032
Copy link
Author

Raj2032 commented Jan 31, 2022

@rzerres Hi thanks for your response.

Please let us know about your expectations. Are you able to pick up a specific part, issue, describe ideas, document available corner cases?

Actually I have some questions about this, does it lock you into some kind of framework (when coding), the way how Bevy does it with their framework?

For example if I were to use PathBuf library/crate:

use std::path::PathBuf;

let mut path = PathBuf::new();

path.push(r"C:\");
path.push("windows");
path.push("system32");

See how this doesn't lock you into some kind of framework?

Whereas with Bevy:

use bevy::prelude::*;

fn main() {
   App::new()
       .add_system(hello_world_system)
       .run();
}

fn hello_world_system() {
   println!("hello world");
}

See how this does lock me into a framework?

Is this the same case with orbtk?

@rzerres
Copy link
Contributor

rzerres commented Feb 3, 2022

@Raj2032 i hope i got your question right.

have a look into

  • orbtk_core/src/properties/mod.rs or
  • utils/build.rs

where OrbTk itself is consuming PathBuf. When the Toolkit (or its crates) are depending on 3rd party crates, we try to consume best practice methods without reinventing the wheel. As a second driver it's attempting to gain platform agnostic ways to implement the UI traits/methods doing so.

If I'm don't miss the tartet, this hopefully explains why you are free to use things it as yo expect without locking you the way .add_system() from the bevy crate.

@Raj2032
Copy link
Author

Raj2032 commented Mar 23, 2022

@rzerres I see thanks mate :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation FAQ Common project related questions and answers
Projects
None yet
Development

No branches or pull requests

2 participants