S or /

SourceModule debug_text

This is an example of how to create a plugin for egui.

A plugin is a struct that implements the Plugin trait and holds some state. The plugin is registered with the Context using Context.add_plugin to get callbacks on certain events (Plugin.on_begin_pass, Plugin.on_end_pass).

Classes§

Functions§

print

Print this text next to the cursor at the end of the pass.

SourceFunction print§

from egui import print
def print(ctx: Context, text: Any) -> None

Print this text next to the cursor at the end of the pass.

If you call this multiple times, the text will be appended.

This only works if compiled with debug_assertions.

Constants§

Re-exports§