update bindings

This commit is contained in:
PwLDev 2026-05-07 09:40:35 -07:00
commit 382b9d65d9
28 changed files with 268 additions and 46 deletions

View file

@ -5,7 +5,7 @@ export type MwClass = object & { __brand: "MwClass" };
/**
* `BaseWidget` represents the lowest level form of widgets before the native layer.
* This class contains the fundamental native methods shared by all widgets.
* This class contains the native methods shared by all widgets.
*/
export interface BaseWidget {
area: MwRect;
@ -153,6 +153,7 @@ export interface BaseWidgetConstructor {
export interface MwNativeClasses {
Box: MwClass;
Button: MwClass;
Calendar: MwClass;
CheckBox: MwClass;
Entry: MwClass;
Frame: MwClass;
@ -164,6 +165,7 @@ export interface MwNativeClasses {
ScrollBar: MwClass;
SubMenu: MwClass;
SubWindow: MwClass;
Tab: MwClass;
Viewport: MwClass;
Window: MwClass;
ProgressBar: MwClass;
@ -194,13 +196,12 @@ export interface PixmapOptions {
}
export interface PixmapConstructor {
new (cls: BaseWidget, options?: PixmapOptions): Pixmap;
new (widget: BaseWidget, options?: PixmapOptions): Pixmap;
}
export interface WidgetOptions {
name?: string;
parent?: BaseWidget;
children?: BaseWidget[];
x?: number;
y?: number;
width?: number;