Show / Hide Table of Contents

Class DrawCallGlyph

Draws a glyph to the active SharedSpriteBatch.

Inheritance
object
DrawCallGlyph
Implements
IDrawCall
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.DrawCalls
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class DrawCallGlyph : IDrawCall

Constructors

DrawCallGlyph(ColoredGlyphBase, Rectangle, IFont, bool)

Creates a new instance of this draw call.

Declaration
public DrawCallGlyph(ColoredGlyphBase cell, Rectangle targetRect, IFont font, bool drawBackground)
Parameters
Type Name Description
ColoredGlyphBase cell

The glyph to be drawn.

Rectangle targetRect

Where on the SharedSpriteBatch the glyph should be drawn.

IFont font

The font to use when drawing the glyph.

bool drawBackground

When true, draws the Background color for the glyph; otherwise false.

Fields

Cell

The glyph to be drawn.

Declaration
public ColoredGlyphBase Cell
Field Value
Type Description
ColoredGlyphBase

DrawBackground

When true, draws the Background color for the glyph; otherwise false.

Declaration
public bool DrawBackground
Field Value
Type Description
bool

Font

The font to use when drawing the glyph.

Declaration
public IFont Font
Field Value
Type Description
IFont

TargetRect

Where on the SharedSpriteBatch the glyph should be drawn.

Declaration
public Rectangle TargetRect
Field Value
Type Description
Rectangle

Methods

Draw()

Draws an object.

Declaration
public void Draw()

Implements

IDrawCall

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX