parent
1ce40f2c1a
commit
6ca0d7248b
329 changed files with 178 additions and 139 deletions
modules/ags/config/widgets/on-screen-keyboard
24
modules/ags/config/widgets/on-screen-keyboard/osk-window.tsx
Normal file
24
modules/ags/config/widgets/on-screen-keyboard/osk-window.tsx
Normal file
|
@ -0,0 +1,24 @@
|
|||
import { App, Widget } from 'astal/gtk3';
|
||||
import { register } from 'astal/gobject';
|
||||
|
||||
|
||||
@register()
|
||||
export default class OskWindow extends Widget.Window {
|
||||
public startY: number | null = null;
|
||||
|
||||
declare public killGestureSigs: () => void;
|
||||
declare public setSlideUp: () => void;
|
||||
declare public setSlideDown: () => void;
|
||||
|
||||
get_child(): Widget.Box {
|
||||
return super.get_child() as Widget.Box;
|
||||
}
|
||||
|
||||
get_grandchildren(): (Widget.Box | Widget.CenterBox)[] {
|
||||
return this.get_child().get_children() as (Widget.Box | Widget.CenterBox)[];
|
||||
}
|
||||
|
||||
constructor({ ...rest }: Widget.WindowProps) {
|
||||
super({ application: App, ...rest });
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue