示例#1
0
        static void ActivateWindow()
        {
            XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow();

            window.OnAttachedToWindow();
            window.OnVisibilityChanged(true);

            main_form.Text = window.Title ?? "XobotOS";
            control.Invalidate();
        }
示例#2
0
        internal static XobotWindow CreateMainWindow(Context context)
        {
            XobotWindow window = new XobotWindow(context);

            if (main_activity == null)
            {
                main_window = window;
            }
            return(window);
        }
示例#3
0
 internal static void Invoke(WindowAction action)
 {
     mutex.WaitOne();
     if (activity_stack.Count > 0)
     {
         XobotWindow window = (XobotWindow)activity_stack.Peek().getWindow();
         action(window);
     }
     mutex.ReleaseMutex();
 }
示例#4
0
		internal static void RequestLayout (XobotWindow window)
		{
			window.PerformLayout (control.Left, control.Top, control.Right, control.Bottom);
		}
示例#5
0
		internal static void RequestInvalidate (XobotWindow window)
		{
			control.RequestInvalidate ();
		}
示例#6
0
		internal static XobotWindow CreateMainWindow (Context context)
		{
			XobotWindow window = new XobotWindow (context);
			if (main_activity == null) {
				main_window = window;
			}
			return window;
		}
示例#7
0
 internal static void RequestLayout(XobotWindow window)
 {
     window.PerformLayout(control.Left, control.Top, control.Right, control.Bottom);
 }
示例#8
0
 internal static void RequestInvalidate(XobotWindow window)
 {
     control.RequestInvalidate();
 }
示例#9
0
文件: View.cs 项目: hakeemsm/XobotOS
			internal AttachInfo (XobotWindow window)
			{
				mHandler = new android.os.Handler ();
			}