您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
75 行
1.4 KiB
75 行
1.4 KiB
using UIWidgets.painting;
|
|
using UIWidgets.ui.txt;
|
|
using UnityEngine;
|
|
|
|
namespace UIWidgets.ui {
|
|
public interface DrawCmd {
|
|
}
|
|
|
|
public class DrawPloygon4 : DrawCmd {
|
|
public Offset[] points;
|
|
public Paint paint;
|
|
}
|
|
|
|
public class DrawRect : DrawCmd {
|
|
public Rect rect;
|
|
public BorderWidth borderWidth;
|
|
public BorderRadius borderRadius;
|
|
public Paint paint;
|
|
}
|
|
|
|
public class DrawRectShadow : DrawCmd {
|
|
public Rect rect;
|
|
public Paint paint;
|
|
}
|
|
|
|
public class DrawPicture : DrawCmd {
|
|
public Picture picture;
|
|
}
|
|
|
|
public class DrawImageRect : DrawCmd {
|
|
public Paint paint;
|
|
public Image image;
|
|
public Rect src;
|
|
public Rect dst;
|
|
}
|
|
|
|
public class DrawConcat : DrawCmd {
|
|
public Matrix4x4 transform;
|
|
}
|
|
|
|
public class DrawSave : DrawCmd {
|
|
}
|
|
|
|
public class DrawSaveLayer : DrawCmd {
|
|
public Rect rect;
|
|
public Paint paint;
|
|
}
|
|
|
|
public class DrawRestore : DrawCmd {
|
|
}
|
|
|
|
public class DrawClipRect : DrawCmd {
|
|
public Rect rect;
|
|
}
|
|
|
|
public class DrawClipRRect : DrawCmd {
|
|
public RRect rrect;
|
|
}
|
|
|
|
public class DrawTextBlob : DrawCmd
|
|
{
|
|
public TextBlob textBlob;
|
|
public double x;
|
|
public double y;
|
|
}
|
|
|
|
public class DrawLine : DrawCmd
|
|
{
|
|
public Offset from;
|
|
public Offset to;
|
|
public Paint paint;
|
|
}
|
|
|
|
}
|
|
|