Skip to content

The draw_rect() "width" argument has no effect when "filled" is "true" warning #1017

Closed
@yue4u

Description

@yue4u

draw_rect method requires width parameter even when setting filled to true which results the following warning being printed.

W 0:00:02.779   draw_rect: The draw_rect() "width" argument has no effect when "filled" is "true".
  <C++ Source>  scene/2d/canvas_item.cpp:756 @ draw_rect()

API Interface:

image

Example: https://github.com/yue4u/zf/blob/7c6b4c68e9ab4129386c06299e265242a605bf4d/crates/zf/src/ui/terminal.rs#L475

I did some search but couldn't find a way to disable this warning. Maybe set the type of width parameter to optional or passing width optionally on the library side can resolve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: bindingsComponent: GDNative bindings (mod api)quality-of-lifeNo new functionality, but improves ergonomics/internals

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions