Skip to content

Nevu сobject

NevuСobject

The fundamental base cdef class for all UI components. Provides core logic for parameters, relative scaling, and caching.

Methods

Name Kwargs Description
get_param_value / set_param_value name, [value] manages dynamic parameters (NvParam).
get_nvrect None returns the bounding rectangle (NvRect) of the object.
relx / rely / relm int / float scales values relative to the object's dimensions.
rel NvVector2 scales NvVector2 relative to the object's dimensions.
clear_surfaces None clears cached textures and borders. Recommended for visual updates.
clear_all None clears the entire cache. Warning: may cause bugs.
set_coordinates coordinates: NvVector2 updates the object's position.

Getters

Name ReturnType Description
coordinates NvVector2 local position relative to parent.
absolute_coordinates NvVector2 global position on the screen.
size NvVector2 width and height of the object.
cache Cache the internal caching system object.
booted bool True if the object has been fully initialized.

Use case

...#Not provided

Created with GGen v1.1.0 for nevu_ui v0.7.5