C# Класс LongoMatch.Drawing.SelectionCanvas

A selection canvas supports selecting ICanvasSelectableObject objects from the canvas and moving, resizing them.
Наследование: Canvas
Показать файл Открыть проект

Открытые методы

Метод Описание
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