![]() |
|
String drawing class for general use It's easier to use with the Graphics.DrawString family of methods, so it's usually recommended to use them. More...
Public Types | |
| enum | HorizontalAlignment { Left , Right , Center } |
| Parallel setting More... | |
| enum | VerticalAlignment { Top , Bottom , Center } |
| Vertical setting More... | |
Public Member Functions | |
| TextDrawer (int fontId=0) | |
| void | Update () |
| void | DrawStringSoloColor (string text, Vector2 position, Color color, int zOrder=0) |
| void | DrawStringSoloColor (string text, Vector2 position, Color color, float scale, int zOrder=0) |
| void | DrawString (string text, Vector2 position, Color color, float scale, int zOrder, bool bold, bool italic, bool useOutline) |
| void | DrawStringSoloColor (string text, Vector2 position, Color color, bool useClip, float scale=1.0f, int zOrder=0) |
| void | DrawStringSoloColor (string text, Vector2 position, Color color, bool useClip, float scale, int zOrder, bool bold, bool italic) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, int zOrder=0) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, float scale, int zOrder=0) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, float scale, int zOrder, bool bold, bool italic) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale=1.0f, int zOrder=0) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder, bool bold, bool italic) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, int width, HorizontalAlignment alignment, Color color, float scale=1.0f) |
| void | DrawStringSoloColor (string text, Vector2 position, int width, HorizontalAlignment alignment, Color color, float scale=1.0f) |
| void | DrawStringSoloColor (string text, Vector2 position, int height, VerticalAlignment alignment, Color color, float scale=1.0f) |
| void | DrawStringSoloColor (string text, Vector2 position, int height, VerticalAlignment alignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawStringSoloColor (string text, Vector2 position, HorizontalAlignment alignment, Color color) |
| void | DrawStringSoloColor (string text, Vector2 position, int width, HorizontalAlignment alignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawStringSoloColor (string text, Vector2 position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f, int zOrder=0) |
| void | DrawStringSoloColor (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale, bool bold, bool italic) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawStringSoloColor (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale, bool bold, bool italic) |
| void | DrawStringSoloColor (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, Color color, int zOrder=0) |
| void | DrawString (string text, Vector2 position, Color color, bool useClip, float scale=1.0f, int zOrder=0) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, int zOrder=0) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, float scale, int zOrder=0) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scale, int zOrder=0) |
| void | DrawString (string text, Vector2 position, HorizontalAlignment alignment, Color color) |
| void | DrawString (string text, Vector2 position, VerticalAlignment alignment, Color color) |
| void | DrawString (string text, Vector2 position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, int width, HorizontalAlignment alignment, Color color, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, int width, HorizontalAlignment alignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, int height, VerticalAlignment alignment, Color color, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, int height, VerticalAlignment alignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale=1.0f) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale=1.0f) |
| void | DrawString (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, Color color, float scale, int zOrder, bool bold, bool italic, bool useOutline) |
| void | DrawString (string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale, int zOrder, bool bold, bool italic, bool useOutline) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, float scale, int zOrder, bool bold, bool italic, bool useOutline) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Vector2 drawAreaSize, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, Color color, bool useClip, float scale, int zOrder, bool bold, bool italic, bool useOutline) |
| void | DrawString (SharpKmyGfx.Font font, string text, Vector2 position, Color color, bool useClip, float scaleX, float scaleY, int zOrder, bool bold, bool italic, bool useOutline) |
| Vector2 | MeasureString (string text) |
| Vector2 | MeasureString (SharpKmyGfx.Font font, string text) |
| string[] | SplitString (string text, int width, float scale=1.0f) |
String drawing class for general use It's easier to use with the Graphics.DrawString family of methods, so it's usually recommended to use them.
| Yukar.Engine.TextDrawer.TextDrawer | ( | int | fontId = 0 | ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scaleX, | ||
| float | scaleY, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f, |
||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| HorizontalAlignment | alignment, | ||
| Color | color | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| int | height, | ||
| VerticalAlignment | alignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| int | height, | ||
| VerticalAlignment | alignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| int | width, | ||
| HorizontalAlignment | alignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| int | width, | ||
| HorizontalAlignment | alignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic, | ||
| bool | useOutline | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawString | ( | string | text, |
| Vector2 | position, | ||
| VerticalAlignment | alignment, | ||
| Color | color | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f, |
||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Color | color, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| int | width, | ||
| HorizontalAlignment | alignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale, | ||
| bool | bold, | ||
| bool | italic | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale, | ||
| bool | bold, | ||
| bool | italic | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | SharpKmyGfx.Font | font, |
| string | text, | ||
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale, | ||
| int | zOrder, | ||
| bool | bold, | ||
| bool | italic | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f, |
||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| float | scale, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Color | color, | ||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| HorizontalAlignment | alignment, | ||
| Color | color | ||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f, |
||
| int | zOrder = 0 |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| int | height, | ||
| VerticalAlignment | alignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| int | height, | ||
| VerticalAlignment | alignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| int | width, | ||
| HorizontalAlignment | alignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| int | width, | ||
| HorizontalAlignment | alignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| bool | useClip, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.DrawStringSoloColor | ( | string | text, |
| Vector2 | position, | ||
| Vector2 | drawAreaSize, | ||
| HorizontalAlignment | horizontalAlignment, | ||
| VerticalAlignment | verticalAlignment, | ||
| Color | color, | ||
| float | scale = 1.0f |
||
| ) |
| Vector2 Yukar.Engine.TextDrawer.MeasureString | ( | SharpKmyGfx.Font | font, |
| string | text | ||
| ) |
| Vector2 Yukar.Engine.TextDrawer.MeasureString | ( | string | text | ) |
| string[] Yukar.Engine.TextDrawer.SplitString | ( | string | text, |
| int | width, | ||
| float | scale = 1.0f |
||
| ) |
| void Yukar.Engine.TextDrawer.Update | ( | ) |