API ReferenceSandbox.Internal

IPanelclass

objectIPanel
Namespace
Sandbox.Internal
Assembly
Sandbox.Engine
Declaration
public abstract interface Sandbox.Internal.IPanel

Methods6

Showing 6 methods

public virtual Sandbox.Internal.IPanel CreateTooltip()PUBLICVIRTUAL

Returns:IPanel

public virtual void Delete(bool immediate)PUBLICVIRTUAL

ParameterTypeDescription
immediatebool
Returns:void

public virtual Sandbox.Internal.IPanel GetPanelAt(Vector2 point, bool visibleOnly, bool needPointerEvents = False)PUBLICVIRTUAL

ParameterTypeDescription
pointVector2
visibleOnlybool
needPointerEvents = Falsebool
Returns:IPanel

public virtual bool IsAncestor(Sandbox.Internal.IPanel panel)PUBLICVIRTUAL

ParameterTypeDescription
panelIPanel
Returns:bool

public virtual void SetAbsolutePosition(Sandbox.TextFlag alignment, Vector2 position, float offset)PUBLICVIRTUAL

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

ParameterTypeDescription
alignmentTextFlag
positionVector2
offsetfloat
Returns:void

public virtual void UpdateTooltip(Sandbox.Internal.IPanel tooltipPanel)PUBLICVIRTUALPER-FRAME

ParameterTypeDescription
tooltipPanelIPanel
Returns:void

Properties21

Showing 21 properties

public virtual System.Collections.Generic.IEnumerable`1<Sandbox.UI.IStyleBlock> Sandbox.Internal.IPanel.ActiveStyleBlocks { get; set; }PUBLICVIRTUALGETSET

Get all style blocks active on this panel

Returns:IEnumerable<IStyleBlock>

public virtual System.Collections.Generic.IEnumerable`1<Sandbox.Internal.IPanel> Sandbox.Internal.IPanel.Children { get; set; }PUBLICVIRTUALGETSET

Returns:IEnumerable<IPanel>

public virtual int Sandbox.Internal.IPanel.ChildrenCount { get; set; }PUBLICVIRTUALGETSET

Returns:int

public virtual string Sandbox.Internal.IPanel.Classes { get; set; }PUBLICVIRTUALGETSET

Returns:string

public virtual string Sandbox.Internal.IPanel.ElementName { get; set; }PUBLICVIRTUALGETSET

Returns:string

public virtual System.Nullable`1<Matrix> Sandbox.Internal.IPanel.GlobalMatrix { get; set; }PUBLICVIRTUALGETSET

Returns:Nullable<Matrix>

public virtual bool Sandbox.Internal.IPanel.HasTooltip { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public virtual string Sandbox.Internal.IPanel.Id { get; set; }PUBLICVIRTUALGETSET

The Id of the element ( id="foo" )

Returns:string

public virtual Sandbox.Rect Sandbox.Internal.IPanel.InnerRect { get; set; }PUBLICVIRTUALGETSET

Returns:Rect

public virtual bool Sandbox.Internal.IPanel.IsGame { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public virtual bool Sandbox.Internal.IPanel.IsMainMenu { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public virtual bool Sandbox.Internal.IPanel.IsVisible { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public virtual bool Sandbox.Internal.IPanel.IsVisibleSelf { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public virtual Sandbox.Rect Sandbox.Internal.IPanel.OuterRect { get; set; }PUBLICVIRTUALGETSET

Returns:Rect

public virtual Sandbox.Internal.IPanel Sandbox.Internal.IPanel.Parent { get; set; }PUBLICVIRTUALGETSET

Returns:IPanel

public virtual Sandbox.Rect Sandbox.Internal.IPanel.Rect { get; set; }PUBLICVIRTUALGETSET

Returns:Rect

public virtual string Sandbox.Internal.IPanel.SourceFile { get; set; }PUBLICVIRTUALGETSET

If the panel created by razor, this is the file in which it was defined

Returns:string

public virtual int Sandbox.Internal.IPanel.SourceLine { get; set; }PUBLICVIRTUALGETSET

If the panel was created by razor, this is the line in which it was defined

Returns:int

public virtual bool Sandbox.Internal.IPanel.WantsPointerEvents { get; set; }PUBLICVIRTUALGETSET

If true then this panel (or its ancestor) has pointer-events: all

Returns:bool

On this page

Methodspublic virtual Sandbox.Internal.IPanel CreateTooltip()public virtual System.Void Delete(System.Boolean immediate)public virtual Sandbox.Internal.IPanel GetPanelAt(Vector2 point, System.Boolean visibleOnly, System.Boolean needPointerEvents = False)public virtual System.Boolean IsAncestor(Sandbox.Internal.IPanel panel)public virtual System.Void SetAbsolutePosition(Sandbox.TextFlag alignment, Vector2 position, System.Single offset)public virtual System.Void UpdateTooltip(Sandbox.Internal.IPanel tooltipPanel)Propertiespublic virtual System.Collections.Generic.IEnumerable`1<Sandbox.UI.IStyleBlock> Sandbox.Internal.IPanel.ActiveStyleBlocks { get; set; }public virtual Sandbox.UI.PanelInputType Sandbox.Internal.IPanel.ButtonInput { get; set; }public virtual System.Collections.Generic.IEnumerable`1<Sandbox.Internal.IPanel> Sandbox.Internal.IPanel.Children { get; set; }public virtual System.Int32 Sandbox.Internal.IPanel.ChildrenCount { get; set; }public virtual System.String Sandbox.Internal.IPanel.Classes { get; set; }public virtual System.String Sandbox.Internal.IPanel.ElementName { get; set; }public virtual System.Nullable`1<Matrix> Sandbox.Internal.IPanel.GlobalMatrix { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.HasTooltip { get; set; }public virtual System.String Sandbox.Internal.IPanel.Id { get; set; }public virtual Sandbox.Rect Sandbox.Internal.IPanel.InnerRect { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.IsGame { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.IsMainMenu { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.IsVisible { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.IsVisibleSelf { get; set; }public virtual Sandbox.Rect Sandbox.Internal.IPanel.OuterRect { get; set; }public virtual Sandbox.Internal.IPanel Sandbox.Internal.IPanel.Parent { get; set; }public virtual Sandbox.UI.PseudoClass Sandbox.Internal.IPanel.PseudoClass { get; set; }public virtual Sandbox.Rect Sandbox.Internal.IPanel.Rect { get; set; }public virtual System.String Sandbox.Internal.IPanel.SourceFile { get; set; }public virtual System.Int32 Sandbox.Internal.IPanel.SourceLine { get; set; }public virtual System.Boolean Sandbox.Internal.IPanel.WantsPointerEvents { get; set; }Metadata