C# Class OOGL.GUI.Abstract.BaseFrame

Inheritance: BaseControl, IDisposable
Show file Open project: tpb3d/TPB3D Class Usage Examples

Protected Properties

Property Type Description
modelViewProjection Matrix4
name string
windowType byte

Public Methods

Method Description
BaseFrame ( BaseFrameMgr frameMgr, byte windowType, string name ) : System
Dispose ( ) : void
Draw ( double gameTime ) : void
DrawText ( Font font, string text, Rectangle rectangle, DrawTextFormat drawTextFormat, Color color ) : void
DrawToFrameBuffer ( double gameTime ) : void
LoadSettings ( string workspacePath ) : void
NeedUpdate ( ) : void
OnMouseDown ( object sender, MouseButtonEventArgs e ) : bool
OnMouseMove ( object sender, MouseMoveEventArgs e ) : void
OnMouseUp ( object sender, MouseButtonEventArgs e ) : void
SaveSettings ( string workspacePath ) : void
ScaleScreenSize ( Size oldSize, Size newSize ) : void
ScreenToFrame ( Rectangle childRectangle ) : Rectangle
Update ( double gameTime ) : void

Private Methods

Method Description
GetSettingFile ( string workspacePath ) : string
UpdateFrameBuffer ( ) : void
UpdateTitleRect ( ) : void

Method Details

BaseFrame() public method

public BaseFrame ( BaseFrameMgr frameMgr, byte windowType, string name ) : System
frameMgr BaseFrameMgr
windowType byte
name string
return System

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( double gameTime ) : void
gameTime double
return void

DrawText() public method

public DrawText ( Font font, string text, Rectangle rectangle, DrawTextFormat drawTextFormat, Color color ) : void
font System.Drawing.Font
text string
rectangle Rectangle
drawTextFormat DrawTextFormat
color Color
return void

DrawToFrameBuffer() public method

public DrawToFrameBuffer ( double gameTime ) : void
gameTime double
return void

LoadSettings() public method

public LoadSettings ( string workspacePath ) : void
workspacePath string
return void

NeedUpdate() public method

public NeedUpdate ( ) : void
return void

OnMouseDown() public method

public OnMouseDown ( object sender, MouseButtonEventArgs e ) : bool
sender object
e OpenTK.Input.MouseButtonEventArgs
return bool

OnMouseMove() public method

public OnMouseMove ( object sender, MouseMoveEventArgs e ) : void
sender object
e OpenTK.Input.MouseMoveEventArgs
return void

OnMouseUp() public method

public OnMouseUp ( object sender, MouseButtonEventArgs e ) : void
sender object
e OpenTK.Input.MouseButtonEventArgs
return void

SaveSettings() public method

public SaveSettings ( string workspacePath ) : void
workspacePath string
return void

ScaleScreenSize() public method

public ScaleScreenSize ( Size oldSize, Size newSize ) : void
oldSize Size
newSize Size
return void

ScreenToFrame() public method

public ScreenToFrame ( Rectangle childRectangle ) : Rectangle
childRectangle Rectangle
return Rectangle

Update() public method

public Update ( double gameTime ) : void
gameTime double
return void

Property Details

modelViewProjection protected property

protected Matrix4 modelViewProjection
return Matrix4

name protected property

protected string name
return string

windowType protected property

protected byte windowType
return byte