Coherent UI for .NET  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Coherent.UI.ResourceData Class Reference

Abstract interface providing data for storing resources. More...

Inherits IDisposable.

Public Member Functions

virtual IntPtr GetBuffer ()
 Get the buffer with the resource data. More...
 
virtual uint GetSize ()
 Get the size of the data. More...
 
virtual void SignalSuccess ()
 Report that writing to resource was successful. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior. More...
 
virtual void SignalFailure ()
 Report that resource writing has failed. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior. More...
 

Detailed Description

Abstract interface providing data for storing resources.

Member Function Documentation

virtual IntPtr Coherent.UI.ResourceData.GetBuffer ( )
inlinevirtual

Get the buffer with the resource data.

Returns
pointer to the beginning of the data. May return nullptr when acquiring the buffer has failed
virtual uint Coherent.UI.ResourceData.GetSize ( )
inlinevirtual

Get the size of the data.

Returns
the size of the data
virtual void Coherent.UI.ResourceData.SignalFailure ( )
inlinevirtual

Report that resource writing has failed. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior.

virtual void Coherent.UI.ResourceData.SignalSuccess ( )
inlinevirtual

Report that writing to resource was successful. This should be executed in the thread that all Coherent UI methods are executed. After this method is called, any calls to any method of the instance are undefined behavior.