Show / Hide Table of Contents

Class Rectangle

Represents a drawable rectangle

Inheritance
Object
LazyAttachableObject
Dx2DObject
Rectangle
Implements
IDrawable
Inherited Members
Dx2DObject.Color
Dx2DObject.Position
Dx2DObject.PostGUI
Dx2DObject.Update(RootElement, OnUpdateEventArgs)
LazyAttachableObject.toAttached
LazyAttachableObject.Offset
LazyAttachableObject.ToAttached
LazyAttachableObject.IsAttached
LazyAttachableObject.AttachTo(PhysicalElement, Matrix4x4)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Vector3)
LazyAttachableObject.AttachTo(PhysicalElement, Vector3, Quaternion)
LazyAttachableObject.AttachTo(PhysicalElement)
LazyAttachableObject.Detach()
LazyAttachableObject.OnAttach()
LazyAttachableObject.OnDetach()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Rectangle : Dx2DObject, IDrawable

Constructors

| Improve this Doc View Source

Rectangle(Vector2, Vector2)

Creates a white rectangle

Declaration
public Rectangle(Vector2 position, Vector2 dimensions)
Parameters
Type Name Description
Vector2 position
Vector2 dimensions
| Improve this Doc View Source

Rectangle(Vector2, Vector2, Color, Boolean, Boolean)

Declaration
public Rectangle(Vector2 position, Vector2 dimensions, Color color, bool postGUI = false, bool subPixelPositioning = false)
Parameters
Type Name Description
Vector2 position
Vector2 dimensions
Color color
Boolean postGUI
Boolean subPixelPositioning

Properties

| Improve this Doc View Source

Dimensions

The width and the height of this rectangle

Declaration
public Vector2 Dimensions { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

SubPixelPositioning

A bool representing whether the rectangle can be positioned sub-pixel-ly.

Declaration
public bool SubPixelPositioning { get; set; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Draw(RootElement, OnRenderEventArgs)

Draw this rectangle

Declaration
public bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Type Name Description
RootElement source
OnRenderEventArgs eventArgs
Returns
Type Description
Boolean

Implements

IDrawable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX