C# Class MoodSwingGUI.MSPanel

Inheritance: MSGUITypable
Mostra file Open project: verngutz/MoodSwing Class Usage Examples

Protected Properties

Property Type Description
background Microsoft.Xna.Framework.Graphics.Texture2D
components List
highlight Color

Public Methods

Method Description
AddComponent ( MSGUIClickable component ) : void
AddComponent ( MSGUIClickable component, Alignment alignment ) : void
AddComponent ( MSGUIUnclickable component ) : void
AddComponent ( MSGUIUnclickable component, Alignment alignment ) : void
AddComponent ( MSPanel panel ) : void
AddComponent ( MSPanel panel, Alignment alignment ) : void
Draw ( GameTime gameTime ) : void
HandleKeyboardInput ( KeyboardState oldKeyboardState ) : void
Hover ( ) : void
LeftClick ( ) : void
MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MiddleClick ( ) : void
RemoveComponent ( MSGUIClickable component ) : void
RemoveComponent ( MSGUIUnclickable component ) : void
RemoveComponent ( MSPanel panel ) : void
RightClick ( ) : void
UnHover ( ) : void
UnLeftClick ( ) : void
UnMiddleClick ( ) : void
UnRightClick ( ) : void
Update ( GameTime gameTime ) : void

Method Details

AddComponent() public method

public AddComponent ( MSGUIClickable component ) : void
component MSGUIClickable
return void

AddComponent() public method

public AddComponent ( MSGUIClickable component, Alignment alignment ) : void
component MSGUIClickable
alignment Alignment
return void

AddComponent() public method

public AddComponent ( MSGUIUnclickable component ) : void
component MSGUIUnclickable
return void

AddComponent() public method

public AddComponent ( MSGUIUnclickable component, Alignment alignment ) : void
component MSGUIUnclickable
alignment Alignment
return void

AddComponent() public method

public AddComponent ( MSPanel panel ) : void
panel MSPanel
return void

AddComponent() public method

public AddComponent ( MSPanel panel, Alignment alignment ) : void
panel MSPanel
alignment Alignment
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleKeyboardInput() public method

public HandleKeyboardInput ( KeyboardState oldKeyboardState ) : void
oldKeyboardState Microsoft.Xna.Framework.Input.KeyboardState
return void

Hover() public method

public Hover ( ) : void
return void

LeftClick() public method

public LeftClick ( ) : void
return void

MSPanel() public method

public MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
background Microsoft.Xna.Framework.Graphics.Texture2D
boundingRectangle Microsoft.Xna.Framework.Rectangle
highlight Color
toolTip MSToolTip
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MSPanel() public method

public MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
background Microsoft.Xna.Framework.Graphics.Texture2D
boundingRectangle Microsoft.Xna.Framework.Rectangle
toolTip MSToolTip
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MSPanel() public method

public MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, Color highlight, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
background Microsoft.Xna.Framework.Graphics.Texture2D
boundingRectangle Microsoft.Xna.Framework.Rectangle
topPadding float
bottomPadding float
leftPadding float
rightPadding float
highlight Color
toolTip MSToolTip
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MSPanel() public method

public MSPanel ( Microsoft.Xna.Framework.Graphics.Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, MSToolTip toolTip, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
background Microsoft.Xna.Framework.Graphics.Texture2D
boundingRectangle Microsoft.Xna.Framework.Rectangle
topPadding float
bottomPadding float
leftPadding float
rightPadding float
toolTip MSToolTip
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MiddleClick() public method

public MiddleClick ( ) : void
return void

RemoveComponent() public method

public RemoveComponent ( MSGUIClickable component ) : void
component MSGUIClickable
return void

RemoveComponent() public method

public RemoveComponent ( MSGUIUnclickable component ) : void
component MSGUIUnclickable
return void

RemoveComponent() public method

public RemoveComponent ( MSPanel panel ) : void
panel MSPanel
return void

RightClick() public method

public RightClick ( ) : void
return void

UnHover() public method

public UnHover ( ) : void
return void

UnLeftClick() public method

public UnLeftClick ( ) : void
return void

UnMiddleClick() public method

public UnMiddleClick ( ) : void
return void

UnRightClick() public method

public UnRightClick ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

background protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics background
return Microsoft.Xna.Framework.Graphics.Texture2D

components protected_oe property

protected List components
return List

highlight protected_oe property

protected Color highlight
return Color