Expand description
§Tilepad SDK
use tilepad_plugin_sdk::{Plugin, PluginSessionHandle, start_plugin, setup_tracing};
use tokio::task::LocalSet;
#[derive(Default)]
struct MyPlugin {}
impl Plugin for MyPlugin {
// TODO: Implement your desired methods
}
#[tokio::main(flavor = "current_thread")]
async fn main() {
setup_tracing();
let local_set = LocalSet::new();
let plugin = MyPlugin::default();
local_set.run_until(start_plugin(plugin)).await;
}
Re-exports§
pub use tracing;
pub use tracing_subscriber;
Structs§
- Deep
Link Context - Display
- Reference to an display that can be used to send messages
- Display
Context - Inspector
- Reference to an inspector window that can be used to send messages
- Inspector
Context - Plugin
Session Handle - Handle to send messages on behalf of the plugin
- Tile
Config - Tile
Icon Options - Tile
Interaction Context - Tile
Label - Tile
Model - Tile
Position
Enums§
Traits§
- Plugin
- Trait implemented by your plugin