Pathfinder  v3.0
The definitive Hacknet programmable modding system
Pathfinder.GUI.DynamicRectangle Class Reference
+ Inheritance diagram for Pathfinder.GUI.DynamicRectangle:

Public Member Functions

 DynamicRectangle (float x, float y, float width, float height)
 
 DynamicRectangle (float x, float y, float width, float height, Color? selected, Color? deselected=null, float selectableBorder=-1, bool xMove=true, bool yMove=true)
 
 DynamicRectangle (float x, float y, float width, float height, Color? selected, Color? deselected, float selectableBorder, MoveLine? xbound, MoveLine? ybound=null)
 
override bool Draw ()
 
override void DoDraw ()
 
- Public Member Functions inherited from Pathfinder.GUI.BaseInteractiveRectangle< float >
override bool HandleInteraction ()
 

Public Attributes

override bool IsActive => Contains(GuiData.getMousePoint())
 
- Public Attributes inherited from Pathfinder.GUI.BaseDynamicRectangle
bool InBorder
 

Protected Attributes

Vector2 OriginalClickPosition
 
Vector2 ClickPositionOffset
 

Properties

bool IsDragging [get, set]
 
- Properties inherited from Pathfinder.GUI.BaseDynamicRectangle
Color SelectedColor [get, set]
 
Color DeselectedColor = GuiData.Default_Selected_Color [get, set]
 
float SelectableBorder = GuiData.Default_Unselected_Color [get, set]
 
MoveLine XBound = -1 [get, set]
 
MoveLine YBound = new MoveLine(3.40282347E+38f, -3.40282347E+38f) [get, set]
 
Vector2 MovedPosition = new MoveLine(3.40282347E+38f, -3.40282347E+38f) [get, protected set]
 
- Properties inherited from Pathfinder.GUI.BaseInteractiveRectangle< float >
Action< BaseInteractiveRectangle< T > > DrawFinish [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from Pathfinder.GUI.BaseDynamicRectangle
 BaseDynamicRectangle (float x, float y, float width, float height)
 
- Protected Member Functions inherited from Pathfinder.GUI.BaseInteractiveRectangle< float >
 BaseInteractiveRectangle (T x, T y, T width, T height)
 

Constructor & Destructor Documentation

◆ DynamicRectangle() [1/3]

Pathfinder.GUI.DynamicRectangle.DynamicRectangle ( float  x,
float  y,
float  width,
float  height 
)

◆ DynamicRectangle() [2/3]

Pathfinder.GUI.DynamicRectangle.DynamicRectangle ( float  x,
float  y,
float  width,
float  height,
Color?  selected,
Color?  deselected = null,
float  selectableBorder = -1,
bool  xMove = true,
bool  yMove = true 
)

◆ DynamicRectangle() [3/3]

Pathfinder.GUI.DynamicRectangle.DynamicRectangle ( float  x,
float  y,
float  width,
float  height,
Color?  selected,
Color?  deselected,
float  selectableBorder,
MoveLine xbound,
MoveLine ybound = null 
)

Member Function Documentation

◆ DoDraw()

override void Pathfinder.GUI.DynamicRectangle.DoDraw ( )
virtual

◆ Draw()

override bool Pathfinder.GUI.DynamicRectangle.Draw ( )
virtual

Member Data Documentation

◆ ClickPositionOffset

Vector2 Pathfinder.GUI.DynamicRectangle.ClickPositionOffset
protected

◆ IsActive

override bool Pathfinder.GUI.DynamicRectangle.IsActive => Contains(GuiData.getMousePoint())

◆ OriginalClickPosition

Vector2 Pathfinder.GUI.DynamicRectangle.OriginalClickPosition
protected

Property Documentation

◆ IsDragging

bool Pathfinder.GUI.DynamicRectangle.IsDragging
getset

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