123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- /*
- _ __ _ __
- | | / /___ _(_) /____
- | | /| / / __ `/ / / ___/
- | |/ |/ / /_/ / / (__ )
- |__/|__/\__,_/_/_/____/
- The electron alternative for Go
- (c) Lea Anthony 2019-present
- */
- export function LogPrint(message) {
- window.runtime.LogPrint(message);
- }
- export function LogTrace(message) {
- window.runtime.LogTrace(message);
- }
- export function LogDebug(message) {
- window.runtime.LogDebug(message);
- }
- export function LogInfo(message) {
- window.runtime.LogInfo(message);
- }
- export function LogWarning(message) {
- window.runtime.LogWarning(message);
- }
- export function LogError(message) {
- window.runtime.LogError(message);
- }
- export function LogFatal(message) {
- window.runtime.LogFatal(message);
- }
- export function EventsOnMultiple(eventName, callback, maxCallbacks) {
- return window.runtime.EventsOnMultiple(eventName, callback, maxCallbacks);
- }
- export function EventsOn(eventName, callback) {
- return EventsOnMultiple(eventName, callback, -1);
- }
- export function EventsOff(eventName, ...additionalEventNames) {
- return window.runtime.EventsOff(eventName, ...additionalEventNames);
- }
- export function EventsOnce(eventName, callback) {
- return EventsOnMultiple(eventName, callback, 1);
- }
- export function EventsEmit(eventName) {
- let args = [eventName].slice.call(arguments);
- return window.runtime.EventsEmit.apply(null, args);
- }
- export function WindowReload() {
- window.runtime.WindowReload();
- }
- export function WindowReloadApp() {
- window.runtime.WindowReloadApp();
- }
- export function WindowSetAlwaysOnTop(b) {
- window.runtime.WindowSetAlwaysOnTop(b);
- }
- export function WindowSetSystemDefaultTheme() {
- window.runtime.WindowSetSystemDefaultTheme();
- }
- export function WindowSetLightTheme() {
- window.runtime.WindowSetLightTheme();
- }
- export function WindowSetDarkTheme() {
- window.runtime.WindowSetDarkTheme();
- }
- export function WindowCenter() {
- window.runtime.WindowCenter();
- }
- export function WindowSetTitle(title) {
- window.runtime.WindowSetTitle(title);
- }
- export function WindowFullscreen() {
- window.runtime.WindowFullscreen();
- }
- export function WindowUnfullscreen() {
- window.runtime.WindowUnfullscreen();
- }
- export function WindowIsFullscreen() {
- return window.runtime.WindowIsFullscreen();
- }
- export function WindowGetSize() {
- return window.runtime.WindowGetSize();
- }
- export function WindowSetSize(width, height) {
- window.runtime.WindowSetSize(width, height);
- }
- export function WindowSetMaxSize(width, height) {
- window.runtime.WindowSetMaxSize(width, height);
- }
- export function WindowSetMinSize(width, height) {
- window.runtime.WindowSetMinSize(width, height);
- }
- export function WindowSetPosition(x, y) {
- window.runtime.WindowSetPosition(x, y);
- }
- export function WindowGetPosition() {
- return window.runtime.WindowGetPosition();
- }
- export function WindowHide() {
- window.runtime.WindowHide();
- }
- export function WindowShow() {
- window.runtime.WindowShow();
- }
- export function WindowMaximise() {
- window.runtime.WindowMaximise();
- }
- export function WindowToggleMaximise() {
- window.runtime.WindowToggleMaximise();
- }
- export function WindowUnmaximise() {
- window.runtime.WindowUnmaximise();
- }
- export function WindowIsMaximised() {
- return window.runtime.WindowIsMaximised();
- }
- export function WindowMinimise() {
- window.runtime.WindowMinimise();
- }
- export function WindowUnminimise() {
- window.runtime.WindowUnminimise();
- }
- export function WindowSetBackgroundColour(R, G, B, A) {
- window.runtime.WindowSetBackgroundColour(R, G, B, A);
- }
- export function ScreenGetAll() {
- return window.runtime.ScreenGetAll();
- }
- export function WindowIsMinimised() {
- return window.runtime.WindowIsMinimised();
- }
- export function WindowIsNormal() {
- return window.runtime.WindowIsNormal();
- }
- export function BrowserOpenURL(url) {
- window.runtime.BrowserOpenURL(url);
- }
- export function Environment() {
- return window.runtime.Environment();
- }
- export function Quit() {
- window.runtime.Quit();
- }
- export function Hide() {
- window.runtime.Hide();
- }
- export function Show() {
- window.runtime.Show();
- }
- export function ClipboardGetText() {
- return window.runtime.ClipboardGetText();
- }
- export function ClipboardSetText(text) {
- return window.runtime.ClipboardSetText(text);
- }
|