33 lines
810 B
TypeScript
33 lines
810 B
TypeScript
import { NativeClasses } from "../milsko";
|
|
import { Widget } from "../widget";
|
|
import type { WidgetOptions, Pixmap } from "../types";
|
|
|
|
export class SubWindow extends Widget {
|
|
constructor(options: WidgetOptions) {
|
|
super(NativeClasses.SubWindow, options);
|
|
}
|
|
|
|
public setIconPixmap(value: Pixmap): this {
|
|
return this.setVoid("ViconPixmap", value);
|
|
}
|
|
|
|
get iconPixmap(): Pixmap {
|
|
return this.getVoid("ViconPixmap") as Pixmap;
|
|
}
|
|
|
|
set iconPixmap(value: Pixmap) {
|
|
this.setVoid("ViconPixmap", value);
|
|
}
|
|
|
|
public setTitle(value: string): this {
|
|
return this.setString("Stitle", value);
|
|
}
|
|
|
|
get title(): string {
|
|
return this.getString("Stitle");
|
|
}
|
|
|
|
set title(value: string) {
|
|
this.setString("Stitle", value);
|
|
}
|
|
}
|