44 lines
1.7 KiB
C#
44 lines
1.7 KiB
C#
using System;
|
|
|
|
namespace UnityEngine
|
|
{
|
|
// Token: 0x02000280 RID: 640
|
|
internal interface IStylePainter
|
|
{
|
|
// Token: 0x06002BFA RID: 11258
|
|
void DrawRect(Rect screenRect, Color color, float borderWidth = 0f, float borderRadius = 0f);
|
|
|
|
// Token: 0x06002BFB RID: 11259
|
|
void DrawTexture(Rect screenRect, Texture texture, Color color, ScaleMode scaleMode = ScaleMode.StretchToFill, float borderWidth = 0f, float borderRadius = 0f, int leftBorder = 0, int rightBorder = 0, int topBorder = 0, int bottomBorder = 0);
|
|
|
|
// Token: 0x06002BFC RID: 11260
|
|
void DrawText(Rect screenRect, string text, Font font, int fontSize, FontStyle fontStyle, Color fontColor, TextAnchor anchor, bool wordWrap, float wordWrapWidth, bool richText, TextClipping clipping);
|
|
|
|
// Token: 0x17000A09 RID: 2569
|
|
// (get) Token: 0x06002BFD RID: 11261
|
|
// (set) Token: 0x06002BFE RID: 11262
|
|
Rect currentWorldClip { get; set; }
|
|
|
|
// Token: 0x17000A0A RID: 2570
|
|
// (get) Token: 0x06002BFF RID: 11263
|
|
// (set) Token: 0x06002C00 RID: 11264
|
|
Vector2 mousePosition { get; set; }
|
|
|
|
// Token: 0x17000A0B RID: 2571
|
|
// (get) Token: 0x06002C01 RID: 11265
|
|
// (set) Token: 0x06002C02 RID: 11266
|
|
Event repaintEvent { get; set; }
|
|
|
|
// Token: 0x17000A0C RID: 2572
|
|
// (get) Token: 0x06002C03 RID: 11267
|
|
// (set) Token: 0x06002C04 RID: 11268
|
|
float opacity { get; set; }
|
|
|
|
// Token: 0x06002C05 RID: 11269
|
|
float ComputeTextWidth(string text, Font font, int fontSize, FontStyle fontStyle, TextAnchor anchor, bool richText);
|
|
|
|
// Token: 0x06002C06 RID: 11270
|
|
float ComputeTextHeight(string text, float width, bool wordWrap, Font font, int fontSize, FontStyle fontStyle, TextAnchor anchor, bool richText);
|
|
}
|
|
}
|