fasihrana / skryn Goto Github PK
View Code? Open in Web Editor NEWskryn is a Desktop GUI framework written purely in Rust
License: MIT License
skryn is a Desktop GUI framework written purely in Rust
License: MIT License
I've tested on Windows and Ubuntu 18.04 and the memory creep only seems to be happening on Windows 10. Ubuntu is not creeping memory which leads me to believe that depency crates are to blame.
Perhaps the implementation of these crates isn't perfect or if I've missed something.
I have a couple of issues on macOS:
macOS does have some special consideration for rendering while resizing. In short, the rendering must be performed in the resize handler. See: rust-windowing/glutin#445
If you were to split Window.tick
into two methods, one that handles tick events and one that renders, then the render method could be called from the WindowEvent::Resized
handler. It looks like you tried to do that with Window.render_root
. But there is a lot of additional stuff needed like building display lists, and updating the GL state for glutin. That's about 1/3 of what Window.tick
does.
related servo/webrender#3222 and pcwalton/font-kit#10
Implement text-align property for Button and TextBox elements
Right now, the only alignment done is left and the alignment properties are not implemented.
When starting the examples on a freshly installed windows system the window panics while rendering the first frame. The rust panic unwind did not help at all as it only contained the message NotFound without telling me what was missing.
It turned out to be the font FreeMono, as it is used as default font but is missing on a fresh install.
TextBox by default allows multi-line text in it. Add a boolean to TextBox that allows it to be single line only ignoring CR/LF.
Do it via properties or a function in TextBox itself. Maybe both?
Vbox has several elements and one of them needs to be fixed size. the rest need to be stretched to cover the entirety of the window.
The rest of the Stretchy/Extent lengths can follow the existing rules.
When closing a window, often the wrong window get closed.
Possibly related to rust-windowing/glutin#418
Possibly use clipboard crate to achieve this.
Example "mainexample" unexpectedly quits when entering a non English letter e.g. "é", "à","è" when giving a person name, probably due to unproper handling of keyboard.
System : Windows 10
rust version 1.30.1
Create an element called AbsBox that allows the children to be placed on x,y in element properties.
Dependent on servo/webrender#2970
get_calculated_width -> (u64, properties::Unit)
get_calculated_height -> (u64, properties::Unit)
Possibly linked to rust-windowing/glutin#913
Default the properties to Unit::Pixel(0)
Add it to the properties.
The thread panics with the following error.
thread 'WRRenderBackend#0' panicked at 'called `Result::unwrap()` on an `Err` value: "SendError(..)"', libcore/result.rs:945:5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.