Class Placeable
Represents a placeable element.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public class Placeable : AbstractBindable, IBindable, INotifyPropertyChanged, IPlaceable
Constructors
| Edit this page View SourcePlaceable()
Initializes a new instance of the Placeable class.
Declaration
public Placeable()
Placeable(IPlaceable)
Initializes a new instance of the Placeable class.
Declaration
public Placeable(IPlaceable parent)
Parameters
Type | Name | Description |
---|---|---|
IPlaceable | parent | The parent this placeable is placed in. |
Placeable(IPlaceable, Point, Size)
Initializes a new instance of the Placeable class.
Declaration
public Placeable(IPlaceable parent, Point location, Size size)
Parameters
Type | Name | Description |
---|---|---|
IPlaceable | parent | The parent placeable this placeable is placed in. |
Point | location | The location of this placeable. |
Size | size | The size of this placeable. |
Placeable(Point, Size)
Initializes a new instance of the Placeable class.
Declaration
public Placeable(Point location, Size size)
Parameters
Type | Name | Description |
---|---|---|
Point | location | The location of this placeable. |
Size | size | The size of this placeable. |
Properties
| Edit this page View SourceActualLocation
Gets the actual location of the IPlaceable. This includes the Rotation.
Declaration
public Point ActualLocation { get; }
Property Value
Type | Description |
---|---|
Point |
ActualSize
Gets the actual Size of the IPlaceable. This includes the Scale.
Declaration
public Size ActualSize { get; }
Property Value
Type | Description |
---|---|
Size |
Boundary
Gets a rectangle containing the whole IPlaceable. This includes Location, Size, Scale and Rotation.
Declaration
public Rectangle Boundary { get; }
Property Value
Type | Description |
---|---|
Rectangle |
Location
Gets or sets the location of the IPlaceable.
Declaration
public Point Location { get; set; }
Property Value
Type | Description |
---|---|
Point |
Parent
Gets the parent this placeable is placed in.
Declaration
protected IPlaceable? Parent { get; }
Property Value
Type | Description |
---|---|
IPlaceable |
Rotation
Gets or sets the rotation of the IPlaceable.
Declaration
public Rotation Rotation { get; set; }
Property Value
Type | Description |
---|---|
Rotation |
Scale
Gets or sets the scale of the IPlaceable.
Declaration
public Scale Scale { get; set; }
Property Value
Type | Description |
---|---|
Scale |
Size
Gets the size of the IPlaceable.
Declaration
public Size Size { get; set; }
Property Value
Type | Description |
---|---|
Size |
Methods
| Edit this page View SourceOnActualLocationChanged()
Called when the ActualLocation property was changed.
Declaration
protected virtual void OnActualLocationChanged()
OnActualSizeChanged()
Called when the ActualLocation property was changed.
Declaration
protected virtual void OnActualSizeChanged()
OnBoundaryChanged()
Called when the Boundary property was changed.
Declaration
protected virtual void OnBoundaryChanged()
OnLocationChanged()
Called when the Location property was changed.
Declaration
protected virtual void OnLocationChanged()
OnRotationChanged()
Called when the Rotation property was changed.
Declaration
protected virtual void OnRotationChanged()
OnScaleChanged()
Called when the Scale property was changed.
Declaration
protected virtual void OnScaleChanged()
OnSizeChanged()
Called when the Size property was changed.
Declaration
protected virtual void OnSizeChanged()
UpdateActualPlaceableData()
Updates the ActualSize, ActualLocation and Boundary based on the Size, Scale and Rotation.
Declaration
protected virtual void UpdateActualPlaceableData()
Events
| Edit this page View SourceActualLocationChanged
Occurs when the ActualLocation property was changed.
Declaration
public event EventHandler<EventArgs>? ActualLocationChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
ActualSizeChanged
Occurs when the ActualSize property was changed.
Declaration
public event EventHandler<EventArgs>? ActualSizeChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
BoundaryChanged
Occurs when the Boundary property was changed.
Declaration
public event EventHandler<EventArgs>? BoundaryChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
LocationChanged
Occurs when the Location property was changed.
Declaration
public event EventHandler<EventArgs>? LocationChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
RotationChanged
Occurs when the Rotation property was changed.
Declaration
public event EventHandler<EventArgs>? RotationChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
ScaleChanged
Occurs when the Scale property was changed.
Declaration
public event EventHandler<EventArgs>? ScaleChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
SizeChanged
Occurs when the Size property was changed.
Declaration
public event EventHandler<EventArgs>? SizeChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |