mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
@@ -69,7 +69,7 @@ fn about_immediate_mode(ui: &mut egui::Ui) {
|
||||
ui.label("Note how there are no callbacks or messages, and no button state to store.");
|
||||
|
||||
ui.label("Immediate mode has its roots in gaming, where everything on the screen is painted at the display refresh rate, i.e. at 60+ frames per second. \
|
||||
In immediate mode GUIs, the entire interface is layed out and painted at the same high rate. \
|
||||
In immediate mode GUIs, the entire interface is laid out and painted at the same high rate. \
|
||||
This makes immediate mode GUIs especially well suited for highly interactive applications.");
|
||||
|
||||
ui.horizontal_wrapped(|ui| {
|
||||
|
||||
@@ -86,7 +86,7 @@ impl super::View for Scrolling {
|
||||
|
||||
fn huge_content_lines(ui: &mut egui::Ui) {
|
||||
ui.label(
|
||||
"A lot of rows, but only the visible ones are layed out, so performance is still good:",
|
||||
"A lot of rows, but only the visible ones are laid out, so performance is still good:",
|
||||
);
|
||||
ui.add_space(4.0);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
enum DemoType {
|
||||
Manual,
|
||||
ManyHomogenous,
|
||||
ManyHomogeneous,
|
||||
ManyHeterogenous,
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ impl super::View for TableDemo {
|
||||
ui.radio_value(&mut self.demo, DemoType::Manual, "Few, manual rows");
|
||||
ui.radio_value(
|
||||
&mut self.demo,
|
||||
DemoType::ManyHomogenous,
|
||||
DemoType::ManyHomogeneous,
|
||||
"Thousands of rows of same height",
|
||||
);
|
||||
ui.radio_value(
|
||||
@@ -179,7 +179,7 @@ impl TableDemo {
|
||||
});
|
||||
}
|
||||
}
|
||||
DemoType::ManyHomogenous => {
|
||||
DemoType::ManyHomogeneous => {
|
||||
body.rows(text_height, self.num_rows, |row_index, mut row| {
|
||||
row.col(|ui| {
|
||||
ui.label(row_index.to_string());
|
||||
|
||||
@@ -52,7 +52,7 @@ impl super::View for IdTest {
|
||||
|
||||
ui.label("\
|
||||
Widgets that store state require unique and persisting identifiers so we can track their state between frames.\n\
|
||||
For instance, collapsable headers needs to store whether or not they are open. \
|
||||
For instance, collapsible headers needs to store whether or not they are open. \
|
||||
Their Id:s are derived from their names. \
|
||||
If you fail to give them unique names then clicking one will open both. \
|
||||
To help you debug this, an error message is printed on screen:");
|
||||
|
||||
Reference in New Issue
Block a user