Search Results for

    Show / Hide Table of Contents

    Class DockWindow

    Dockable window UI control.

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEngine.GUI.ScrollableControl
    Panel
    DockWindow
    EditorWindow
    Implements
    System.IComparable
    IDrawable
    Inherited Members
    Panel.SetViewOffset(Float2)
    Panel.FastScroll()
    Panel.ScrollViewTo(Control, Boolean)
    Panel.ScrollViewTo(Float2, Boolean)
    Panel.ScrollViewTo(Rectangle, Boolean)
    Panel.OnMouseDown(Float2, MouseButton)
    Panel.OnMouseWheel(Float2, Single)
    Panel.RemoveChildren()
    Panel.DisposeChildren()
    Panel.OnChildResized(Control)
    Panel.Draw()
    Panel.ContainsPoint(Float2, Boolean)
    Panel.IntersectsChildContent(Control, Float2, Float2)
    Panel.PerformLayout(Boolean)
    Panel.ArrangeAndGetBounds()
    Panel.Arrange()
    Panel.GetDesireClientArea(Rectangle)
    Panel.OnDragMove(Float2, DragData)
    Panel.ViewBottom
    Panel.ControlsBounds
    Panel.ScrollBars
    Panel.ScrollBarsSize
    Panel.AlwaysShowScrollbars
    Panel.ScrollMargin
    Panel.ScrollbarTrackColor
    Panel.ScrollbarThumbColor
    Panel.ScrollbarThumbSelectedColor
    ContainerControl._children
    ContainerControl._containsFocus
    ContainerControl._isLayoutLocked
    ContainerControl.LockChildrenRecursive()
    ContainerControl.UnlockChildrenRecursive()
    ContainerControl.AddChild<T>()
    ContainerControl.AddChild<T>(T)
    ContainerControl.RemoveChild(Control)
    ContainerControl.GetChild(Int32)
    ContainerControl.GetChild<T>()
    ContainerControl.GetChildIndex(Control)
    ContainerControl.GetChildIndexAt(Float2)
    ContainerControl.GetChildAt(Float2)
    ContainerControl.GetChildAt(Float2, Func<Control, Boolean>)
    ContainerControl.GetChildAtRecursive(Float2)
    ContainerControl.GetClientArea()
    ContainerControl.SortChildren()
    ContainerControl.SortChildrenRecursive()
    ContainerControl.OnChildrenChanged()
    ContainerControl.OnNavigate(NavDirection, Float2, Control, List<Control>)
    ContainerControl.CanNavigateChild(Control)
    ContainerControl.NavigationWrap(NavDirection, Float2, List<Control>, Float2)
    ContainerControl.UpdateContainsFocus()
    ContainerControl.UpdateChildrenBounds()
    ContainerControl.PerformLayoutAfterChildren()
    ContainerControl.Update(Single)
    ContainerControl.ClearState()
    ContainerControl.DrawSelf()
    ContainerControl.DrawChildren()
    ContainerControl.RayCast(Float2, Control)
    ContainerControl.OnMouseEnter(Float2)
    ContainerControl.OnMouseMove(Float2)
    ContainerControl.OnMouseLeave()
    ContainerControl.OnMouseUp(Float2, MouseButton)
    ContainerControl.OnMouseDoubleClick(Float2, MouseButton)
    ContainerControl.IsTouchPointerOver(Int32)
    ContainerControl.OnTouchEnter(Float2, Int32)
    ContainerControl.OnTouchDown(Float2, Int32)
    ContainerControl.OnTouchMove(Float2, Int32)
    ContainerControl.OnTouchUp(Float2, Int32)
    ContainerControl.OnTouchLeave(Int32)
    ContainerControl.OnCharInput(Char)
    ContainerControl.OnKeyUp(KeyboardKeys)
    ContainerControl.OnDragEnter(Float2, DragData)
    ContainerControl.OnDragLeave()
    ContainerControl.OnDragDrop(Float2, DragData)
    ContainerControl.OnSizeChanged()
    ContainerControl.Children
    ContainerControl.ChildrenCount
    ContainerControl.HasChildren
    ContainerControl.ContainsFocus
    ContainerControl.ClipChildren
    ContainerControl.CullChildren
    ContainerControl.IsTouchOver
    Control.Resize(Float2)
    Control.UpdateBounds()
    Control.UpdateTransform()
    Control.SetAnchorPreset(AnchorPresets, Boolean, Boolean)
    Control.Dispose()
    Control.Defocus()
    Control.OnGotFocus()
    Control.OnLostFocus()
    Control.OnStartContainsFocus()
    Control.OnEndContainsFocus()
    Control.Focus(Control)
    Control.StartMouseCapture(Boolean)
    Control.EndMouseCapture()
    Control.OnEndMouseCapture()
    Control.GetNavTarget(NavDirection)
    Control.GetNavOrigin(NavDirection)
    Control.NavigationFocus()
    Control.OnSubmit()
    Control.OnTouchLeave()
    Control.DoDragDrop(DragData)
    Control.LinkTooltip(String, Tooltip)
    Control.UnlinkTooltip()
    Control.OnShowTooltip(String, Float2, Rectangle)
    Control.OnTooltipShown(Tooltip)
    Control.OnTestTooltipOverControl(Float2)
    Control.IntersectsContent(Float2, Float2)
    Control.PointToParent(ContainerControl, Float2)
    Control.PointToParent(Float2)
    Control.PointToParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(ContainerControl, Float2)
    Control.PointToWindow(Float2)
    Control.PointFromWindow(Float2)
    Control.PointToScreen(Float2)
    Control.PointFromScreen(Float2)
    Control.OnLocationChanged()
    Control.SetScaleInternal(Float2)
    Control.SetPivotInternal(Float2)
    Control.SetShearInternal(Float2)
    Control.SetRotationInternal(Single)
    Control.OnVisibleChanged()
    Control.OnParentChangedInternal()
    Control.AddUpdateCallbacks(RootControl)
    Control.RemoveUpdateCallbacks(RootControl)
    Control.SetUpdate(Control.UpdateDelegate, Control.UpdateDelegate)
    Control.OnParentResized()
    Control.CompareTo(Object)
    Control.Compare(Control)
    Control.Top
    Control.Bottom
    Control.Left
    Control.Right
    Control.UpperLeft
    Control.UpperRight
    Control.BottomRight
    Control.BottomLeft
    Control.Scale
    Control.Pivot
    Control.Shear
    Control.Rotation
    Control.HasParent
    Control.BackgroundColor
    Control.BackgroundBrush
    Control.Enabled
    Control.EnabledInHierarchy
    Control.Visible
    Control.VisibleInHierarchy
    Control.IsDisposing
    Control.Root
    Control.RootWindow
    Control.DpiScale
    Control.ScreenPos
    Control.AutoFocus
    Control.IsFocused
    Control.IsNavFocused
    Control.IsMouseOver
    Control.IsDragOver
    Control.Tooltip
    Control.ShowTooltip
    Control.EditorBounds
    Control.LocationChanged
    Control.SizeChanged
    Control.ParentChanged
    Control.VisibleChanged
    Namespace: FlaxEditor.GUI.Docking
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public class DockWindow : Panel, IComparable, IDrawable

    Constructors

    DockWindow(MasterDockPanel, Boolean, ScrollBars)

    Initializes a new instance of the DockWindow class.

    Declaration
    public DockWindow(MasterDockPanel masterPanel, bool hideOnClose, ScrollBars scrollBars)
    Parameters
    MasterDockPanel masterPanel

    The master docking panel.

    System.Boolean hideOnClose

    True if hide window on closing, otherwise it will be destroyed.

    ScrollBars scrollBars

    The scroll bars.

    Fields

    _dockedTo

    The parent panel.

    Declaration
    protected DockPanel _dockedTo
    Field Value
    DockPanel

    _masterPanel

    The master panel.

    Declaration
    protected MasterDockPanel _masterPanel
    Field Value
    MasterDockPanel

    InputActions

    The input actions collection to processed during user input.

    Declaration
    public InputActionsContainer InputActions
    Field Value
    InputActionsContainer

    Properties

    DefaultSize

    Gets the default window size (in UI units, unscaled by DPI which is handled by windowing system).

    Declaration
    public virtual Float2 DefaultSize { get; }
    Property Value
    Float2

    HideOnClose

    Gets or sets a value indicating whether hide window on close.

    Declaration
    public bool HideOnClose { get; protected set; }
    Property Value
    System.Boolean

    Icon

    Gets or sets the window icon

    Declaration
    public SpriteHandle Icon { get; set; }
    Property Value
    SpriteHandle

    IsDocked

    Gets a value indicating whether this window is docked.

    Declaration
    public bool IsDocked { get; }
    Property Value
    System.Boolean

    IsHidden

    Gets a value indicating whether this window is hidden from the user (eg. not shown or hidden on closed).

    Declaration
    public bool IsHidden { get; }
    Property Value
    System.Boolean

    IsSelected

    Gets a value indicating whether this window is selected.

    Declaration
    public bool IsSelected { get; }
    Property Value
    System.Boolean

    MasterPanel

    Gets the master panel.

    Declaration
    public MasterDockPanel MasterPanel { get; }
    Property Value
    MasterDockPanel

    ParentDockPanel

    Gets the parent dock panel.

    Declaration
    public DockPanel ParentDockPanel { get; }
    Property Value
    DockPanel

    SerializationTypename

    Gets the serialization typename.

    Declaration
    public virtual string SerializationTypename { get; }
    Property Value
    System.String

    Title

    Gets or sets the window title.

    Declaration
    public string Title { get; set; }
    Property Value
    System.String

    TitleSize

    Gets the size of the title.

    Declaration
    public Float2 TitleSize { get; }
    Property Value
    Float2

    UseLayoutData

    Gets a value indicating whether window uses custom layout data.

    Declaration
    public virtual bool UseLayoutData { get; }
    Property Value
    System.Boolean

    Methods

    BringToFront()

    Brings the window to the front of the Z order.

    Declaration
    public void BringToFront()

    Close(ClosingReason)

    Closes the window.

    Declaration
    public bool Close(ClosingReason reason)
    Parameters
    ClosingReason reason

    Window closing reason.

    Returns
    System.Boolean

    True if action has been cancelled (due to window internal logic).

    Focus()

    Sets input focus to the control

    Declaration
    public override void Focus()
    Overrides
    Control.Focus()

    FocusOrShow()

    Focuses or shows the window.

    Declaration
    public void FocusOrShow()

    FocusOrShow(DockState)

    Focuses or shows the window.

    Declaration
    public void FocusOrShow(DockState state)
    Parameters
    FlaxEditor.GUI.Docking.DockState state

    The state.

    Hide()

    Hides the window.

    Declaration
    public void Hide()

    LayoutDeserializeSplitter(XmlElement, String, SplitPanel)

    Deserializes splitter panel value from the saved layout.

    Declaration
    protected void LayoutDeserializeSplitter(XmlElement node, string name, SplitPanel splitter)
    Parameters
    System.Xml.XmlElement node

    The Xml document node.

    System.String name

    The Xml attribute name to use for value.

    FlaxEngine.GUI.SplitPanel splitter

    The splitter panel.

    LayoutSerializeSplitter(XmlWriter, String, SplitPanel)

    Serializes splitter panel value into the saved layout.

    Declaration
    protected void LayoutSerializeSplitter(XmlWriter writer, string name, SplitPanel splitter)
    Parameters
    System.Xml.XmlWriter writer

    The Xml writer.

    System.String name

    The Xml attribute name to use for value.

    FlaxEngine.GUI.SplitPanel splitter

    The splitter panel.

    OnClose()

    Called when window is closed.

    Declaration
    protected virtual void OnClose()

    OnClosing(ClosingReason)

    Called when window is closing. Operation can be cancelled.

    Declaration
    protected virtual bool OnClosing(ClosingReason reason)
    Parameters
    ClosingReason reason

    The reason.

    Returns
    System.Boolean

    True if cancel, otherwise false to allow.

    OnDestroy()

    Method called when managed instance should be destroyed

    Declaration
    public override void OnDestroy()
    Overrides
    ContainerControl.OnDestroy()

    OnKeyDown(KeyboardKeys)

    When key goes down

    Declaration
    public override bool OnKeyDown(KeyboardKeys key)
    Parameters
    KeyboardKeys key

    Key value

    Returns
    System.Boolean

    True if event has been handled, otherwise false

    Overrides
    ContainerControl.OnKeyDown(KeyboardKeys)

    OnLayoutDeserialize()

    Called when during windows layout deserialization if window has no layout data to load. Can be used to restore default UI layout.

    Declaration
    public virtual void OnLayoutDeserialize()

    OnLayoutDeserialize(XmlElement)

    Called when during windows layout deserialization. Each window can use it to load custom interface data (eg. splitter position).

    Declaration
    public virtual void OnLayoutDeserialize(XmlElement node)
    Parameters
    System.Xml.XmlElement node

    The Xml document node.

    OnLayoutSerialize(XmlWriter)

    Called when during windows layout serialization. Each window can use it to store custom interface data (eg. splitter position).

    Declaration
    public virtual void OnLayoutSerialize(XmlWriter writer)
    Parameters
    System.Xml.XmlWriter writer

    The Xml writer.

    OnShow()

    Called when window shows.

    Declaration
    protected virtual void OnShow()

    OnShowContextMenu(ContextMenu)

    Called when dock panel wants to show the context menu for this window. Can be used to inject custom buttons and items to the context menu (on top).

    Declaration
    public virtual void OnShowContextMenu(ContextMenu menu)
    Parameters
    FlaxEditor.GUI.ContextMenu.ContextMenu menu

    The menu.

    OnUnlink()

    Called when window is unlinked from the master panel.

    Declaration
    protected virtual void OnUnlink()

    PerformLayoutBeforeChildren()

    Perform layout for that container control before performing it for child controls.

    Declaration
    protected override void PerformLayoutBeforeChildren()
    Overrides
    Panel.PerformLayoutBeforeChildren()

    SelectTab(Boolean)

    Selects this tab page.

    Declaration
    public void SelectTab(bool autoFocus = true)
    Parameters
    System.Boolean autoFocus

    True if focus tab after selection change.

    Show(DockState, DockPanel, Boolean, Nullable<Single>)

    Shows the window.

    Declaration
    public void Show(DockState state, DockPanel toDock = null, bool autoSelect = true, Nullable<float> splitterValue = null)
    Parameters
    FlaxEditor.GUI.Docking.DockState state

    Initial window state.

    DockPanel toDock

    Panel to dock to it.

    System.Boolean autoSelect

    Only used if toDock is set. If true the window will be selected after docking it.

    System.Nullable<System.Single> splitterValue

    Only used if toDock is set. The splitter value to use. If not specified, a default value will be used.

    Show(DockState, DockWindow)

    Shows the window.

    Declaration
    public void Show(DockState state, DockWindow toDock)
    Parameters
    FlaxEditor.GUI.Docking.DockState state

    Initial window state.

    DockWindow toDock

    Window to dock to it.

    ShowFloating()

    Shows the window in a floating state.

    Declaration
    public void ShowFloating()

    ShowFloating(Float2, Float2, WindowStartPosition)

    Shows the window in a floating state.

    Declaration
    public void ShowFloating(Float2 location, Float2 size, WindowStartPosition position)
    Parameters
    Float2 location

    Window location.

    Float2 size

    Window size, set Zero to use default.

    WindowStartPosition position

    Window location.

    ShowFloating(Float2, WindowStartPosition)

    Shows the window in a floating state.

    Declaration
    public void ShowFloating(Float2 size, WindowStartPosition position)
    Parameters
    Float2 size

    Window size, set Zero to use default.

    WindowStartPosition position

    Window location.

    ShowFloating(WindowStartPosition)

    Shows the window in a floating state.

    Declaration
    public void ShowFloating(WindowStartPosition position)
    Parameters
    WindowStartPosition position

    Window location.

    Undock()

    Undocks this window.

    Declaration
    protected virtual void Undock()

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    Panel
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat