RegisterWindow() 개인적인 메소드

private RegisterWindow ( Window win ) : void
win Window
리턴 void
예제 #1
0
 //public Window () : this (Context.GetInstance (ContextType.Application)) {}
 //public Window (WindowType type) : this (Context.GetInstance (ContextType.Application), type) {}
 public Window(Context ctx, WindowType type = WindowType.SCREEN_APPLICATION_WINDOW)
 {
     context = ctx;
     if (screen_create_window_type (out handle, ctx.Handle, type) != 0) {
         throw new Exception ("Unable to create window");
     }
     if (type != WindowType.SCREEN_APPLICATION_WINDOW &&
         type != WindowType.SCREEN_CHILD_WINDOW) {
         return;
     }
     if (screen_create_window_group (handle, handle.ToString ()) != 0) {
         throw new Exception ("Unable to create window group");
     }
     context.RegisterWindow (this);
 }
예제 #2
0
파일: Window.cs 프로젝트: zendbit/monoberry
        //public Window () : this (Context.GetInstance (ContextType.Application)) {}

        //public Window (WindowType type) : this (Context.GetInstance (ContextType.Application), type) {}

        public Window(Context ctx, WindowType type = WindowType.SCREEN_APPLICATION_WINDOW)
        {
            context = ctx;
            if (screen_create_window_type(out handle, ctx.Handle, type) != 0)
            {
                throw new Exception("Unable to create window");
            }
            if (type != WindowType.SCREEN_APPLICATION_WINDOW &&
                type != WindowType.SCREEN_CHILD_WINDOW)
            {
                return;
            }
            if (screen_create_window_group(handle, handle.ToString()) != 0)
            {
                throw new Exception("Unable to create window group");
            }
            context.RegisterWindow(this);
        }