示例#1
0
文件: asset.cs 项目: smorey2/h3ml
 public asset_paint(asset_paint val)
 {
     asset      = val.asset;
     attributes = val.attributes;
     baseurl    = val.baseurl;
     color      = val.color;
     clip_box   = val.clip_box;
     origin_box = val.origin_box;
     border_box = val.border_box;
     asset_size = val.asset_size;
     position_x = val.position_x;
     position_y = val.position_y;
     position_z = val.position_z; //:h3ml
     is_root    = val.is_root;
 }
示例#2
0
        public void clear() => x = y = z = width = height = depth = 0; //:h3ml

        public void assignTo(size sz)
        {
            width  = sz.width;
            height = sz.height;
            depth  = sz.depth; //:h3ml
        }
示例#3
0
 public void get_image_size(string src, string baseurl, out size sz)
 {
     sz = default(size);
 }
示例#4
0
 public void get_asset_size(string src, string baseurl, Dictionary <string, string> attributes, out size sz)
 {
     sz = default(size);
 }
示例#5
0
文件: el_text.cs 项目: smorey2/h3ml
 public override void get_content_size(out size sz, int max_width) => sz = _size;