C# Class Oglr.Core.ItemEditor

Inheritance: ITreeItem
Show file Open project: SteveDunn/oglr Class Usage Examples

Public Properties

Property Type Description
PreviewEndedReadyForCreation EventHandler

Public Methods

Method Description
AddBehaviour ( IBehaviour behaviour ) : void
CanRotate ( ) : bool
Clone ( ) : ItemEditor
ContainsPoint ( Vector2 point ) : bool
CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void

Called when the user starts creating something, e.g. a Rectangle will have a position but no height or width as this is set when the user moves the pointer around. Another example is the Path object. This initially just has 1 point (that start point) and the user add points by clicking around.

DrawInEditor ( SpriteBatch spriteBatch ) : void
DrawSelectionFrame ( SpriteBatch spriteBatch, Color color ) : void
HandleKeyPressWhenFocused ( ) : void
OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
OnMouseOut ( ) : void
OnMouseOver ( Vector2 mouseWorldPos ) : void
PropertiesChanged ( System.Windows.Forms.PropertyValueChangedEventArgs whatChanged ) : void
RecreateFromXml ( LayerEditor parentLayer, System.Xml.Linq.XElement xml ) : void
RenameTo ( string name ) : void
SetPosition ( Vector2 position ) : void
ToXml ( ) : System.Xml.Linq.XElement
ToggleSelection ( ) : void
Update ( GameTime gameTime ) : void
UserInteractionDuringCreation ( ) : void
WhenChosenFromToolbox ( ) : void

Protected Methods

Method Description
ItemEditor ( ) : System
WhenUpdatedByUi ( ) : void

Method Details

AddBehaviour() public method

public AddBehaviour ( IBehaviour behaviour ) : void
behaviour IBehaviour
return void

CanRotate() public method

public CanRotate ( ) : bool
return bool

Clone() public abstract method

public abstract Clone ( ) : ItemEditor
return ItemEditor

ContainsPoint() public abstract method

public abstract ContainsPoint ( Vector2 point ) : bool
point Vector2
return bool

CreateInDesignMode() public abstract method

Called when the user starts creating something, e.g. a Rectangle will have a position but no height or width as this is set when the user moves the pointer around. Another example is the Path object. This initially just has 1 point (that start point) and the user add points by clicking around.
public abstract CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
parentLayer LayerEditor
creationProperties IEntityCreationProperties
return void

DrawInEditor() public abstract method

public abstract DrawInEditor ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

DrawSelectionFrame() public abstract method

public abstract DrawSelectionFrame ( SpriteBatch spriteBatch, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
color Color
return void

HandleKeyPressWhenFocused() public method

public HandleKeyPressWhenFocused ( ) : void
return void

ItemEditor() protected method

protected ItemEditor ( ) : System
return System

OnMouseButtonDown() public method

public OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

OnMouseButtonUp() public method

public OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

OnMouseOut() public method

public OnMouseOut ( ) : void
return void

OnMouseOver() public method

public OnMouseOver ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
return void

PropertiesChanged() public method

public PropertiesChanged ( System.Windows.Forms.PropertyValueChangedEventArgs whatChanged ) : void
whatChanged System.Windows.Forms.PropertyValueChangedEventArgs
return void

RecreateFromXml() public method

public RecreateFromXml ( LayerEditor parentLayer, System.Xml.Linq.XElement xml ) : void
parentLayer LayerEditor
xml System.Xml.Linq.XElement
return void

RenameTo() public method

public RenameTo ( string name ) : void
name string
return void

SetPosition() public method

public SetPosition ( Vector2 position ) : void
position Vector2
return void

ToXml() public method

public ToXml ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

ToggleSelection() public method

public ToggleSelection ( ) : void
return void

Update() public method

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

UserInteractionDuringCreation() public abstract method

public abstract UserInteractionDuringCreation ( ) : void
return void

WhenChosenFromToolbox() public method

public WhenChosenFromToolbox ( ) : void
return void

WhenUpdatedByUi() protected method

protected WhenUpdatedByUi ( ) : void
return void

Property Details

PreviewEndedReadyForCreation public property

public EventHandler PreviewEndedReadyForCreation
return EventHandler