Api Sandbox Internal IPanel
interface

IPanel

public interface IPanel

Properties

Name Type Description
Parent virtual IPanel
Children virtual IEnumerable<IPanel>
ChildrenCount virtual Int32
ElementName virtual String
Id virtual String The Id of the element ( id="foo" )
SourceFile virtual String If the panel created by razor, this is the file in which it was defined
SourceLine virtual Int32 If the panel was created by razor, this is the line in which it was defined
IsMainMenu virtual Boolean
IsGame virtual Boolean
IsVisible virtual Boolean
IsVisibleSelf virtual Boolean
WantsPointerEvents virtual Boolean If true then this panel (or its ancestor) has pointer-events: all
Classes virtual String
Rect virtual Rect
InnerRect virtual Rect
OuterRect virtual Rect
GlobalMatrix virtual Matrix?
HasTooltip virtual Boolean
PseudoClass virtual PseudoClass Procedural classes such as :hover and :active
ButtonInput virtual PanelInputType
ActiveStyleBlocks virtual IEnumerable<IStyleBlock> Get all style blocks active on this panel

Methods

virtual IPanel GetPanelAt(Vector2 point, Boolean visibleOnly, Boolean needPointerEvents = False)
virtual Boolean IsAncestor(IPanel panel)
virtual IPanel CreateTooltip()
virtual Void UpdateTooltip(IPanel tooltipPanel)
virtual Void Delete(Boolean immediate)
virtual Void SetAbsolutePosition(TextFlag alignment, Vector2 position, Single offset)

Set the panel's absolute position. This wouldn't be needed if we could expose the styles. Which we should do.

Assembly: Sandbox.Engine Namespace: Sandbox.Internal Full Name: Sandbox.Internal.IPanel