CVB.Net 15.0
Loading...
Searching...
No Matches

A thumb that is tailored to the requirements of the Stemmer.Cvb.Wpf.DisplayCanvas object. More...

Inherited by Area2DMoveThumb, MoveThumb, and ResizeThumb.

Public Member Functions

 DisplayCanvasThumbObject ()
 Ctor.
 

Static Public Attributes

static readonly DependencyProperty PlacementLimitsProperty
 Dependency property object for PlacementLimits
 
static readonly DependencyProperty CoordinatesProperty
 Dependency property object for Coordinates
 

Protected Member Functions

virtual void OnDragStarted (DragStartedEventArgs e)
 Drag started handler.
 
virtual void OnDragDelta (DragDeltaEventArgs e)
 Drag delta handler.
 
virtual void ApplyCoordinateRestrictions (ref double left, ref double top, ref double right, ref double bottom, bool ignoreSize)
 Make sure the control stays within the limits of the image it is "living" on.
 

Static Protected Attributes

const PlacementMode PlacementLimitsDefault = PlacementMode.StayInsideImage
 Default limit mode.
 
const CoordinateMode CoordinatesDefault = CoordinateMode.Pixel
 Default coordinate mode.
 

Properties

PlacementMode PlacementLimits [get, set]
 X position of the feature window origin.
 
CoordinateMode Coordinates [get, set]
 X position of the feature window origin.
 
DisplayCanvas Canvas [get]
 The display canvas we are displayed on (if there is none, this will simply be null...
 
OverlayBase Overlay [get]
 The control we are operating on.
 

Detailed Description

A thumb that is tailored to the requirements of the Stemmer.Cvb.Wpf.DisplayCanvas object.

Member Function Documentation

◆ ApplyCoordinateRestrictions()

virtual void ApplyCoordinateRestrictions ( ref double left,
ref double top,
ref double right,
ref double bottom,
bool ignoreSize )
protectedvirtual

Make sure the control stays within the limits of the image it is "living" on.

Parameters
leftCoordinate of the left edge. May be modified by the function call if needed.
topCoordinate of the top edge. May be modified by the function call if needed.
rightCoordinate of the right edge. May be modified by the function call if needed.
bottomCoordinate of the bottom edge. May be modified by the function call if needed.
ignoreSizeWhen set to true, the width and height of the overlay will be ignored.

◆ OnDragDelta()

virtual void OnDragDelta ( DragDeltaEventArgs e)
protectedvirtual

Drag delta handler.

Parameters
eEvent arguments.

Reimplemented in MoveThumb, and ResizeThumb.

◆ OnDragStarted()

virtual void OnDragStarted ( DragStartedEventArgs e)
protectedvirtual

Drag started handler.

Parameters
eEvent arguments.

Reimplemented in ResizeThumb.