C# 클래스 Oglr.Core.ItemEditor

상속: ITreeItem
파일 보기 프로젝트 열기: SteveDunn/oglr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PreviewEndedReadyForCreation EventHandler

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
ItemEditor ( ) : System
WhenUpdatedByUi ( ) : void

메소드 상세

AddBehaviour() 공개 메소드

public AddBehaviour ( IBehaviour behaviour ) : void
behaviour IBehaviour
리턴 void

CanRotate() 공개 메소드

public CanRotate ( ) : bool
리턴 bool

Clone() 공개 추상적인 메소드

public abstract Clone ( ) : ItemEditor
리턴 ItemEditor

ContainsPoint() 공개 추상적인 메소드

public abstract ContainsPoint ( Vector2 point ) : bool
point Vector2
리턴 bool

CreateInDesignMode() 공개 추상적인 메소드

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
리턴 void

DrawInEditor() 공개 추상적인 메소드

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

DrawSelectionFrame() 공개 추상적인 메소드

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

HandleKeyPressWhenFocused() 공개 메소드

public HandleKeyPressWhenFocused ( ) : void
리턴 void

ItemEditor() 보호된 메소드

protected ItemEditor ( ) : System
리턴 System

OnMouseButtonDown() 공개 메소드

public OnMouseButtonDown ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
리턴 void

OnMouseButtonUp() 공개 메소드

public OnMouseButtonUp ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
리턴 void

OnMouseOut() 공개 메소드

public OnMouseOut ( ) : void
리턴 void

OnMouseOver() 공개 메소드

public OnMouseOver ( Vector2 mouseWorldPos ) : void
mouseWorldPos Vector2
리턴 void

PropertiesChanged() 공개 메소드

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

RecreateFromXml() 공개 메소드

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

RenameTo() 공개 메소드

public RenameTo ( string name ) : void
name string
리턴 void

SetPosition() 공개 메소드

public SetPosition ( Vector2 position ) : void
position Vector2
리턴 void

ToXml() 공개 메소드

public ToXml ( ) : System.Xml.Linq.XElement
리턴 System.Xml.Linq.XElement

ToggleSelection() 공개 메소드

public ToggleSelection ( ) : void
리턴 void

Update() 공개 메소드

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

UserInteractionDuringCreation() 공개 추상적인 메소드

public abstract UserInteractionDuringCreation ( ) : void
리턴 void

WhenChosenFromToolbox() 공개 메소드

public WhenChosenFromToolbox ( ) : void
리턴 void

WhenUpdatedByUi() 보호된 메소드

protected WhenUpdatedByUi ( ) : void
리턴 void

프로퍼티 상세

PreviewEndedReadyForCreation 공개적으로 프로퍼티

public EventHandler PreviewEndedReadyForCreation
리턴 EventHandler