C# 클래스 LongoMatch.Drawing.SelectionCanvas

A selection canvas supports selecting ICanvasSelectableObject objects from the canvas and moving, resizing them.
상속: Canvas
파일 보기 프로젝트 열기: GNOME/longomatch

공개 메소드들

메소드 설명
ClearSelection ( ) : void

Reset the list of select objects

SelectionCanvas ( IWidget widget ) : System

보호된 메소드들

메소드 설명
ClearObjects ( ) : void

Clears the objects.

CursorMoved ( Point coords ) : void

Called when the cursor is being moved. Highlights objects when the cursor passes over them.

Dispose ( bool disposing ) : void
GetSelection ( Point coords, bool inMotion = false, bool skipSelected = false ) : Selection
HandleLeftButton ( Point coords, ButtonModifier modif ) : void
HandleMotionEvent ( Point coords ) : void
HandleRightButton ( Point coords, ButtonModifier modif ) : void
SelectionChanged ( List sel ) : void

Notifies subclasses when the selected objects has changed.

SelectionMoved ( Selection sel ) : void

Notifies subclasses when an object has been moved.

ShowMenu ( Point coords ) : void

Notifies subclasses a menu should be displayed. Canvas' with menus should override it to display their menu here.

StartMove ( Selection sel ) : void

Notifies subclasses when an object starts to be moved.

StopMove ( bool moved ) : void

Notifies subclass when the move process stops.

UpdateSelection ( Selection sel, bool notify = true ) : void

Updates the current selection. If sel is null, it clears the current selection. If sel wasn't previously selected, it's added to the list of selected objects, otherwise it's removed from the list.

비공개 메소드들

메소드 설명
HandleButtonPressEvent ( Point coords, uint time, ButtonType type, ButtonModifier modifier ) : void
HandleButtonReleasedEvent ( Point coords, ButtonType type, ButtonModifier modifier ) : void
HandleShowTooltipEvent ( Point coords ) : void

메소드 상세

ClearObjects() 보호된 메소드

Clears the objects.
protected ClearObjects ( ) : void
리턴 void

ClearSelection() 공개 메소드

Reset the list of select objects
public ClearSelection ( ) : void
리턴 void

CursorMoved() 보호된 메소드

Called when the cursor is being moved. Highlights objects when the cursor passes over them.
protected CursorMoved ( Point coords ) : void
coords Point Coords.
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetSelection() 보호된 메소드

protected GetSelection ( Point coords, bool inMotion = false, bool skipSelected = false ) : Selection
coords Point
inMotion bool
skipSelected bool
리턴 LongoMatch.Core.Store.Drawables.Selection

HandleLeftButton() 보호된 메소드

protected HandleLeftButton ( Point coords, ButtonModifier modif ) : void
coords Point
modif ButtonModifier
리턴 void

HandleMotionEvent() 보호된 메소드

protected HandleMotionEvent ( Point coords ) : void
coords Point
리턴 void

HandleRightButton() 보호된 메소드

protected HandleRightButton ( Point coords, ButtonModifier modif ) : void
coords Point
modif ButtonModifier
리턴 void

SelectionCanvas() 공개 메소드

public SelectionCanvas ( IWidget widget ) : System
widget IWidget
리턴 System

SelectionChanged() 보호된 메소드

Notifies subclasses when the selected objects has changed.
protected SelectionChanged ( List sel ) : void
sel List List of selected objects.
리턴 void

SelectionMoved() 보호된 메소드

Notifies subclasses when an object has been moved.
protected SelectionMoved ( Selection sel ) : void
sel LongoMatch.Core.Store.Drawables.Selection The selection moved.
리턴 void

ShowMenu() 보호된 메소드

Notifies subclasses a menu should be displayed. Canvas' with menus should override it to display their menu here.
protected ShowMenu ( Point coords ) : void
coords Point Position where the click happens.
리턴 void

StartMove() 보호된 메소드

Notifies subclasses when an object starts to be moved.
protected StartMove ( Selection sel ) : void
sel LongoMatch.Core.Store.Drawables.Selection The selection moved.
리턴 void

StopMove() 보호된 메소드

Notifies subclass when the move process stops.
protected StopMove ( bool moved ) : void
moved bool If set to true, the object position changed.
리턴 void

UpdateSelection() 보호된 메소드

Updates the current selection. If sel is null, it clears the current selection. If sel wasn't previously selected, it's added to the list of selected objects, otherwise it's removed from the list.
protected UpdateSelection ( Selection sel, bool notify = true ) : void
sel LongoMatch.Core.Store.Drawables.Selection The selection.
notify bool If set to true, notifies about the changes.
리턴 void