예제 #1
0
파일: GridCell.cs 프로젝트: siquel/BeatEmUp
        private void OnGridIndexd(GuiLayoutEventArgs e, object sender)
        {
            GuiEventHandler <GuiLayoutEventArgs> eventHandler = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventGridIndexd];

            if (eventHandler != null)
            {
                eventHandler(e, sender);
            }
        }
예제 #2
0
        protected virtual void OnFontd(GuiLayoutEventArgs e, object sender)
        {
            GuiEventHandler <GuiLayoutEventArgs> eventHandler = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventFontd];

            if (eventHandler != null)
            {
                eventHandler(e, sender);
            }
        }
예제 #3
0
        private void OnViewChanged(GuiLayoutEventArgs e, object sender)
        {
            GuiEventHandler <GuiLayoutEventArgs> eventHanlder = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventViewd];

            if (eventHanlder != null)
            {
                eventHanlder(e, sender);
            }
        }
예제 #4
0
        public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
        {
            base.UpdateLayout(guiLayoutEventArgs);

            if (!LayoutSuspended)
            {
                UpdateCellLayout();
            }
        }
예제 #5
0
        /// <summary>
        /// Päivittää containerin ja sen childien layoutit.
        /// </summary>
        public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
        {
            base.UpdateLayout(guiLayoutEventArgs);

            for (int i = 0; i < childs.ChildsCount; i++)
            {
                childs[i].UpdateLayout(guiLayoutEventArgs);
            }
        }
예제 #6
0
        public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
        {
            base.UpdateLayout(guiLayoutEventArgs);

            if (contentControl != null)
            {
                contentControl.UpdateLayout(guiLayoutEventArgs);
            }
        }
예제 #7
0
        /// <summary>
        /// Poistaa kontrollin containerista. Poistaa siteen kontrollien väliltä.
        /// </summary>
        public virtual void Remove(Control control)
        {
            childs.RemoveChild(control);
            control.ReleaseParent();

            GuiLayoutEventArgs guiLayoutEventArgs = new GuiLayoutEventArgs(control);

            OnControlRemoved(new GuiParentEventArgs(null, control), this);

            UpdateLayout(guiLayoutEventArgs);
        }
예제 #8
0
        /// <summary>
        /// Lisää kontrollin containeriin ja luo näiden välille siteen.
        /// </summary>
        public virtual void Add(Control control)
        {
            childs.AddChild(control);
            control.SetParent(this);

            GuiLayoutEventArgs guiLayoutEventArgs = new GuiLayoutEventArgs(control, true);

            OnControlAdded(new GuiParentEventArgs(this, control), this);

            UpdateLayout(guiLayoutEventArgs);
        }
예제 #9
0
        public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
        {
            base.UpdateLayout(guiLayoutEventArgs);

            if (LayoutSuspended)
            {
                return;
            }

            CalculateOverlapses();
        }
예제 #10
0
        public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
        {
            base.UpdateLayout(guiLayoutEventArgs);

            if (LayoutSuspended)
            {
                return;
            }

            UpdateButtonLayout();

            if (HasDefaultButtons)
            {
                thumb.SetButtonSizes(forwardScrollButton.SizeInPixels, backScrollButton.SizeInPixels);
            }

            thumb.CalculateStep(maxValue);
            thumb.CalculatePosition(value);

            for (int i = 0; i < childs.ChildsCount; i++)
            {
                childs[i].UpdateLayout(guiLayoutEventArgs);
            }
        }
예제 #11
0
 public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs)
 {
     base.UpdateLayout(guiLayoutEventArgs);
 }
예제 #12
0
 private void owner_Sized(GuiLayoutEventArgs e, object sender)
 {
     UpdateTarget();
 }
예제 #13
0
        protected override void OnLayoutChanged(GuiLayoutEventArgs e, object sender)
        {
            base.OnLayoutChanged(e, sender);

            OnViewChanged(e, sender);
        }