C# Class fCraft.FontHandler

Datei anzeigen Open project: GlennMR/800craft Class Usage Examples

Public Properties

Property Type Description
blockCount int
player Player

Public Methods

Method Description
CreateGraphicsAndDraw ( string Sentence ) : void
Crop ( Bitmap bmp ) : Bitmap
Draw ( Bitmap img ) : void
FontHandler ( Block textColor, Vector3I Marks, Player p, Direction dir ) : System
MeasureTextSize ( string text, Font font ) : SizeF

Private Methods

Method Description
DrawOneBlock ( Player player, Map map, Block drawBlock, Vector3I coord, BlockChangeContext context, int &blocks, int &blocksDenied, fCraft undoState ) : void

Method Details

CreateGraphicsAndDraw() public method

public CreateGraphicsAndDraw ( string Sentence ) : void
Sentence string
return void

Crop() public static method

public static Crop ( Bitmap bmp ) : Bitmap
bmp System.Drawing.Bitmap
return System.Drawing.Bitmap

Draw() public method

public Draw ( Bitmap img ) : void
img System.Drawing.Bitmap
return void

FontHandler() public method

public FontHandler ( Block textColor, Vector3I Marks, Player p, Direction dir ) : System
textColor Block
Marks Vector3I
p Player
dir Direction
return System

MeasureTextSize() public static method

public static MeasureTextSize ( string text, Font font ) : SizeF
text string
font System.Drawing.Font
return System.Drawing.SizeF

Property Details

blockCount public_oe property

public int blockCount
return int

player public_oe property

public Player,fCraft player
return Player