Document the canvas and div

This commit is contained in:
Mikayla 2024-01-20 20:07:25 -08:00
parent a44aae9e91
commit bf878b8257
No known key found for this signature in database
4 changed files with 366 additions and 55 deletions

View file

@ -22,7 +22,7 @@
//! # Implementing your own elements
//!
//! Elements are intended to be the low level, imperative API to GPUI. They are responsible for upholding,
//! or breaking, GPUI's features as they deem nescessary. As an example, most GPUI elements are expected
//! or breaking, GPUI's features as they deem necessary. As an example, most GPUI elements are expected
//! to stay in the bounds that their parent element gives them. But with [`WindowContext::break_content_mask`],
//! you can ignore this restriction and paint anywhere inside of the window's bounds. This is useful for overlays
//! and popups and anything else that shows up 'on top' of other elements.