Class DialogManager
Manages shared resources of DirectX-based dialogs
public sealed class DialogManager : IDisposable
- Inheritance
-
objectDialogManager
- Implements
Constructors
DialogManager(Engine)
Sets up the GUI system for usage with a rendering engine
public DialogManager(Engine engine)
Parameters
engineEngineThe rendering engine containing the Direct3D device
Properties
Device
Gets the DirectX device
public Device Device { get; }
Property Value
- Device
Disposed
Has this manager been disposed?
[Browsable(false)]
public bool Disposed { get; }
Property Value
Engine
Gets the render engine
public Engine? Engine { get; }
Property Value
FocusedControl
The control which currently has keyboard focus (across all dialogs using this manager)
public Control? FocusedControl { get; }
Property Value
RefreshTime
Dialogs last refreshed before this AbsoluteTime are refreshed on their next render
public double RefreshTime { get; set; }
Property Value
Sprite
public Sprite? Sprite { get; }
Property Value
- Sprite
StateBlock
public StateBlock? StateBlock { get; }
Property Value
- StateBlock
Target
Gets the render target control
public Control Target { get; }
Property Value
Methods
AddFont(string, uint, FontWeight)
Adds a font to the resource manager
public int AddFont(string faceName, uint height, FontWeight weight)
Parameters
Returns
AddTexture(string)
Adds a texture to the resource manager
public int AddTexture(string filename)
Parameters
filenamestring
Returns
ClearFocus()
Clears focus from the currently focused control
public void ClearFocus()
CreateFont(int)
Creates a font
public void CreateFont(int font)
Parameters
fontint
CreateTexture(int)
Creates a texture
public void CreateTexture(int tex)
Parameters
texint
Dispose()
public void Dispose()
~DialogManager()
protected ~DialogManager()
GetFontNode(int)
Gets a font node from the cache
public FontNode GetFontNode(int index)
Parameters
indexint
Returns
GetTextureNode(int)
Gets a texture node from the cache
public TextureNode GetTextureNode(int index)
Parameters
indexint
Returns
OnCreateDevice()
Called when the device is created
public void OnCreateDevice()
OnLostDevice()
Called when the device has been lost.
public void OnLostDevice()
OnResetDevice()
Called when the device has been reset.
public void OnResetDevice()
RequestFocus(Control)
Request that a control has focus
public void RequestFocus(Control control)
Parameters
controlControl