LMMS
Loading...
Searching...
No Matches
_LV2UI_Idle_Interface Struct Reference

#include <ui.h>

Public Attributes

int(* idle )(LV2UI_Handle ui)

Detailed Description

UI Idle Interface (LV2_UI__idleInterface)

UIs can provide this interface to have an idle() callback called by the host rapidly to update the UI.

Member Data Documentation

◆ idle

int(* _LV2UI_Idle_Interface::idle)(LV2UI_Handle ui)

Run a single iteration of the UI's idle loop.

This will be called rapidly in the UI thread at a rate appropriate for a toolkit main loop. There are no precise timing guarantees, but the host should attempt to call idle() at a high enough rate for smooth animation, at least 30Hz.

Returns
non-zero if the UI has been closed, in which case the host should stop calling idle(), and can either completely destroy the UI, or re-show it and resume calling idle().

The documentation for this struct was generated from the following files: