Using libui Classes

Last updated 4 months ago

In most cases you don't have to use the libui library directly, because Vuido provides its own API and components to interface with that library.

However, there are situations where you have to directly use some classes from the libui library. You can import it in the following way:

import libui from 'libui-node'
const path = new libui.UiDrawPath( libui.fillMode.winding );

Alternatively, you can use the $libui property available in all Vuido components:

const path = new this.$libui.UiDrawPath( this.$libui.fillMode.winding );

For more information, see the libui-node documentation.