s&box docs
API ReferenceSandbox.Internal

public abstract interface Sandbox.Internal.IPanel

Methods

Showing 6 methods

public virtual Sandbox.Internal.IPanel CreateTooltip()

public virtual void Delete(bool immediate)

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

Parameters

  • needPointerEvents: Default: False

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

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

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

public virtual void UpdateTooltip(Sandbox.Internal.IPanel tooltipPanel)

Properties

Showing 21 properties

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

Get all style blocks active on this panel

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

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

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

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

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

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

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

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

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

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

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

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

public virtual bool 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.Rect Sandbox.Internal.IPanel.Rect { get; set; }

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

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

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

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

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

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

Metadata

FieldValue
NamespaceSandbox.Internal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Internal.IPanel

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