private void OnGridIndexd(GuiLayoutEventArgs e, object sender) { GuiEventHandler <GuiLayoutEventArgs> eventHandler = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventGridIndexd]; if (eventHandler != null) { eventHandler(e, sender); } }
protected virtual void OnFontd(GuiLayoutEventArgs e, object sender) { GuiEventHandler <GuiLayoutEventArgs> eventHandler = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventFontd]; if (eventHandler != null) { eventHandler(e, sender); } }
private void OnViewChanged(GuiLayoutEventArgs e, object sender) { GuiEventHandler <GuiLayoutEventArgs> eventHanlder = (GuiEventHandler <GuiLayoutEventArgs>)eventHandlers[EventViewd]; if (eventHanlder != null) { eventHanlder(e, sender); } }
public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs) { base.UpdateLayout(guiLayoutEventArgs); if (!LayoutSuspended) { UpdateCellLayout(); } }
/// <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); } }
public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs) { base.UpdateLayout(guiLayoutEventArgs); if (contentControl != null) { contentControl.UpdateLayout(guiLayoutEventArgs); } }
/// <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); }
/// <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); }
public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs) { base.UpdateLayout(guiLayoutEventArgs); if (LayoutSuspended) { return; } CalculateOverlapses(); }
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); } }
public override void UpdateLayout(GuiLayoutEventArgs guiLayoutEventArgs) { base.UpdateLayout(guiLayoutEventArgs); }
private void owner_Sized(GuiLayoutEventArgs e, object sender) { UpdateTarget(); }
protected override void OnLayoutChanged(GuiLayoutEventArgs e, object sender) { base.OnLayoutChanged(e, sender); OnViewChanged(e, sender); }