C# Class Oglr.Plugins.RectangleItemEditor

Inheritance: Oglr.Core.ItemEditor
Mostrar archivo Open project: SteveDunn/oglr Class Usage Examples

Public Methods

Method Description
Clone ( ) : ItemEditor
ContainsPoint ( Vector2 point ) : bool
CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
CreateReadyForDroppingOntoCanvas ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
DrawInEditor ( SpriteBatch spriteBatch ) : void
DrawSelectionFrame ( SpriteBatch spriteBatch, Color color ) : void
OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
OnMouseOver ( Vector2 mouseWorldPos ) : void
PropertiesChanged ( System.Windows.Forms.PropertyValueChangedEventArgs whatChanged ) : void
RecreateFromXml ( LayerEditor parentLayer, System.Xml.Linq.XElement xml ) : void
SetPosition ( Vector2 position ) : void
UserInteractionDuringCreation ( ) : void
WhenChosenFromToolbox ( ) : void

Protected Methods

Method Description
WhenUpdatedByUi ( ) : void

Private Methods

Method Description
RectangleItemEditor ( ) : System
calculateDefaultSizeOfNewlyCreatedItem ( ) : Vector2
fromRectangle ( Rectangle rectangle ) : RectangleItemProperties
recalculateRectangle ( ) : void
setX ( float x ) : void
setY ( float y ) : void
summonMainForm ( ) : IMainForm

Method Details

Clone() public method

public Clone ( ) : ItemEditor
return Oglr.Core.ItemEditor

ContainsPoint() public method

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

CreateInDesignMode() public method

public CreateInDesignMode ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
parentLayer LayerEditor
creationProperties IEntityCreationProperties
return void

CreateReadyForDroppingOntoCanvas() public method

public CreateReadyForDroppingOntoCanvas ( LayerEditor parentLayer, IEntityCreationProperties creationProperties ) : void
parentLayer LayerEditor
creationProperties IEntityCreationProperties
return void

DrawInEditor() public method

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

DrawSelectionFrame() public method

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

OnMouseButtonDown() public method

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

OnMouseButtonUp() public method

public OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
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

SetPosition() public method

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

UserInteractionDuringCreation() public method

public UserInteractionDuringCreation ( ) : void
return void

WhenChosenFromToolbox() public method

public WhenChosenFromToolbox ( ) : void
return void

WhenUpdatedByUi() protected method

protected WhenUpdatedByUi ( ) : void
return void