graph TD
subgraph engine["Gosub Engine"]
Engine["Engine"] --> ZoneManager["ZoneManager"]
ProcessRenderer["Global Renderer"]
end
subgraph za["Zone A"]
ZoneManager --> ZoneA["Zone A"]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! Type aliases for deeply nested associated types. | |
| //! | |
| //! The engine is parameterised over a single `C: ModuleConfiguration` type that carries all | |
| //! concrete implementations (CSS engine, document, layouter, render backend, …) as associated | |
| //! types. Because those implementations are themselves traits with their own associated types, | |
| //! reaching a leaf type at a call site requires chains like: | |
| //! | |
| //! ```text | |
| //! <<C as HasLayouter>::LayoutTree as LayoutTree<C>>::NodeId | |
| //! ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! proof-of-concept.rs | |
| //! | |
| //! Three design ideas explored together in a single compilable file: | |
| //! | |
| //! 1. Accessor-based Document trait — the engine holds NodeId values and | |
| //! asks the document questions; no &Node | |
| //! ever escapes the interface boundary. | |
| //! Because Document has no associated | |
| //! types, the *Ext shortcut traits | |
| //! (HasDocumentExt, HasCssSystemExt, …) |
This document describes the structure of the Gosub API.
First, we have a GosubEngine. We instantiate this only once in our application/useragent and is capable of dealing
with multiple pages that can be rendered and used. We can send a configuration to the GosubEngine to set up the
engine and to define certain behaviors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "wgpu-test" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| vello = "0.4.0" | |
| winit = "0.30.8" | |
| pollster = "0.4.0" | |
| image = "0.25.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::path::PathBuf; | |
| use std::sync::{Arc, Mutex}; | |
| use anyhow::anyhow; | |
| use fontconfig::{Fontconfig, Pattern}; | |
| use freetype::{Library, Face}; | |
| use log::info; | |
| // We need to deal with the following: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate nom; | |
| use nom::{ | |
| branch::alt, | |
| bytes::complete::tag, | |
| character::complete::{char, multispace0}, | |
| combinator::{map, recognize}, | |
| multi::separated_list1, | |
| sequence::delimited, | |
| IResult, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use fork::{fork, Fork}; | |
| use std::{process, thread}; | |
| use std::thread::sleep; | |
| use anyhow::{anyhow, Error}; | |
| use ipc_channel::ipc::{IpcReceiver, IpcSelectionResult}; | |
| use ipc_channel::ipc::{self, IpcReceiverSet, IpcSender}; | |
| use serde::{Deserialize, Serialize}; | |
| use rand::Rng; | |
| const MAX_PRIORITY: i8 = 127; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use libpep::*; | |
| use libpep::simple::*; | |
| use rand_core::OsRng; | |
| use std::{fmt::Write, num::ParseIntError}; | |
| use std::cell::RefCell; | |
| use std::collections::HashMap; | |
| use std::ops::Mul; | |
| use std::rc::Rc; | |
| pub fn decode_hex(s: &str) -> Result<Vec<u8>, ParseIntError> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Stylesheet (5)] | |
| [AtRule] name: media | |
| [MediaQueryList (2)] | |
| [MediaQuery] modifier: only media_type: screen | |
| [Condition (1)] | |
| [Feature] kind: Media name: -webkit-min-device-pixel-ratio | |
| [Number] 1.25 | |
| [MediaQuery] modifier: only media_type: screen | |
| [Condition (1)] | |
| [Feature] kind: Media name: min-resolution |
NewerOlder