stub checker does not approve of shared vectorshape properties
This commit is contained in:
parent
48ea81e2f1
commit
85bf3d074f
|
@ -80,9 +80,10 @@ vectorio_draw_protocol_impl_t vectorio_vector_shape_draw_protocol_impl = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//| x: int
|
// Stub checker does not approve of these shared properties.
|
||||||
//| """X position of the center point of the shape in the parent."""
|
// x: int
|
||||||
//|
|
// """X position of the center point of the shape in the parent."""
|
||||||
|
//
|
||||||
STATIC mp_obj_t vectorio_vector_shape_obj_get_x(mp_obj_t wrapper_shape) {
|
STATIC mp_obj_t vectorio_vector_shape_obj_get_x(mp_obj_t wrapper_shape) {
|
||||||
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
||||||
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
||||||
|
@ -111,9 +112,9 @@ const mp_obj_property_t vectorio_vector_shape_x_obj = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//| y: int
|
// y: int
|
||||||
//| """Y position of the center point of the shape in the parent."""
|
// """Y position of the center point of the shape in the parent."""
|
||||||
//|
|
//
|
||||||
STATIC mp_obj_t vectorio_vector_shape_obj_get_y(mp_obj_t wrapper_shape) {
|
STATIC mp_obj_t vectorio_vector_shape_obj_get_y(mp_obj_t wrapper_shape) {
|
||||||
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
||||||
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
||||||
|
@ -142,9 +143,9 @@ const mp_obj_property_t vectorio_vector_shape_y_obj = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//| pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
|
// pixel_shader: Union[displayio.ColorConverter, displayio.Palette]
|
||||||
//| """The pixel shader of the shape."""
|
// """The pixel shader of the shape."""
|
||||||
//|
|
//
|
||||||
STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t wrapper_shape) {
|
STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t wrapper_shape) {
|
||||||
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
// Relies on the fact that only vector_shape impl gets matched with a VectorShape.
|
||||||
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
const vectorio_draw_protocol_t *draw_protocol = mp_proto_get(MP_QSTR_protocol_draw, wrapper_shape);
|
||||||
|
|
Loading…
Reference in New Issue