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
xintyintwidthintheightintresourceDepotResourceDepotborderlessWindowboolenableWindowBlurboollayeredWindowboolnamestring
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
widthintheightintresourceDepotResourceDepotborderlessWindowboolenableWindowBlurboollayeredWindowboolnamestring
GraphicsForm(WindowsForm)
public GraphicsForm(WindowsForm windowsForm)
Parameters
windowsFormWindowsForm
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
inputDataInputData
GetKey(InputKey)
public bool GetKey(InputKey keyCode)
Parameters
keyCodeInputKey
Returns
GetKeyDown(InputKey)
public bool GetKeyDown(InputKey keyCode)
Parameters
keyCodeInputKey
Returns
GetKeyUp(InputKey)
public bool GetKeyUp(InputKey keyCode)
Parameters
keyCodeInputKey
Returns
GetMouseDeltaZ()
public float GetMouseDeltaZ()
Returns
InitializeGraphicsContext(ResourceDepot)
public void InitializeGraphicsContext(ResourceDepot resourceDepot)
Parameters
resourceDepotResourceDepot
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
mouseOverDragAreabool
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).