ColorBorderTexture
ColorBorderTexture 仅在矩形周围绘制彩色边框,不进行填充。正的 border 值在元素边界外部绘制;负值在内部绘制。
注册名:color_border_texture
继承自 TransformTexture — 支持 rotate()、scale()、transform()。
用法
LSS
字段
| 名称 | 类型 | 描述 |
|---|---|---|
border |
int |
边框粗细(像素)。正值 = 外部,负值 = 内部。 |
color |
int |
打包的 ARGB 颜色值。 |
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
setBorder(int) |
ColorBorderTexture |
设置边框粗细。 |
setColor(int) |
ColorBorderTexture |
设置打包的 ARGB 颜色值。 |
copy() |
ColorBorderTexture |
返回深拷贝。 |
interpolate(IGuiTexture, float) |
IGuiTexture |
将边框和颜色向另一个 ColorBorderTexture 混合。 |