Class GraphicsForm
- Namespace
- TaleWorlds.TwoDimension.Standalone
- Assembly
- TaleWorlds.TwoDimension.Standalone.dll
public class GraphicsForm : IMessageCommunicator
- Inheritance
-
GraphicsForm
- Implements
- Inherited Members
Constructors
GraphicsForm(int, int, int, int, ResourceDepot, bool, bool, bool, string)
public GraphicsForm(int x, int y, int width, int height, ResourceDepot resourceDepot, bool borderlessWindow = false, bool enableWindowBlur = false, bool layeredWindow = false, string name = null)
Parameters
x
inty
intwidth
intheight
intresourceDepot
ResourceDepotborderlessWindow
boolenableWindowBlur
boollayeredWindow
boolname
string
GraphicsForm(int, int, ResourceDepot, bool, bool, bool, string)
public GraphicsForm(int width, int height, ResourceDepot resourceDepot, bool borderlessWindow = false, bool enableWindowBlur = false, bool layeredWindow = false, string name = null)
Parameters
width
intheight
intresourceDepot
ResourceDepotborderlessWindow
boolenableWindowBlur
boollayeredWindow
boolname
string
GraphicsForm(WindowsForm)
public GraphicsForm(WindowsForm windowsForm)
Parameters
windowsForm
WindowsForm
Fields
HT_CAPTION
public const int HT_CAPTION = 2
Field Value
WM_NCLBUTTONDOWN
public const int WM_NCLBUTTONDOWN = 161
Field Value
Properties
GraphicsContext
public GraphicsContext GraphicsContext { get; }
Property Value
Height
public int Height { get; }
Property Value
Width
public int Width { get; }
Property Value
Methods
BeginFrame()
public void BeginFrame()
Destroy()
public void Destroy()
FillInputDataFromCurrent(InputData)
public void FillInputDataFromCurrent(InputData inputData)
Parameters
inputData
InputData
GetKey(InputKey)
public bool GetKey(InputKey keyCode)
Parameters
keyCode
InputKey
Returns
GetKeyDown(InputKey)
public bool GetKeyDown(InputKey keyCode)
Parameters
keyCode
InputKey
Returns
GetKeyUp(InputKey)
public bool GetKeyUp(InputKey keyCode)
Parameters
keyCode
InputKey
Returns
GetMouseDeltaZ()
public float GetMouseDeltaZ()
Returns
InitializeGraphicsContext(ResourceDepot)
public void InitializeGraphicsContext(ResourceDepot resourceDepot)
Parameters
resourceDepot
ResourceDepot
LeftMouse()
public bool LeftMouse()
Returns
LeftMouseDown()
public bool LeftMouseDown()
Returns
LeftMouseUp()
public bool LeftMouseUp()
Returns
MessageLoop()
public void MessageLoop()
MinimizeWindow()
public void MinimizeWindow()
MouseMove()
public bool MouseMove()
Returns
MousePosition()
public Vector2 MousePosition()
Returns
PostRender()
public void PostRender()
RightMouse()
public bool RightMouse()
Returns
RightMouseDown()
public bool RightMouseDown()
Returns
RightMouseUp()
public bool RightMouseUp()
Returns
Update()
public void Update()
UpdateInput(bool)
public void UpdateInput(bool mouseOverDragArea = false)
Parameters
mouseOverDragArea
bool
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).