ZIm/crates/gpui/examples
Jason Lee ead5a836a1
gpui: Add data table example (#24373)
Release Notes:

- N/A

As https://github.com/zed-industries/zed/discussions/24260 I mentioned
issue.

Make a complex data table example to test the text rendering
performance.

This example also can be an example to show how to build a large data
table.

```bash
cargo run -p gpui --example data_table
```

<img width="2004" alt="image"
src="https://github.com/user-attachments/assets/653771e5-ef08-4d76-97b9-90ea4b78be59"
/>

----

I will try to do some test. 

For example: With a threshold for the hold number of caches in
`FrameCache`, and only when the threshold is greater than a certain
number, some caches are released, or when a certain time has passed. I
am not sure if this is feasible.

This example is added to help us to test.
2025-02-07 11:54:34 -08:00
..
image Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
svg Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
animation.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
data_table.rs gpui: Add data table example (#24373) 2025-02-07 11:54:34 -08:00
gif_viewer.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
gradient.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
hello_world.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
image_loading.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
input.rs Implement character index for point (#23989) 2025-02-04 20:15:43 +00:00
opacity.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
ownership_post.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
painting.rs Revert "Revert recent anti-aliasing improvements (#24289)" and fix selection top right corner radius issue (#24342) 2025-02-06 11:03:23 +02:00
pattern.rs Revert "gpui & ui: Use shader for dashed dividers" (#23850) 2025-01-29 19:19:20 +00:00
set_menus.rs gpui: Update docs to reflect removal of View, ViewContext, WindowContext (#24008) 2025-01-31 11:40:42 -08:00
shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
text_layout.rs gpui: Fix text-align with nowrap mode (#24116) 2025-02-06 18:51:00 -08:00
text_wrapper.rs gpui: Add line_clamp to truncate text after a specified number of lines (#23058) 2025-01-29 22:14:24 +02:00
uniform_list.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
window.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
window_positioning.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
window_shadow.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00