mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Add a utility.make_rect_ie_u32 method
This commit is contained in:
1 parent
92a8bc4641
commit
52feb10ad3
14 files changed
+639
-71
No files matched your search
@@ -81,6 +81,10 @@ var Types = []string{
|
||||
"bool",
|
||||
"utility",
|
||||
|
||||
"range_ii_u32",
|
||||
"range_ie_u32",
|
||||
"range_ii_u64",
|
||||
"range_ie_u64",
|
||||
"rect_ie_u32",
|
||||
"rect_ii_u32",
|
||||
|
||||
@@ -112,6 +116,17 @@ var Funcs = []string{
|
||||
"u64.max(x u64)(ret u64)",
|
||||
"u64.min(x u64)(ret u64)",
|
||||
|
||||
// ---- utility
|
||||
|
||||
"utility.make_range_ii_u32(min_inclusive u32, max_inclusive u32)(ret range_ii_u32)",
|
||||
"utility.make_range_ie_u32(min_inclusive u32, max_exclusive u32)(ret range_ie_u32)",
|
||||
"utility.make_range_ii_u64(min_inclusive u64, max_inclusive u64)(ret range_ii_u64)",
|
||||
"utility.make_range_ie_u64(min_inclusive u64, max_exclusive u64)(ret range_ie_u64)",
|
||||
"utility.make_rect_ii_u32(min_inclusive_x u32, min_inclusive_y u32," +
|
||||
"max_inclusive_x u32, max_inclusive_y u32)(ret rect_ii_u32)",
|
||||
"utility.make_rect_ie_u32(min_inclusive_x u32, min_inclusive_y u32," +
|
||||
"max_exclusive_x u32, max_exclusive_y u32)(ret rect_ie_u32)",
|
||||
|
||||
// ---- rect_ie_u32
|
||||
|
||||
"rect_ie_u32.set_min_inclusive_x!(x u32)()",
|
||||
|
||||
+12
-4
@@ -49,8 +49,12 @@ var (
|
||||
typeExprBool = a.NewTypeExpr(0, t.IDBase, t.IDBool, nil, nil, nil)
|
||||
typeExprUtility = a.NewTypeExpr(0, t.IDBase, t.IDUtility, nil, nil, nil)
|
||||
|
||||
typeExprRectIEU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIEU32, nil, nil, nil)
|
||||
typeExprRectIIU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIIU32, nil, nil, nil)
|
||||
typeExprRangeIEU32 = a.NewTypeExpr(0, t.IDBase, t.IDRangeIEU32, nil, nil, nil)
|
||||
typeExprRangeIIU32 = a.NewTypeExpr(0, t.IDBase, t.IDRangeIIU32, nil, nil, nil)
|
||||
typeExprRangeIEU64 = a.NewTypeExpr(0, t.IDBase, t.IDRangeIEU64, nil, nil, nil)
|
||||
typeExprRangeIIU64 = a.NewTypeExpr(0, t.IDBase, t.IDRangeIIU64, nil, nil, nil)
|
||||
typeExprRectIEU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIEU32, nil, nil, nil)
|
||||
typeExprRectIIU32 = a.NewTypeExpr(0, t.IDBase, t.IDRectIIU32, nil, nil, nil)
|
||||
|
||||
typeExprImageBuffer = a.NewTypeExpr(0, t.IDBase, t.IDImageBuffer, nil, nil, nil)
|
||||
typeExprImageConfig = a.NewTypeExpr(0, t.IDBase, t.IDImageConfig, nil, nil, nil)
|
||||
@@ -75,8 +79,12 @@ var builtInTypeMap = typeMap{
|
||||
t.IDBool: typeExprBool,
|
||||
t.IDUtility: typeExprUtility,
|
||||
|
||||
t.IDRectIEU32: typeExprRectIEU32,
|
||||
t.IDRectIIU32: typeExprRectIIU32,
|
||||
t.IDRangeIEU32: typeExprRangeIEU32,
|
||||
t.IDRangeIIU32: typeExprRangeIIU32,
|
||||
t.IDRangeIEU64: typeExprRangeIEU64,
|
||||
t.IDRangeIIU64: typeExprRangeIIU64,
|
||||
t.IDRectIEU32: typeExprRectIEU32,
|
||||
t.IDRectIIU32: typeExprRectIIU32,
|
||||
|
||||
t.IDImageBuffer: typeExprImageBuffer,
|
||||
t.IDImageConfig: typeExprImageConfig,
|
||||
|
||||
+12
-4
@@ -399,8 +399,12 @@ const (
|
||||
IDBool = ID(0x101)
|
||||
IDUtility = ID(0x102)
|
||||
|
||||
IDRectIEU32 = ID(0x108)
|
||||
IDRectIIU32 = ID(0x109)
|
||||
IDRangeIEU32 = ID(0x108)
|
||||
IDRangeIIU32 = ID(0x109)
|
||||
IDRangeIEU64 = ID(0x10A)
|
||||
IDRangeIIU64 = ID(0x10B)
|
||||
IDRectIEU32 = ID(0x10C)
|
||||
IDRectIIU32 = ID(0x10D)
|
||||
|
||||
IDImageBuffer = ID(0x110)
|
||||
IDImageConfig = ID(0x111)
|
||||
@@ -627,8 +631,12 @@ var builtInsByID = [nBuiltInIDs]string{
|
||||
IDBool: "bool",
|
||||
IDUtility: "utility",
|
||||
|
||||
IDRectIEU32: "rect_ie_u32",
|
||||
IDRectIIU32: "rect_ii_u32",
|
||||
IDRangeIEU32: "range_ie_u32",
|
||||
IDRangeIIU32: "range_ii_u32",
|
||||
IDRangeIEU64: "range_ie_u64",
|
||||
IDRangeIIU64: "range_ii_u64",
|
||||
IDRectIEU32: "rect_ie_u32",
|
||||
IDRectIIU32: "rect_ii_u32",
|
||||
|
||||
IDImageBuffer: "image_buffer",
|
||||
IDImageConfig: "image_config",
|
||||
|
||||
Reference in new issue
Block a user