Show / Hide Table of Contents

Class Placeable

Represents a placeable element.

Inheritance
object
AbstractBindable
Placeable
AbstractRGBDevice<TDeviceInfo>
Led
Implements
IBindable
INotifyPropertyChanged
IPlaceable
Inherited Members
AbstractBindable.PropertyChanged
AbstractBindable.RequiresUpdate<T>(ref T, T)
AbstractBindable.SetProperty<T>(ref T, T, string)
AbstractBindable.OnPropertyChanged(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public class Placeable : AbstractBindable, IBindable, INotifyPropertyChanged, IPlaceable

Constructors

| Edit this page View Source

Placeable()

Initializes a new instance of the Placeable class.

Declaration
public Placeable()
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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 Source

ActualLocation

Gets the actual location of the IPlaceable. This includes the Rotation.

Declaration
public Point ActualLocation { get; }
Property Value
Type Description
Point
| Edit this page View Source

ActualSize

Gets the actual Size of the IPlaceable. This includes the Scale.

Declaration
public Size ActualSize { get; }
Property Value
Type Description
Size
| Edit this page View Source

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
| Edit this page View Source

Location

Gets or sets the location of the IPlaceable.

Declaration
public Point Location { get; set; }
Property Value
Type Description
Point
| Edit this page View Source

Parent

Gets the parent this placeable is placed in.

Declaration
protected IPlaceable? Parent { get; }
Property Value
Type Description
IPlaceable
| Edit this page View Source

Rotation

Gets or sets the rotation of the IPlaceable.

Declaration
public Rotation Rotation { get; set; }
Property Value
Type Description
Rotation
| Edit this page View Source

Scale

Gets or sets the scale of the IPlaceable.

Declaration
public Scale Scale { get; set; }
Property Value
Type Description
Scale
| Edit this page View Source

Size

Gets the size of the IPlaceable.

Declaration
public Size Size { get; set; }
Property Value
Type Description
Size

Methods

| Edit this page View Source

OnActualLocationChanged()

Called when the ActualLocation property was changed.

Declaration
protected virtual void OnActualLocationChanged()
| Edit this page View Source

OnActualSizeChanged()

Called when the ActualLocation property was changed.

Declaration
protected virtual void OnActualSizeChanged()
| Edit this page View Source

OnBoundaryChanged()

Called when the Boundary property was changed.

Declaration
protected virtual void OnBoundaryChanged()
| Edit this page View Source

OnLocationChanged()

Called when the Location property was changed.

Declaration
protected virtual void OnLocationChanged()
| Edit this page View Source

OnRotationChanged()

Called when the Rotation property was changed.

Declaration
protected virtual void OnRotationChanged()
| Edit this page View Source

OnScaleChanged()

Called when the Scale property was changed.

Declaration
protected virtual void OnScaleChanged()
| Edit this page View Source

OnSizeChanged()

Called when the Size property was changed.

Declaration
protected virtual void OnSizeChanged()
| Edit this page View Source

UpdateActualPlaceableData()

Updates the ActualSize, ActualLocation and Boundary based on the Size, Scale and Rotation.

Declaration
protected virtual void UpdateActualPlaceableData()

Events

| Edit this page View Source

ActualLocationChanged

Occurs when the ActualLocation property was changed.

Declaration
public event EventHandler<EventArgs>? ActualLocationChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

ActualSizeChanged

Occurs when the ActualSize property was changed.

Declaration
public event EventHandler<EventArgs>? ActualSizeChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

BoundaryChanged

Occurs when the Boundary property was changed.

Declaration
public event EventHandler<EventArgs>? BoundaryChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

LocationChanged

Occurs when the Location property was changed.

Declaration
public event EventHandler<EventArgs>? LocationChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

RotationChanged

Occurs when the Rotation property was changed.

Declaration
public event EventHandler<EventArgs>? RotationChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

ScaleChanged

Occurs when the Scale property was changed.

Declaration
public event EventHandler<EventArgs>? ScaleChanged
Event Type
Type Description
EventHandler<EventArgs>
| Edit this page View Source

SizeChanged

Occurs when the Size property was changed.

Declaration
public event EventHandler<EventArgs>? SizeChanged
Event Type
Type Description
EventHandler<EventArgs>

Implements

IBindable
INotifyPropertyChanged
IPlaceable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX