Beamable SDK
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow Class Reference
Inheritance diagram for DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow:
Inheritance graph
[legend]
Collaboration diagram for DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow:
Collaboration graph
[legend]

Public Member Functions

void Refresh ()
 

Static Public Member Functions

static Rect GetLowerLeftOfBounds (Rect visualElementBounds)
 Create screen-relative, parent VisualElement-relative Rect for new BeamablePopupWindow More...
 
static Rect GetCenteredScreenRectFromWorldBounds (Rect visualElementBounds, Vector2 newWindowSize)
 Create CENTERED screen-relative, parent VisualElement-relative Rect for new ConfirmationPopupVisualElement More...
 
static BeamablePopupWindow ShowDropdown (string title, Rect sourceRect, Vector2 size, BeamableVisualElement content)
 Create new popup with contents of any BeamableVisualElement More...
 
static BeamablePopupWindow ShowConfirmationPopup (VisualElement centerWithMeVisualElement)
 Create new popup with contents of ConfirmationPopupVisualElement. Useful for an "Are you Sure?" user experience. More...
 
static BeamablePopupWindow ShowUtility (string title, BeamableVisualElement content, EditorWindow parent)
 

Public Attributes

BeamableVisualElement ContentElement
 

Static Public Attributes

static Vector2 ConfirmationPopupSize = new Vector2(250, 150)
 

Member Function Documentation

◆ GetCenteredScreenRectFromWorldBounds()

static Rect DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow.GetCenteredScreenRectFromWorldBounds ( Rect  visualElementBounds,
Vector2  newWindowSize 
)
inlinestatic

Create CENTERED screen-relative, parent VisualElement-relative Rect for new ConfirmationPopupVisualElement

Parameters
visualElementBounds

◆ GetLowerLeftOfBounds()

static Rect DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow.GetLowerLeftOfBounds ( Rect  visualElementBounds)
inlinestatic

Create screen-relative, parent VisualElement-relative Rect for new BeamablePopupWindow

Parameters
visualElementBounds

◆ ShowConfirmationPopup()

static BeamablePopupWindow DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow.ShowConfirmationPopup ( VisualElement  centerWithMeVisualElement)
inlinestatic

Create new popup with contents of ConfirmationPopupVisualElement. Useful for an "Are you Sure?" user experience.

Parameters
popupWindowRect
Returns

◆ ShowDropdown()

static BeamablePopupWindow DisruptorBeam.Editor.UI.Buss.Components.BeamablePopupWindow.ShowDropdown ( string  title,
Rect  sourceRect,
Vector2  size,
BeamableVisualElement  content 
)
inlinestatic

Create new popup with contents of any BeamableVisualElement

Parameters
title
sourceRect
size
content
Returns

The documentation for this class was generated from the following file: