darwin: temporarily set window background to be transparent. examples: Add core-transparent-window and remove input from core-triangle
This commit is contained in:
parent
f8a2858df8
commit
19040cae25
6 changed files with 226 additions and 17 deletions
|
|
@ -84,23 +84,6 @@ pub fn tick(app: *App, core: *mach.Core) void {
|
|||
.window_open => |ev| {
|
||||
try setupPipeline(core, app, ev.window_id);
|
||||
},
|
||||
.key_press => |ev| {
|
||||
switch (ev.key) {
|
||||
.right => {
|
||||
core.windows.set(app.window, .width, core.windows.get(app.window, .width) + 10);
|
||||
},
|
||||
.left => {
|
||||
core.windows.set(app.window, .width, core.windows.get(app.window, .width) - 10);
|
||||
},
|
||||
.up => {
|
||||
core.windows.set(app.window, .height, core.windows.get(app.window, .height) + 10);
|
||||
},
|
||||
.down => {
|
||||
core.windows.set(app.window, .height, core.windows.get(app.window, .height) - 10);
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
},
|
||||
.close => core.exit(),
|
||||
else => {},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue