C# Class Flood.GUI.Skins.Texturing.Bordered

3x3 texture grid.
Datei anzeigen Open project: FloodProject/flood

Public Methods

Method Description
Bordered ( ResourceHandle imageHandle, float x, float y, float w, float h, Margin inMargin, float drawMarginScale = 1.0f )
Draw ( Renderers render, Rectangle r ) : void
Draw ( Renderers render, Rectangle r, Color col ) : void

Private Methods

Method Description
DrawRect ( Renderers render, int i, int x, int y, int w, int h ) : void
Init ( ResourceHandle imageHandle, float x, float y, float w, float h, Margin inMargin, float drawMarginScale = 1.0f ) : void
SetRect ( int num, float x, float y, float w, float h ) : void

Method Details

Bordered() public method

public Bordered ( ResourceHandle imageHandle, float x, float y, float w, float h, Margin inMargin, float drawMarginScale = 1.0f )
imageHandle ResourceHandle
x float
y float
w float
h float
inMargin Margin
drawMarginScale float

Draw() public method

public Draw ( Renderers render, Rectangle r ) : void
render Renderers
r Rectangle
return void

Draw() public method

public Draw ( Renderers render, Rectangle r, Color col ) : void
render Renderers
r Rectangle
col Color
return void