mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
fa8fec9830
commit
0f86c8d727
17 files changed
+842
-127
No files matched your search
@@ -75,6 +75,17 @@ type editorResource struct {
|
||||
composite string
|
||||
references []string
|
||||
subset *editorFontSubset
|
||||
states map[string]editorCompositeState
|
||||
draw *DrawParam
|
||||
}
|
||||
|
||||
// definition 获取独立定义资源的标识
|
||||
// 返回: string 复合资源或绘制参数标识
|
||||
func (r editorResource) definition() string {
|
||||
if r.draw != nil {
|
||||
return r.draw.ID
|
||||
}
|
||||
return r.composite
|
||||
}
|
||||
|
||||
// editorResourceKey 资源内容和字体集合索引
|
||||
|
||||
Reference in new issue
Block a user