mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Stub out more methods
This commit is contained in:
parent
b2fcbcc962
commit
58ddfb5943
3 changed files with 10 additions and 3 deletions
|
|
@ -22,6 +22,9 @@ export default class Button extends GuiObj {
|
|||
getactivated(): boolean {
|
||||
return true;
|
||||
}
|
||||
setactivated(onoff: boolean) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
getDebugDom(): HTMLDivElement {
|
||||
const div = super.getDebugDom();
|
||||
|
|
@ -44,7 +47,6 @@ export default class Button extends GuiObj {
|
|||
extern Button.onActivate(int activated);
|
||||
extern Button.onLeftClick();
|
||||
extern Button.onRightClick();
|
||||
extern Button.setActivated(Boolean onoff);
|
||||
extern Button.setActivatedNoCallback(Boolean onoff);
|
||||
extern Button.leftClick();
|
||||
extern Button.rightClick();e
|
||||
|
|
|
|||
|
|
@ -8,12 +8,14 @@ export default class PopupMenu extends BaseObject {
|
|||
disabled: boolean
|
||||
) {}
|
||||
addseparator() {}
|
||||
checkcommand(cmd_id: number, check: boolean) {
|
||||
// TODO
|
||||
}
|
||||
/*
|
||||
extern PopupMenu.addSubMenu(PopupMenu submenu, String submenutext);
|
||||
extern Int PopupMenu.popAtXY(int x, int y);
|
||||
extern Int PopupMenu.popAtMouse();
|
||||
extern Int PopupMenu.getNumCommands();
|
||||
extern PopupMenu.checkCommand(int cmd_id, boolean check);
|
||||
extern PopupMenu.disableCommand(int cmd_id, boolean disable);
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,6 +99,10 @@ offsety - (int) Extra pixels to be added to or subtracted from the calculated x
|
|||
settext(txt: string) {
|
||||
this._text = txt;
|
||||
}
|
||||
// overrides the display/text parameter with a custom string, set "" to cancel
|
||||
setalternatetext(txt: string) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
getDebugDom(): HTMLDivElement {
|
||||
const div = super.getDebugDom();
|
||||
|
|
@ -122,7 +126,6 @@ offsety - (int) Extra pixels to be added to or subtracted from the calculated x
|
|||
|
||||
/*
|
||||
|
||||
extern Text.setAlternateText(String txt); // overrides the display/text parameter with a custom string, set "" to cancel
|
||||
extern String Text.getText();
|
||||
extern int Text.getTextWidth();
|
||||
extern Text.onTextChanged(String newtxt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue