Show / Hide Table of Contents

Class Circle

Represents a drawable circle

Inheritance
Object
LazyAttachableObject
Dx2DObject
Circle
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 Circle : Dx2DObject, IDrawable

Constructors

| Improve this Doc View Source

Circle(Vector2, Single)

Creates a white circle

Declaration
public Circle(Vector2 position, float radius)
Parameters
Type Name Description
Vector2 position
Single radius
| Improve this Doc View Source

Circle(Vector2, Single, Color)

Creates a circle where the centercolor is the same as the outer color

Declaration
public Circle(Vector2 position, float radius, Color color)
Parameters
Type Name Description
Vector2 position
Single radius
Color color
| Improve this Doc View Source

Circle(Vector2, Single, Color, Color, Single, Single, Int32, Int32, Boolean)

Create a circle

Declaration
public Circle(Vector2 position, float radius, Color color, Color centerColor, float startAngle = 0F, float stopAngle = 360F, int segments = 32, int ratio = 1, bool postGUI = false)
Parameters
Type Name Description
Vector2 position
Single radius
Color color
Color centerColor
Single startAngle
Single stopAngle
Int32 segments
Int32 ratio
Boolean postGUI

Properties

| Improve this Doc View Source

CenterColor

The color that the center of this circle has

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

Radius

The radius of this circle

Declaration
public float Radius { get; set; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

Draw(RootElement, OnRenderEventArgs)

Draw this circle

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