Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Runtime workspace zone.
Allows dynamic splitting workspace on sub-workspaces with continues maintaining certain ration or pixel size.
Init time options works only in case if both fields initFirstSubWorkspace and initSecondSubWorkspace are not null. Use it if you has your own manual defined layout to apply the state.
Classes | |
class | RuntimeWorkspaceLayoutRegister |
The engine-site register that bond DoloroUI and internal engine GUI callbacks. More... | |
Public Types | |
enum | InitSplitValueSourceOptions { Manual , SplitterTransform } |
Declares the source of init time input value. More... | |
enum | ReleaseOrderOptions { ContentDrop , ContentToRoot , First , Second } |
Defines zone content release policy. More... | |
enum | SearchDirectionOptions { Left , Right , Bottom , Top } |
Defines direction of search in screen coordinates. More... | |
enum | SplitDirectionOptions { None = 0 , Verticaly = 1 , Horizontaly = 2 } |
Defines how the workspace splitted. More... | |
enum | SplitDirectionOrderOptions { Verticaly = 1 , Horizontaly = 2 } |
Input order that defines direction of splitter. More... | |
enum | SplitTypeOptions { Ratio , FirstFixed , SecondFixed } |
Defines a splitter behavior model. More... | |
Public Member Functions | |
float | MoveSplitterLeftOn (float value) |
Trying to move splitter left on defined shift value. More... | |
float | MoveSplitterRightOn (float value) |
Trying to move splitter right on defined shift value. More... | |
float | MoveSplitterDownOn (float value) |
Trying to move splitter down on defined shift value. More... | |
float | MoveSplitterUpOn (float value) |
Trying to move splitter up on defined shift value. More... | |
void | Split (SplitDirectionOrderOptions direction) |
Splitting workspace by half. More... | |
void | Split (float splitterPosition, SplitTypeOptions type, SplitDirectionOrderOptions direction) |
Splitting workspace More... | |
void | Release (ReleaseOrderOptions option) |
Releasing sub-workspace. More... | |
void | SetSplitterPosition (Vector2 position) |
Trying to place splitter at the screen space position. More... | |
bool | IsChildOf (RuntimeWorkspaceLayout layout) |
Checks is the layout is child of some another layout. More... | |
int | GetParentBranch () |
Checks the branch index of the layout relative to direct parent layout. More... | |
int | GetParentBranch (RuntimeWorkspaceLayout parent) |
Checks the branch index of the layout relative for certain parent layout. More... | |
RuntimeWorkspaceLayout | FindParentLayoutInHierarchyByDirection (SplitDirectionOrderOptions option) |
Looking for layout in hierarchy with requested split direction type. More... | |
virtual RuntimeWorkspaceLayout | FindParentLayoutInHierarchyByDirection (SplitDirectionOrderOptions option, List< RuntimeWorkspaceLayout > callStack) |
Looking for layout in parent hierarchy with requested split direction type. More... | |
RuntimeWorkspaceLayout | FindParentLayoutInHierarchyByDirection (SplitDirectionOrderOptions option, int requiredBranchIdx) |
Looking for layout where hierarchy branched to the certain branch. More... | |
RuntimeWorkspaceLayout | FindParentLayoutInHierarchyByDirection (SplitDirectionOrderOptions option, List< RuntimeWorkspaceLayout > callStack, int requiredBranchIdx) |
Looking for layout where hierarchy branched to the certain branch. More... | |
RuntimeWorkspaceSplitter | FindSplitterByDirection (SearchDirectionOptions direction) |
Looking for Splitter next to workspace layout side into the hierarchy. More... | |
ICollection< RuntimeWorkspaceLayout > | FindOuterLayoutsNextToSplitter (SearchDirectionOptions splitterSide) |
Looking for child layouts that has a Splitter as its own at certain bound side. More... | |
void | RecomputeRelatedSplitters () |
Recomputes position of entire splitters next to the layout. | |
void | Repaint () |
Repaints element along with its children. | |
void | RescanForParent () |
Looking for parent element. | |
void | Focus () |
Focusing element. | |
void | Unfocus () |
Turning off focus from element and all the elements above in the stack. | |
void | CallClick () |
Simulates click above the element. | |
void | CallContextMenu () |
Simulates calling context menu over the element. | |
virtual bool | IsChildOf (AGUIElement element) |
Checks is the element is a child of another element. More... | |
virtual void | OnInput () |
Handler that will be called for elements in input priority order. use to modify data along with input instead of using OnElementGUI. More... | |
virtual void | OnElementGUI () |
Calling each draw frame. Use to update showing data. More... | |
Static Public Member Functions | |
static void | RecomputeIsolatedBoundsForLayout (RuntimeWorkspaceLayout source) |
Recomputed allowed size bounds for layout and relative layouts. More... | |
static Rect | DetectBounds (RuntimeWorkspaceLayout source) |
Detecting bounds that is friendly for entire elements related for the layout. More... | |
static Rect | DetectBounds (RuntimeWorkspaceLayout source, out List< RuntimeWorkspaceLayout > horizontalRelatedLayouts, out List< RuntimeWorkspaceLayout > verticalRelatedLayouts) |
Detecting bounds that is friendly for entire elements related for the layout. More... | |
static Rect | DetectBounds (RuntimeWorkspaceLayout source, ICollection< RuntimeWorkspaceLayout > layoutsCollection, out List< RuntimeWorkspaceLayout > horizontalRelatedLayouts, out List< RuntimeWorkspaceLayout > verticalRelatedLayouts) |
static AGUIElement | FindParentGUIElement (Transform element) |
Looking for parent GUI element. More... | |
static AGUIElement | FindRoot (AGUIElement hierarchyElement) |
Looking for root element at the hierarchy branch. More... | |
Static Public Attributes | |
static Vector2 | SafeBounds = Vector2.one |
Min size safe bounds for the layout. | |
Protected Member Functions | |
override void | OnClampedSizeChanged () |
Should be called in case if MinSize or MaxSize is modified. More... | |
override void | OnSizeChanged () |
Occurs when layout size is changed. More... | |
override void | OnMoved () |
Occurs when layout moved. More... | |
virtual void | OnLayoutConfigurationChanged () |
virtual Vector2 | SimulateFreespaceSplitterPosition (float splitValue) |
Computes position of the Splitter with certain SplitValue without extra checks of the next layouts colliding encounters. More... | |
sealed override void | Awake () |
Calls base AGUIElement features and applies init time settings in case if requested. More... | |
override void | OnDestroy () |
Occurs before object destroy. More... | |
virtual void | OnIntialization () |
Uses instead of Awake to allow initialize the child component avoiding awaiting of Awake call. More... | |
void | MarkWorkpsaceAsInitialized () |
virtual void | OnEnable () |
Occurs when component enabled. | |
virtual void | OnDisable () |
Occurs when component disabled. | |
virtual void | OnTransformChildrenChanged () |
Occurs when children list has been changed. | |
virtual void | OnTransformParentChanged () |
Occurs when parent object has been changed. | |
virtual void | OnFocus () |
Occurs when element requested on focus. More... | |
virtual void | OnLostFocus () |
Occurs when UI loosing focus. More... | |
virtual void | OnHoverBegin () |
Occurs when pointer starts hovering the element. More... | |
virtual void | OnHover () |
Occurs when the pointer is over the element. | |
virtual void | OnHoverEnd () |
Occurs when pointer ending hovering the element. More... | |
virtual void | OnDragBegin () |
Occurs when pointer is start drag process. | |
virtual void | OnDrag () |
Occurs each frame when you drags the element. More... | |
virtual void | OnDragEnd () |
Occurs when dragging element from ElementOnAction is released. More... | |
virtual void | OnPointerDown () |
Occurs when LBM pressed above hovering element. More... | |
virtual void | OnPointerUp () |
Occurs when LBM released above hovering element. More... | |
virtual void | OnContextMenu () |
Occurs when you calling context menu with focused element. More... | |
Static Protected Member Functions | |
static ICollection< T > | GetOuterLayoutsByType< T > () |
Returns collection of outer layouts related to the type. More... | |
static void | PutToOuterLayoutsDataBase (AWorkspaceProvider layout) |
Putting the runtime layout to the outer state. More... | |
static void | ReleaseFromOuterLayoutsDataBase (AWorkspaceProvider layout) |
Releasing layout from the outer state. More... | |
static IEnumerator< AWorkspaceProvider > | GetOuterLayoutsEnumerator () |
Returns enumerator of entire final layouts. More... | |
Package Functions | |
void | SetMinSize (Vector2 size, int branch) |
Applying min size to the branch slot. More... | |
void | SetSizeClamp (Vector2 minSize, Vector2 maxSize, int branch) |
Applying size clamp to the branch slot. More... | |
void | SetMaxSize (Vector2 size, int branch) |
Applying max size to the branch slot. More... | |
bool | IsLocalHierarchyChildOf (AWorkspaceProvider layout) |
Checking parent relation in local hierarchy branch. More... | |
bool | IsLocalHierarchyChildOf (AGUIElement element) |
Checks is the element is child of another element in local hierarchy. More... | |
void | PointerLogicConveyor (Vector2 pointerPosition, Rect[] masks) |
Conveyor that handles pointer related events. More... | |
Static Package Functions | |
static void | OnNewEventBegin () |
Occurs when new UI event started. | |
Properties | |
override Vector2 | MinSize [get] |
Min size allowed to the layout branch according with internal ActiveContent claims. | |
override Vector2 | MaxSize [get] |
Max size allowed to the layout branch according with internal ActiveContent claims. | |
bool | isWorkspaceUpdateListenerOn [get, set] |
Enables\disables layout update along with WorkspaceLayout.LayoutUpdated event. | |
override string | WorkspaceKey [get, set] |
The unique workspace key that will be used to bond layout to the WorkspaceLayout service. More... | |
override Vector2 | Size [get, set] |
The size of the operating rect. More... | |
static string | RWLResourcesPath [get, set] |
Path to resources folder related to the Runtime Workspace Layout module. | |
static RuntimeWorkspaceLayout | leftZonePrefab [get, set] |
Prefab that will be instantiated for the left zone. Should has vertical splitter pined to right. | |
static RuntimeWorkspaceLayout | rightZonePrefab [get, set] |
Prefab that will be instantiated for the right zone. | |
static RuntimeWorkspaceLayout | topZonePrefab [get, set] |
Prefab that will be instantiated for the top zone. | |
static RuntimeWorkspaceLayout | bottomZonePrefab [get, set] |
Prefab that will be instantiated for the bottom zone. Should has vertical splitter pined to top. | |
override AWorkspaceGUIElement | ActiveContent [get, set] |
Active child content active at the moment. | |
virtual bool | IsSplitted [get] |
Is workspace splitted. | |
RuntimeWorkspaceSplitter | Splitter [get] |
Reference to active splitter. | |
virtual RuntimeWorkspaceLayout | FirstSubWorspace [get] |
Reference to first child workspace. More... | |
virtual RuntimeWorkspaceLayout | SecondSubWorspace [get] |
Reference to second child workspace. More... | |
SplitDirectionOptions | SplitDirection [get, set] |
Direction of workspace split. | |
SplitTypeOptions | SplitType [get] |
Type of the splitter applied to the workspace. | |
virtual float | SplitValue [get, set] |
Position of splitter. More... | |
Rect | ContentScreenSpace [get, set] |
Returns content related screen space in Window friendly coordinates system. | |
bool | IsRootWorkspaceLayout [get] |
Is the workspace layout is root of the layout branch. | |
AWorkspaceProvider | RootWorkspaceLayout [get] |
Returns reference to root workspace at layouts branch. | |
AWorkspaceProvider | ParentWorkspaceLayout [get, protected set] |
Reference to parent workspace if exists. | |
AWorkspaceProvider | ParentWorkspaceLayoutInternal [get, set] |
Value that handling with the ParentWorkspaceLayout | |
static HashSet< AWorkspaceProvider > | OuterLayouts = new HashSet<AWorkspaceProvider>() [get] |
Hash set that contains layouts that has no children. | |
virtual RectTransform | ContentLayout [get, set] |
Safe property to access content layout. In case if content value is null returns the object rect itself. | |
virtual AGUIElement | ContentAsGUIElemet [get] |
Returns first detected GUI element at the ContentLayout. Creates new Modules.Controls.GUIElement in case if not found. | |
bool | IsMask [get, set] |
If true then will crop the pointer events out of bounds for children. | |
bool | IsRaycastTarget [get, set] |
Defines is the element will handle mouse click events. More... | |
bool | IsActive [get] |
bool | IsFocused [get] |
Checks is the element registered at the FocusStack | |
bool | IsHovered [get] |
Is the element hovered at the moment. | |
bool | IsRoot [get, set] |
Is the element is at the bottom of engine hierarchy. | |
AGUIElement | FocusedChild [get] |
Returns focused child. Null if not exist. | |
ReadOnlyCollection< AGUIElement > | Children = new ReadOnlyCollection<AGUIElement>(new AGUIElement[0]) [get] |
Collection of element children. More... | |
Rect | LocalRect [get] |
Returns rect of the bond RectTransform component. | |
Rect | ScreenSpaceRect [get, set] |
Returns elements's rect at screen space. More... | |
Vector2 | ScreenSpacePostion [get, set] |
Returns elements's position at screen space. More... | |
Rect | RaycastRect [get] |
Screen space rect with applied RaycastPadding parameters. | |
Vector4 | RaycastPadding [get, set] |
Defines offset of the ray casting box along with the physical size. | |
Window | ParentWindow [get] |
Reference to the parent window. Null if element is free. | |
AGUIElement | ParentGUIElement [get, protected set] |
Parent GUI element. Drops ParentWindow stored reference to null . | |
RectTransform | BondRectTransform [get] |
Buffer that contains bond rect transform. | |
static AGUIElement | ElementOnAction [get] |
Reference to last dragged element. More... | |
static bool | IsMouseDragOn [get] |
True when some elements is now at the drag state. | |
virtual Vector2 | Position [get, set] |
Position of element at the screen. More... | |
virtual Vector2 | LocalPosition [get, set] |
Position relative to the parent element. | |
virtual bool | OnStackTopWhenFocused [get] |
Defines if the element would be moved at the top of focus stack or will stay the same position when it focused. More... | |
virtual bool | IsVisibleForEngine [get] |
Defines is the element is visible for internal engine features. In case of false will be skipped during common callbacks. | |
Events | |
Action< AClampedWorkspaceProvider > | ClampedSizeChanged |
Occurs when MinSize or MaxSize is modified. | |
static Action< AWorkspaceProvider > | ActiveContentChanged |
Occurs when ActiveContent property is changed. | |
Action< AGUIElement > | Focused |
Occurs when element is focused. | |
Action< AGUIElement > | FocusLost |
Occurs when element loosing focus. | |
Action< AGUIElement > | HoverStarted |
Occurs when pointer crossing element's rect bounds. | |
Action< AGUIElement > | Hovered |
Occurs each time when GUI is changed and pointer is over the element. | |
Action< AGUIElement > | HoverEnded |
Occurs when pointer leaving the element's rect. | |
Action< AGUIElement > | DragStarted |
Occurs when drag process is starting. | |
Action< AGUIElement > | Draged |
Occurs during element drag process. | |
Action< AGUIElement > | DragEnded |
Occurs when element drag is ended. | |
Action< AGUIElement > | PointerDown |
Occurs when element pressed with LMB. | |
Action< AGUIElement > | PointerUp |
Occurs when element LB has been released with the pointer above element. | |
Action< AGUIElement > | ContextMenuCalled |
Occurs when user calling context menu for element. | |
Action< AGUIElement > | Moved |
Occurs when element is moved. | |
Action< AGUIElement > | SizeChanged |
Occurs when element Size changed. | |
Declares the source of init time input value.
Enumerator | |
---|---|
Manual | Initial splitter value will be defined manually. |
SplitterTransform | Splitter value would be computed from Splitter's transform position pre-defined at editor. |
Defines zone content release policy.
|
protectedvirtual |
Calls base AGUIElement features and applies init time settings in case if requested.
Reimplemented from Doloro.UIEngine2.AWorkspaceProvider.
|
static |
Detecting bounds that is friendly for entire elements related for the layout.
source | Source layout that was initiator of the process. |
|
static |
Detecting bounds that is friendly for entire elements related for the layout.
source | Source layout that was initiator of the process. |
layoutsCollection | Collection of layouts that can be related to the source. |
horizontalRelatedLayouts | Collection of outer layouts that are placed at the same raw. |
verticalRelatedLayouts | Collection of outer layouts that are placed at the same column. |
|
static |
Detecting bounds that is friendly for entire elements related for the layout.
source | Source layout that was initiator of the process. |
horizontalRelatedLayouts | Collection of outer layouts that are placed at the same raw. |
verticalRelatedLayouts | Collection of outer layouts that are placed at the same column. |
ICollection< RuntimeWorkspaceLayout > Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.FindOuterLayoutsNextToSplitter | ( | SearchDirectionOptions | splitterSide | ) |
|
staticinherited |
Looking for parent GUI element.
element | Source element transform. |
RuntimeWorkspaceLayout Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.FindParentLayoutInHierarchyByDirection | ( | SplitDirectionOrderOptions | option | ) |
Looking for layout in hierarchy with requested split direction type.
option | Requested layout splitter direction. |
RuntimeWorkspaceLayout Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.FindParentLayoutInHierarchyByDirection | ( | SplitDirectionOrderOptions | option, |
int | requiredBranchIdx | ||
) |
Looking for layout where hierarchy branched to the certain branch.
option | Requested layout splitter direction. |
requiredBranchIdx | Required branch direction. 0 - primary branch. 1 - secondary branch |
|
virtual |
Looking for layout in parent hierarchy with requested split direction type.
option | Requested layout splitter direction. |
callStack | History of hierarchy searches. First is the last entered. |
RuntimeWorkspaceLayout Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.FindParentLayoutInHierarchyByDirection | ( | SplitDirectionOrderOptions | option, |
List< RuntimeWorkspaceLayout > | callStack, | ||
int | requiredBranchIdx | ||
) |
Looking for layout where hierarchy branched to the certain branch.
option | Requested layout splitter direction. |
callStack | History of hierarchy searches. First is the last entered. |
requiredBranchIdx | Required branch direction. 0 - primary branch. 1 - secondary branch |
|
staticinherited |
Looking for root element at the hierarchy branch.
hierarchyElement | Element of hierarchy. |
RuntimeWorkspaceSplitter Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.FindSplitterByDirection | ( | SearchDirectionOptions | direction | ) |
Looking for Splitter next to workspace layout side into the hierarchy.
direction | Side direction. |
|
staticprotectedinherited |
Returns collection of outer layouts related to the type.
T | The time derived from the AWorkspaceProvider. |
T | : | AWorkspaceProvider |
|
staticprotectedinherited |
Returns enumerator of entire final layouts.
int Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.GetParentBranch | ( | ) |
Checks the branch index of the layout relative to direct parent layout.
Index of the branch.
Not provides extra checks of hierarchy to performance goals. In case if current layout isn't child of parent
layout the result will be always 1. Call IsChildOf(RuntimeWorkspaceLayout) before if you not sure about hierarchy state.
ArgumentOutOfRangeException | parent has not branches. |
int Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.GetParentBranch | ( | RuntimeWorkspaceLayout | parent | ) |
Checks the branch index of the layout relative for certain parent layout.
parent | Parent layout. |
Index of the branch.
Not provides extra checks of hierarchy to performance goals. In case if current layout isn't child of parent
layout the result will be always 1. Call IsChildOf(RuntimeWorkspaceLayout) before if you not sure about hierarchy state.
ArgumentOutOfRangeException | parent has not branches. |
|
virtualinherited |
Checks is the element is a child of another element.
element | Target element. |
Virtual logic that can be re-implemented to allow creation of virtual hierarchy.
bool Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.IsChildOf | ( | RuntimeWorkspaceLayout | layout | ) |
Checks is the layout is child of some another layout.
layout | Supposed parent. |
|
packageinherited |
Checks is the element is child of another element in local hierarchy.
element | Element to check. |
true
in case if child. false
otherwise.
|
packageinherited |
Checking parent relation in local hierarchy branch.
layout | Possible parent layout. |
float Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.MoveSplitterDownOn | ( | float | value | ) |
Trying to move splitter down on defined shift value.
value | Value of the shift. |
float Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.MoveSplitterLeftOn | ( | float | value | ) |
Trying to move splitter left on defined shift value.
value | Value of the shift. |
float Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.MoveSplitterRightOn | ( | float | value | ) |
Trying to move splitter right on defined shift value.
value | Value of the shift. |
float Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.MoveSplitterUpOn | ( | float | value | ) |
Trying to move splitter up on defined shift value.
value | Value of the shift. |
|
protectedvirtual |
Should be called in case if MinSize or MaxSize is modified.
Reimplemented from Doloro.UIEngine2.AClampedWorkspaceProvider.
|
protectedvirtualinherited |
Occurs when you calling context menu with focused element.
Reimplemented in Doloro.UIEngine2.Modules.ElementsCollection.GUIElementHighlighter, and Doloro.UIEngine2.Modules.Tabs.TabGUIElement.
|
protectedvirtual |
Occurs before object destroy.
Reimplemented from Doloro.UIEngine2.AGUIElement.
|
protectedvirtualinherited |
Occurs each frame when you drags the element.
Use ElementOnAction to get drag target.
|
protectedvirtualinherited |
Occurs when dragging element from ElementOnAction is released.
Reimplemented in Doloro.UIEngine2.Controls.TooltipGUIController, and Doloro.UIEngine2.AFreespaceLayoutController.
|
virtualinherited |
Calling each draw frame. Use to update showing data.
Calling each frame if element displayed. Before self draw call OnElementGUI for all elements in Children collection.
Avoid reading inputs here. Use OnInput instead.
Reimplemented in Doloro.UIEngine2.Modules.Context.ContextMenu, Doloro.UIEngine2.Modules.ElementsCollection.GridCollection, and Doloro.UIEngine2.Modules.ElementsCollection.GUIElementHighlighter.
|
protectedvirtualinherited |
Occurs when element requested on focus.
Reimplemented in Doloro.UIEngine2.Window, Doloro.UIEngine2.WindowUIController, and Doloro.UIEngine2.Modules.Tabs.TabGUIElement.
|
protectedvirtualinherited |
Occurs when pointer starts hovering the element.
Reimplemented in Doloro.UIEngine2.Controls.TooltipGUIController, and Doloro.UIEngine2.WindowUIController.
|
protectedvirtualinherited |
Occurs when pointer ending hovering the element.
Reimplemented in Doloro.UIEngine2.Controls.TooltipGUIController, and Doloro.UIEngine2.WindowUIController.
|
virtualinherited |
Handler that will be called for elements in input priority order. use to modify data along with input instead of using OnElementGUI.
Don't forget call Event.Use in case if event consumed by element. Otherwise event will foes deeper into the focused elements hierarchy.
Reimplemented in Doloro.UIEngine2.Modules.Context.ContextMenu, and Doloro.UIEngine2.Modules.ElementsCollection.GridCollection.
|
protectedvirtual |
Uses instead of Awake to allow initialize the child component avoiding awaiting of Awake call.
Executes only at first time.
|
protectedvirtual |
|
protectedvirtualinherited |
Occurs when UI loosing focus.
Reimplemented in Doloro.UIEngine2.Modules.ElementsCollection.AGUIElementsCollection.
|
protectedvirtual |
Occurs when layout moved.
Reimplemented from Doloro.UIEngine2.AGUIElement.
|
protectedvirtualinherited |
Occurs when LBM pressed above hovering element.
Reimplemented in Doloro.UIEngine2.AFreespaceLayoutController, Doloro.UIEngine2.AWindowLayoutController, Doloro.UIEngine2.WindowDragController, Doloro.UIEngine2.WindowResizeController, Doloro.UIEngine2.WindowUIController, and Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceSplitter.
|
protectedvirtualinherited |
Occurs when LBM released above hovering element.
Not occurs in case it there is had been drag event.
Reimplemented in Doloro.UIEngine2.AFreespaceLayoutController, Doloro.UIEngine2.WindowDragController, Doloro.UIEngine2.Modules.Context.ContextMenuItem, and Doloro.UIEngine2.Modules.ElementsCollection.GUIElementHighlighter.
|
protectedvirtual |
Occurs when layout size is changed.
Reimplemented from Doloro.UIEngine2.AGUIElement.
|
packageinherited |
Conveyor that handles pointer related events.
pointerPosition | Position of pointer at the screen. |
masks | Masks that should be checked for the element. |
|
staticprotectedinherited |
Putting the runtime layout to the outer state.
layout | Target layout. |
|
static |
Recomputed allowed size bounds for layout and relative layouts.
source | Target layout for recomputing. |
The bounds computes only for the single branch and not affected by parallel one. If you need to know the clamped bounds for certain outer bounds with mentioning external effect use DetectBounds(RuntimeWorkspaceLayout) instead.
void Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.Release | ( | ReleaseOrderOptions | option | ) |
Releasing sub-workspace.
option | Releasing option. |
|
staticprotectedinherited |
Releasing layout from the outer state.
layout | Target layout. |
|
package |
Applying max size to the branch slot.
size | Target size. |
branch | Target branch. |
|
package |
Applying min size to the branch slot.
size | Target size. |
branch | Target branch. |
|
package |
Applying size clamp to the branch slot.
minSize | Target min size. |
maxSize | Target max size. |
branch | Target branch. |
void Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.SetSplitterPosition | ( | Vector2 | position | ) |
Trying to place splitter at the screen space position.
position | Screen space position. Will automatically clamped to parent workspace bounds. Using only the same axis as splitter. |
|
protectedvirtual |
Computes position of the Splitter with certain SplitValue without extra checks of the next layouts colliding encounters.
splitValue | SplitValue to simulate. |
void Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.Split | ( | float | splitterPosition, |
SplitTypeOptions | type, | ||
SplitDirectionOrderOptions | direction | ||
) |
Splitting workspace
splitterPosition | |
type | |
direction |
WorkspaceAlreadySplittedException | Workspace already have been splitted. Release(ReleaseOrderOptions) it first. |
void Doloro.UIEngine2.Modules.RuntimeWorkspace.RuntimeWorkspaceLayout.Split | ( | SplitDirectionOrderOptions | direction | ) |
Splitting workspace by half.
direction | Split direction. |
|
getinherited |
Collection of element children.
Immediately access but has arbitrary order.
|
staticgetinherited |
Reference to last dragged element.
Overriding only when new drag begun. Use IsMouseDragOn property to check is the process state.
|
get |
Reference to first child workspace.
Left zone in case of Horizontal split. Bottom zone in case of Vertical split.
|
getinherited |
Checks current element activity state.
|
getsetinherited |
Defines is the element will handle mouse click events.
Not affects children. Still handles OnHover-like events. Not blocks manual call of CallClick and CallContextMenu API members.
|
getprotectedinherited |
Defines if the element would be moved at the top of focus stack or will stay the same position when it focused.
By default elements not changing order by some system like Window module
Requires stack modifying to make it possible to update windows order.
Works only for elements with true
IsRoot property.
|
getsetinherited |
Position of element at the screen.
Demands RectTransform if not overridden.
|
getsetinherited |
Returns elements's position at screen space.
Cords counting from top left corner. Useful for full screen operations, like comparing with mouse position or etc.
|
getsetinherited |
Returns elements's rect at screen space.
Cords counting from top left corner. Useful for full screen operations, like comparing with mouse position or etc.
|
get |
Reference to second child workspace.
Right zone in case of Horizontal split. Top zone in case of Vertical split.
|
getset |
The size of the operating rect.
NotSupportedException | set is not supported. |
|
getset |
Position of splitter.
Measure depends from SplitType. SplitTypeOptions.Ratio: [0,1] SplitTypeOptions.FirstFixed || SplitTypeOptions.SecondFixed: screen bounds.
|
getset |
The unique workspace key that will be used to bond layout to the WorkspaceLayout service.
Null or whitespace mean that the layout has no bond.