https://github.com/younghakim7/newyork_time_est_druid_rust02line
https://github.com/younghakim7/newyork_time_est_druid_rust02line
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/younghakim7/newyork_time_est_druid_rust02line
- Owner: YoungHaKim7
- Created: 2023-08-07T08:18:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T21:19:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T21:11:41.279Z (5 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# newyork_time_est_druid_rust02line
- My Settings
```rust
child.event(ctx, event, data, env);
ctx.window().set_always_on_top(true);
ctx.window().show_titlebar(false);
ctx.window().handle_titlebar(true);
ctx.window().set_position((1760., 0.0));..//
fn build_root_widget() -> impl Widget {
let display = Label::new(|data: &String, _env: &_| data.clone())
.with_text_size(16.0)
.lens(TimeState::time)
.padding(5.0);..//
pub fn main() {
// describe the main window
let main_window = WindowDesc::new(build_root_widget())
.title("NewYork_Time: EST!")
.window_size((160.0, 90.0))
.resizable(false);```
# Update(230808)
```rust
45 ctx.window().set_always_on_top(true);
46 ctx.window().show_titlebar(false);
47 ctx.window().handle_titlebar(true);
```
# Result
