Ejemplo n.º 1
0
        public static iWindowAttribute Add(string title, iWindow win,
                                           bool visible = true, bool canDock = true, bool register2menu = true)
        {
            uint            uuid = s_uuid++;
            WindowAttribute attr = new WindowAttribute();

            attr.window        = win;
            attr.UUID          = uuid;
            attr.title         = title;
            attr.visible       = visible;
            attr.canDock       = canDock;
            attr.register2menu = register2menu;
            pool.Add(uuid, attr);

            if (visible)
            {
                ShowWindow(uuid);
            }
            else
            {
                CloseWindow(uuid);
            }

            win.Init();

            return(attr);
        }
Ejemplo n.º 2
0
 void OnMenuGUI_WindowsView()
 {
     foreach (var attr in WindowManager.GetAllWindowAttributes())
     {
         iWindow window  = attr.window;
         bool    visible = attr.visible;
         if (attr.register2menu && ImGui.MenuItem(attr.title, "", ref visible))
         {
             if (visible != attr.visible)
             {
                 if (visible)
                 {
                     WindowManager.ShowWindow(attr.UUID);
                 }
                 else
                 {
                     WindowManager.CloseWindow(attr.UUID);
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
 public ScrollableWindow(iWindow windowReference) : base(windowReference)
 {
 }
Ejemplo n.º 4
0
 public DecoratedWindow(iWindow windowRefernce)
 {
     privateWindowRefernce = windowRefernce;
 }