mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
Rename @image-url(..., 9slice(...)) to @image-url(..., nine-slice(...))
As per API review: - In the Rust and C++ API we use `set_nine_slice_edges` because the getter couldn't start with 9 - in english we spell number less than 10 with letters and this is a name
This commit is contained in:
parent
c588013530
commit
255dc59ef4
13 changed files with 62 additions and 62 deletions
|
|
@ -15,34 +15,34 @@ export component SuperSimple {
|
|||
property <image> i6: @image-url;
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i7: @image-url("foo", "bar");
|
||||
// ^error{Expected '9slice\(...\)' argument}
|
||||
// ^error{Expected 'nine-slice\(...\)' argument}
|
||||
property <image> i8: @image-url("foo", xyz(abc));
|
||||
// ^error{Expected '9slice\(...\)' argument}
|
||||
property <image> i9: @image-url("foo", 9slice(abc));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i10: @image-url("foo", 9slice(1 2 3));
|
||||
// ^error{Expected 1 or 2 or 4 numbers}
|
||||
property <image> i11: @image-url("foo", 9slice());
|
||||
// ^error{Expected 1 or 2 or 4 numbers}
|
||||
property <image> i12: @image-url("foo", 9slice(1 2 3 4 5));
|
||||
// ^error{Expected 'nine-slice\(...\)' argument}
|
||||
property <image> i9: @image-url("foo", nine-slice(abc));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i10: @image-url("foo", nine-slice(1 2 3));
|
||||
// ^error{Expected 1 or 2 or 4 numbers}
|
||||
property <image> i13: @image-url("foo", 9slice(1 2 foobar 4 5));
|
||||
property <image> i11: @image-url("foo", nine-slice());
|
||||
// ^error{Expected 1 or 2 or 4 numbers}
|
||||
property <image> i12: @image-url("foo", nine-slice(1 2 3 4 5));
|
||||
// ^error{Expected 1 or 2 or 4 numbers}
|
||||
property <image> i13: @image-url("foo", nine-slice(1 2 foobar 4 5));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i14: @image-url("foo", nine-slice);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i15: @image-url("foo", nine-slice,);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i16: @image-url("foo", nine-slice 42 42);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i17: @image-url("foo", nine-slice(1px)); // error reported later
|
||||
property <image> i18: @image-url("foo", nine-slice(1%)); // error reported later
|
||||
property <image> i19: @image-url("foo", nine-slice(1, 2));
|
||||
// ^error{Arguments of nine-slice need to be separated by spaces}
|
||||
property <image> i20: @image-url("foo", nine-slice(2 + 3 ));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i21: @image-url("foo", nine-slice(2 -3 ));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i22: @image-url("foo", nine-slice(-2));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i14: @image-url("foo", 9slice);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i15: @image-url("foo", 9slice,);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i16: @image-url("foo", 9slice 42 42);
|
||||
// ^error{Syntax error: expected '\('}
|
||||
property <image> i17: @image-url("foo", 9slice(1px)); // error reported later
|
||||
property <image> i18: @image-url("foo", 9slice(1%)); // error reported later
|
||||
property <image> i19: @image-url("foo", 9slice(1, 2));
|
||||
// ^error{Arguments of 9slice need to be separated by spaces}
|
||||
property <image> i20: @image-url("foo", 9slice(2 + 3 ));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i21: @image-url("foo", 9slice(2 -3 ));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i22: @image-url("foo", 9slice(-2));
|
||||
// ^error{Expected number literal or '\)'}
|
||||
property <image> i22: @image-url("foo", 9slice(123456789));
|
||||
property <image> i22: @image-url("foo", nine-slice(123456789));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue