C# Class SadConsole.Font

ファイルを表示 Open project: Thraka/SadConsole Class Usage Examples

Private Properties

Property Type Description
AfterDeserialized void
Font System
Font System
Initialize void

Public Methods

Method Description
GetRenderRect ( int x, int y ) : Rectangle
ResizeGraphicsDeviceManager ( GraphicsDeviceManager manager, int width, int height, int additionalWidth, int additionalHeight ) : void

Resizes the graphics device manager based on this font's glyph size.

Private Methods

Method Description
AfterDeserialized ( System context ) : void
Font ( ) : System
Font ( FontMaster masterFont, FontSizes fontMultiple ) : System
Initialize ( FontMaster masterFont, FontSizes fontMultiple ) : void

Method Details

GetRenderRect() public method

public GetRenderRect ( int x, int y ) : Rectangle
x int
y int
return Microsoft.Xna.Framework.Rectangle

ResizeGraphicsDeviceManager() public method

Resizes the graphics device manager based on this font's glyph size.
public ResizeGraphicsDeviceManager ( GraphicsDeviceManager manager, int width, int height, int additionalWidth, int additionalHeight ) : void
manager GraphicsDeviceManager Graphics device manager to resize.
width int The width glyphs.
height int The height glyphs.
additionalWidth int Additional pixel width to add to the resize.
additionalHeight int Additional pixel height to add to the resize.
return void