Expand description
Re-exports§
Macros§
- asset
- Include asset bytes at compile time
- assets
- Include asset bytes at compile time from an absolute path
- assets_
from_ manifest_ dir - Include asset bytes at compile time but load the path from the manifest directory
- items_
counter - Count the number of items inside a macro
- load_
cow - Load strings within a Clone-on-Write with a
'static
lifetime styles - load_
strs - Load static strings
- static_
str - Include asset in UTF-8 format at compile time
Structs§
- Active
AppEnv - Environment variables set when the app is initialized
- AppEnvironment
- The environment the app is running on. This includes the Operating System and other supported environment variables
- Asset
File - An asset to be used in the app
- Asset
File Loader - Default resource file size is 1MiB
- Color
Palette - This is the color palette of the app
- Context
Menu - This provides the context menu builder
- Logging
- Custom logging handler for Puppeteer apps.
Text filtering can be done by searching for
[app_title]»
- Puppeteer
App - This struct us used to build your app
- Shell
- The Shell of the app contains all the imports like fonts, styles and scripts
- Static
Asset - An asset that has a static lifetime
- Title
Bar - This is helper function to create a title bar for the app
- Title
BarCSS - Create CSS for the title bar based on the color palette
Enums§
- CpuArchitecture
- What is the architecture of the CPU that the app is running on
- DynLib
Extension - The extension used by the shared libraries on the Operating System the app is running on
- DynLib
Prefix - The extension used by the shared libraries on the Operating System the app is running on.
- Modify
View - Used to modify the view which can be a WebView
- OsFamily
- Check if operating system is Unix-like or Microsoft Windows based
- OsType
- The type of operating system the Window is running on
- Puppeteer
Error - The error type for Puppeteer
- Theme
- Whether it is a dark or light theme or whether it will respect system settings
- UiEvent
- Event Handler for Puppeteer
- Window
Resize - An window resize operation
Constants§
- BUFFER_
CAPACITY - The buffer capacity of a bufreader
- DEFAULT_
RESOURCE_ SIZE - The default resource size set to avoid high memory usage and data
- DEFAULT_
WINDOW_ ACTIONS - The default minimize, maximize and close buttons
- DEFAULT_
WINDOW_ ACTIONS_ SCRIPT - The default styles for the default window actions as defined by DEFAULT_WINDOW_ACTIONS const
- DEFAULT_
WINDOW_ ACTIONS_ STYLE - The default styles for the default window actions as defined by DEFAULT_WINDOW_ACTIONS const
- LOGGING_
SYMBOL - Name that can be used to quickly identify all filters of the running app in logs.
- PUPPETEER_
APP_ ELEMENT - The HTML element where all the app body will be injected
- TITLE_
BAR_ SCRIPT - The default script to use when a drag event is done on the title bar
Traits§
- Asset
Properties - Methods to detect file type and convert to encoding formats like base64
- Puppeteer
- This trait is used to perform UI operations like parsing the IPC messages and generating content to be displayed
- Static
Asset Properties - Methods to detect file type and convert to encoding formats like base64
- UiPaint
- Trait that ensures a type can be converted to code that can be rendered into current view
Type Aliases§
- CowStr
- A type that defines [Cow<’p, str>] for easier reuse
- JsCallback
- The callback used to modify a node based on the result of computation of it’s text content
- Puppeteer
Result - A wrapper to
Result<T, PuppeteerError>
- Static
CowStr - A type that defines [Cow<’static, str>] for easier reuse
- Static
Str - A type of &’static str