Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

TheĀ  MasterLayout class handles the desktop and taskbar states layout states. The same action that is performed via the toggle desktop home button in the top left corner after login.

Image AddedImage Added


The class can be used to get the current active Master Layout and to switch between desktop and taskbar modes.

Examples:

Code Block
titleMaster Layout switch to taskbar mode
akioma.swat.MasterLayout.setMasterState("taskbar-mode"); // can also be "desktop-mode"


Code Block
titleMaster Layout toggle to desktop mode
akioma.swat.MasterLayout.toggleDesktop(true);


Code Block
titleMaster Layout get current mode
const MasterState:DesktopMode = akioma.swat.MasterLayout.getMasterState(); // can return "desktop-mode" or "taskbar-mode"


Code Block
titleMaster Layout find window by id
const window: akioma.swat.Window = akioma.swat.MasterLayout.findWindowById(windowId);


Code Block
titleMaster Layout get all windows by name
const windows: Array<akioma.swat.Window> = akioma.swat.MasterLayout.findWindowsByName(windowName);