Expand description
A safe Rust wrapper for Ultralight
library.
Ultralight
is a library for rendering web content using the GPU, it allows
easy integration into games and other applications.
There are two options to use the library:
- Using the
App
struct, which is a managed application that allows to createWindow
s that can contain multipleOverlay
s, you can control the position and size of theOverlay
s, and the innerView
s. - The other option is using the
Renderer
directly, in that case, if you want to have GPU rendering in your application you need to supply a customGpuDriver
inplatform::set_gpu_driver
.
This library also contain a custom glium
GpuDriver
implementation that can be used for easier integration.
Re-exports§
pub use app::App;
appcore_linked
orloaded
pub use config::Config;
pub use gpu_driver::GpuDriver;
pub use overlay::Overlay;
appcore_linked
orloaded
pub use rect::Rect;
pub use renderer::Renderer;
pub use renderer::Session;
pub use surface::Surface;
pub use view::View;
pub use window::Window;
appcore_linked
orloaded
Modules§
- app
appcore_linked
orloaded
- An
App
component to create GUI applications withUltralight
. - bitmap
- Bitmap container to hold raw pixels data.
- config
- The configuration of the
Renderer
struct. - error
- event
- Events that can be fired in
View
s. - gpu_
driver - Ultralight custom gpu driver.
- image_
source - User-defined image source to display custom images on a web-page.
- javascript
- JavaScriptCore bindings for Ultralight.
- key_
code - overlay
appcore_linked
orloaded
- Web-content overlay. Displays a web-page within an area of the main window.
- platform
- Platform functions to configure
Ultralight
and provide user-defined implementations for various platform operations. - rect
- A container for Rectangle structure.
- renderer
- The
Renderer
manages allView
s and coordinates painting, network requests, and event dispatch - surface
- Offscreen pixel buffer surface.
- view
- The View is a component used to load and display web content.
- window
appcore_linked
orloaded
Window
to display web content in anApp
.