new types and classes
This commit is contained in:
parent
20df39ee4e
commit
9a3a1b084a
26 changed files with 1324 additions and 2 deletions
33
lib/widgets/subwindow.ts
Normal file
33
lib/widgets/subwindow.ts
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import { NativeClasses } from "../milsko";
|
||||
import { Widget } from "../widget";
|
||||
import { 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue