Пример #1
0
 public PollEvent(int socketFd, BsdSocket socket, EventTypeMask inputEvents, EventTypeMask outputEvents)
 {
     SocketFd     = socketFd;
     Socket       = socket;
     InputEvents  = inputEvents;
     OutputEvents = outputEvents;
 }
Пример #2
0
 public PollEvent(int SocketFd, BsdSocket Socket, EventTypeMask InputEvents, EventTypeMask OutputEvents)
 {
     this.SocketFd     = SocketFd;
     this.Socket       = Socket;
     this.InputEvents  = InputEvents;
     this.OutputEvents = OutputEvents;
 }
Пример #3
0
        /** constructor
         */
        public BlockItem(Fee.Deleter.Deleter a_deleter, long a_priority, EventTypeMask a_eventtype_mask)
        {
            if ((a_eventtype_mask & EventTypeMask.Window) > 0)
            {
                this.eventplate_window = new Item(null, EventType.Window, a_priority);
                this.eventplate_window.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H);
            }
            else
            {
                this.eventplate_window = null;
            }

            if ((a_eventtype_mask & EventTypeMask.View) > 0)
            {
                this.eventplate_view = new Item(null, EventType.View, a_priority);
                this.eventplate_view.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H);
            }
            else
            {
                this.eventplate_view = null;
            }

            if ((a_eventtype_mask & EventTypeMask.ViewItem) > 0)
            {
                this.eventplate_viewitem = new Item(null, EventType.ViewItem, a_priority);
                this.eventplate_viewitem.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H);
            }
            else
            {
                this.eventplate_viewitem = null;
            }

            if ((a_eventtype_mask & EventTypeMask.Button) > 0)
            {
                this.eventplate_button = new Item(null, EventType.Button, a_priority);
                this.eventplate_button.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H);
            }
            else
            {
                this.eventplate_button = null;
            }

            //削除管理。
            if (a_deleter != null)
            {
                a_deleter.Regist(this);
            }
        }