Class FullScreenCanvas
FullScreenCanvas class. Used to set and get full screen canvas.
Inheritance
System.Object
FullScreenCanvas
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public static class FullScreenCanvas
Fields
| Improve this Doc View SourceIsInUse
Boolean value whether CGS is in use or not
Declaration
public static bool IsInUse
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceBGAExists()
Checks whether the Bochs Graphics Adapter exists (not limited to Bochs)
Declaration
public static bool BGAExists()
Returns
Type | Description |
---|---|
System.Boolean |
Disable()
Disables the specified Graphics Driver used and returns to VGA text mode 80x25
Declaration
public static void Disable()
GetCurrentFullScreenCanvas()
Gets current full screen canvas with out setting Mode.
Declaration
public static Canvas GetCurrentFullScreenCanvas()
Returns
Type | Description |
---|---|
Canvas | Canvas value. |
GetFullScreenCanvas()
Get full screen canvas. Changes current Mode to default.
Declaration
public static Canvas GetFullScreenCanvas()
Returns
Type | Description |
---|---|
Canvas | Canvas value. |
GetFullScreenCanvas(Mode)
Get full screen canvas. Changes the current Mode.
Declaration
public static Canvas GetFullScreenCanvas(Mode mode)
Parameters
Type | Name | Description |
---|---|---|
Mode | mode | Mode. |
Returns
Type | Description |
---|---|
Canvas | Canvas value. |
TryGetFullScreenCanvas(Mode, out Canvas)
Trys to get full screen canvas.
Declaration
public static bool TryGetFullScreenCanvas(Mode mode, out Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Mode | mode | Mode. |
Canvas | canvas |
Returns
Type | Description |
---|---|
System.Boolean | true if successfully; otherwise, false. |