Interface IRectClipperService
A service used to clip a rectangular area from an image.
Inherited Members
Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IRectClipperService : IDisposable
Properties
| Edit this page View SourceAllowManualInput
Property to set or return whether manual input is allowed or not.
Declaration
bool AllowManualInput { get; set; }
Property Value
Type | Description |
---|---|
bool |
AllowMove
Property to set or return whether the selection can be moved.
Declaration
bool AllowMove { get; set; }
Property Value
Type | Description |
---|---|
bool |
AllowResize
Property to set or return whether resizing is allowed.
Declaration
bool AllowResize { get; set; }
Property Value
Type | Description |
---|---|
bool |
Bounds
Property to set or return the boundaries for the clipping rectangle.
Declaration
RectangleF Bounds { get; set; }
Property Value
Type | Description |
---|---|
RectangleF |
Camera
Property to set or return the camera being used.
Declaration
GorgonOrthoCamera Camera { get; set; }
Property Value
Type | Description |
---|---|
GorgonOrthoCamera |
ClipAgainstBoundaries
Property to set or return whether to clip the rectangle against the boundaries provided by Bounds.
Declaration
bool ClipAgainstBoundaries { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsDragging
Property to return whether we're in the middle of a drag operation or not.
Declaration
bool IsDragging { get; }
Property Value
Type | Description |
---|---|
bool |
Rectangle
Property to set or return the rectangular region marked for clipping.
Declaration
RectangleF Rectangle { get; set; }
Property Value
Type | Description |
---|---|
RectangleF |
Methods
| Edit this page View SourceKeyDown(Keys, Keys)
Function called when a key is held down.
Declaration
bool KeyDown(Keys key, Keys modifiers)
Parameters
Type | Name | Description |
---|---|---|
Keys | key | The key that was held down. |
Keys | modifiers | The modifier keys held down with the |
Returns
Type | Description |
---|---|
bool | true if the key was handled, false if it was not. |
MouseDown(MouseArgs)
Function called when the mouse button is pressed.
Declaration
bool MouseDown(MouseArgs mouseArgs)
Parameters
Type | Name | Description |
---|---|---|
MouseArgs | mouseArgs | The arguments for the mouse events. |
Returns
Type | Description |
---|---|
bool | true if the mouse event was handled, false if it was not. |
MouseMove(MouseArgs)
Function called when the mouse button is moved.
Declaration
bool MouseMove(MouseArgs mouseArgs)
Parameters
Type | Name | Description |
---|---|---|
MouseArgs | mouseArgs | The arguments for the mouse events. |
Returns
Type | Description |
---|---|
bool | true if the mouse event was handled, false if it was not. |
MouseUp(MouseArgs)
Function called when the mouse button is released.
Declaration
bool MouseUp(MouseArgs mouseArgs)
Parameters
Type | Name | Description |
---|---|---|
MouseArgs | mouseArgs | The arguments for the mouse events. |
Returns
Type | Description |
---|---|
bool | true if the mouse event was handled, false if it was not. |
Refresh()
Function to force a refresh of the service.
Declaration
void Refresh()
Render()
Function to render the clipping region.
Declaration
void Render()
Events
| Edit this page View SourceKeyboardIconClicked
Event triggered when the keyboard icon is clicked.
Declaration
event EventHandler KeyboardIconClicked
Event Type
Type | Description |
---|---|
EventHandler |
RectChanged
Event triggered when the rectangle coordinates have been altered.
Declaration
event EventHandler RectChanged
Event Type
Type | Description |
---|---|
EventHandler |