Ejemplo n.º 1
0
        internal NativeWindow(string windowTitle, int locX = SDL_WINDOWPOS.CENTERED, int locY = SDL_WINDOWPOS.CENTERED, int width = 800, int height = 600, SDL_WINDOW windowFlags = SDL_WINDOW.OPENGL)
        {
            Events = new EventFilter(this);
            Events.Add(EventType.Window);
            Events.Add(EventType.Quit);

            EventPump.Instance.RegisterEventListener(this);

            title    = Encoder.GetBytes(windowTitle);
            location = new Location <int>(locX, locY);
            size     = new Size <int>(width, height);

            Style = (WindowStyles)windowFlags;
        }
Ejemplo n.º 2
0
 private void FilterSecondary()
 {
     foreach (var item in EventOriginal)
     {
         foreach (var itemTag in EventTag.Where(x => x.SelectedTag))
         {
             if (item.Tag.Contains(itemTag.Tag))
             {
                 if (!EventFilter.Any(x => x.Id == item.Id))
                 {
                     EventFilter.Add(item);
                 }
             }
         }
     }
 }