static void ActivateWindow() { XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow(); window.OnAttachedToWindow(); window.OnVisibilityChanged(true); main_form.Text = window.Title ?? "XobotOS"; control.Invalidate(); }
internal static XobotWindow CreateMainWindow(Context context) { XobotWindow window = new XobotWindow(context); if (main_activity == null) { main_window = window; } return(window); }
internal static void Invoke(WindowAction action) { mutex.WaitOne(); if (activity_stack.Count > 0) { XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow(); action(window); } mutex.ReleaseMutex(); }
internal static void RequestLayout (XobotWindow window) { window.PerformLayout (control.Left, control.Top, control.Right, control.Bottom); }
internal static void RequestInvalidate (XobotWindow window) { control.RequestInvalidate (); }
internal static XobotWindow CreateMainWindow (Context context) { XobotWindow window = new XobotWindow (context); if (main_activity == null) { main_window = window; } return window; }
internal static void RequestLayout(XobotWindow window) { window.PerformLayout(control.Left, control.Top, control.Right, control.Bottom); }
internal static void RequestInvalidate(XobotWindow window) { control.RequestInvalidate(); }
internal AttachInfo (XobotWindow window) { mHandler = new android.os.Handler (); }