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

Public Member Functions

void SwapContent (BeamableVisualElement other)
 
void Refresh ()
 

Static Public Member Functions

static Rect GetLowerLeftOfBounds (Rect visualElementBounds)
 Create screen-relative, parent VisualElement-relative Rect for new BeamablePopupWindow More...
 
static Rect GetLowerRightOfBounds (Rect visualElementBounds)
 
static Rect GetCenteredScreenRectFromWorldBounds (Rect visualElementBounds, Vector2 newWindowSize)
 Create CENTERED screen-relative, parent VisualElement-relative Rect for new ConfirmationPopupVisualElement More...
 
static Rect GetCenteredScreenRectForWindow (EditorWindow window, Vector2 size)
 Create a Centered screen-relative rectangle, given a parent editor window 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, 120)
 

Member Function Documentation

◆ GetCenteredScreenRectForWindow()

static Rect Beamable.Editor.UI.Buss.Components.BeamablePopupWindow.GetCenteredScreenRectForWindow ( EditorWindow  window,
Vector2  size 
)
inlinestatic

Create a Centered screen-relative rectangle, given a parent editor window

Parameters
window

◆ GetCenteredScreenRectFromWorldBounds()

static Rect Beamable.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 Beamable.Editor.UI.Buss.Components.BeamablePopupWindow.GetLowerLeftOfBounds ( Rect  visualElementBounds)
inlinestatic

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

Parameters
visualElementBounds

◆ ShowConfirmationPopup()

static BeamablePopupWindow Beamable.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 Beamable.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: