nixos-configs/nixosModules/ags/config/widgets/on-screen-keyboard/osk-window.tsx
matt1432 1a9c89df97
All checks were successful
Discord / discord commits (push) Has been skipped
feat(ags osk): get height dynamically
2024-11-25 21:17:36 -05:00

24 lines
675 B
TypeScript

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 });
}
}