Class FullScreenCanvas
Provides functionality to fetch canvases that write directly to the underlying display device.
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
Properties
| Improve this Doc View SourceIsInUse
Whether the CGS (Cosmos Graphics Subsystem) is currently in use.
Declaration
public static bool IsInUse { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceBGAExists()
Checks whether the Bochs Graphics Adapter exists.
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 the currently used screen display canvas.
Declaration
public static Canvas GetCurrentFullScreenCanvas()
Returns
Type | Description |
---|---|
Canvas |
GetFullScreenCanvas()
Gets a screen display canvas, and changes the display mode to the default.
Declaration
public static Canvas GetFullScreenCanvas()
Returns
Type | Description |
---|---|
Canvas |
GetFullScreenCanvas(Mode)
Gets a screen display canvas, and changes the display mode to the given mode
.
Declaration
public static Canvas GetFullScreenCanvas(Mode mode)
Parameters
Type | Name | Description |
---|---|---|
Mode | mode |
Returns
Type | Description |
---|---|
Canvas |
TryGetFullScreenCanvas(Mode, out Canvas)
Attempts to get a screen display canvas, and changes the display mode to the default.
Declaration
public static bool TryGetFullScreenCanvas(Mode mode, out Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Mode | mode | |
Canvas | canvas |
Returns
Type | Description |
---|---|
System.Boolean | true if the operation was successful; otherwise, false. |