C# Class Artemis.Profiles.ProfileModel

Show file Open project: SpoinkyNL/Artemis Class Usage Examples

Private Properties

Property Type Description
DrawLayers void

Public Methods

Method Description
Equals ( object obj ) : bool
FixBoundaries ( Rect keyboardRectangle ) : void

Looks at all the layers wthin the profile and makes sure they are within boundaries of the given rectangle

FixOrder ( ) : void
GetHashCode ( ) : int
GetLayers ( ) : List

Gives all the layers and their children in a flat list

GetRenderLayers ( IDataModel dataModel, bool keyboardOnly, bool ignoreConditions = false ) : List

Generates a flat list containing all layers that must be rendered on the keyboard, the first mouse layer to be rendered and the first headset layer to be rendered

ProfileModel ( ) : System
ResizeLayers ( KeyboardProvider target ) : void

Resizes layers that are shown in the editor and match exactly the full keyboard widht and height

Protected Methods

Method Description
Equals ( ProfileModel other ) : bool

Private Methods

Method Description
DrawLayers ( Graphics g, IEnumerable renderLayers, IDataModel dataModel, Rect rect, bool preview, bool updateAnimations ) : void

Draw all the given layers on the given rect

Method Details

Equals() protected method

protected Equals ( ProfileModel other ) : bool
other ProfileModel
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FixBoundaries() public method

Looks at all the layers wthin the profile and makes sure they are within boundaries of the given rectangle
public FixBoundaries ( Rect keyboardRectangle ) : void
keyboardRectangle Rect
return void

FixOrder() public method

public FixOrder ( ) : void
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetLayers() public method

Gives all the layers and their children in a flat list
public GetLayers ( ) : List
return List

GetRenderLayers() public method

Generates a flat list containing all layers that must be rendered on the keyboard, the first mouse layer to be rendered and the first headset layer to be rendered
public GetRenderLayers ( IDataModel dataModel, bool keyboardOnly, bool ignoreConditions = false ) : List
dataModel IDataModel Instance of said game data model
keyboardOnly bool Whether or not to ignore anything but keyboards
ignoreConditions bool
return List

ProfileModel() public method

public ProfileModel ( ) : System
return System

ResizeLayers() public method

Resizes layers that are shown in the editor and match exactly the full keyboard widht and height
public ResizeLayers ( KeyboardProvider target ) : void
target Artemis.DeviceProviders.KeyboardProvider The new keyboard to adjust the layers for
return void