Table of Contents

Interface IDrawable

Namespace
Microsoft.Xna.Framework
Assembly
MonoGame.Framework.dll

Interface for drawable entities.

public interface IDrawable

Properties

DrawOrder

The draw order of this IDrawable relative to other IDrawable instances.

int DrawOrder { get; }

Property Value

int

Visible

Indicates if Draw(GameTime) will be called.

bool Visible { get; }

Property Value

bool

Methods

Draw(GameTime)

Called when this IDrawable should draw itself.

void Draw(GameTime gameTime)

Parameters

gameTime GameTime

The elapsed time since the last call to Draw(GameTime).

Events

DrawOrderChanged

Raised when DrawOrder changed.

event EventHandler<EventArgs> DrawOrderChanged

Event Type

EventHandler<EventArgs>

VisibleChanged

Raised when Visible changed.

event EventHandler<EventArgs> VisibleChanged

Event Type

EventHandler<EventArgs>