mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 23:27:22 +00:00
Rename the sixtyfps C++ namespaces
This commit is contained in:
parent
5226feab01
commit
7d297da2fc
96 changed files with 747 additions and 753 deletions
|
@ -23,11 +23,11 @@ int main()
|
|||
|
||||
// ANCHOR: game_logic
|
||||
|
||||
auto tiles_model = std::make_shared<sixtyfps::VectorModel<TileData>>(new_tiles);
|
||||
auto tiles_model = std::make_shared<slint::VectorModel<TileData>>(new_tiles);
|
||||
main_window->set_memory_tiles(tiles_model);
|
||||
|
||||
main_window->on_check_if_pair_solved(
|
||||
[main_window_weak = sixtyfps::ComponentWeakHandle(main_window)] {
|
||||
[main_window_weak = slint::ComponentWeakHandle(main_window)] {
|
||||
auto main_window = *main_window_weak.lock();
|
||||
auto tiles_model = main_window->get_memory_tiles();
|
||||
int first_visible_index = -1;
|
||||
|
@ -52,7 +52,7 @@ int main()
|
|||
}
|
||||
main_window->set_disable_tiles(true);
|
||||
|
||||
sixtyfps::Timer::single_shot(std::chrono::seconds(1),
|
||||
slint::Timer::single_shot(std::chrono::seconds(1),
|
||||
[=]() mutable {
|
||||
main_window->set_disable_tiles(false);
|
||||
first_visible_tile.image_visible = false;
|
||||
|
|
|
@ -21,7 +21,7 @@ int main()
|
|||
}
|
||||
std::default_random_engine rng {};
|
||||
std::shuffle(new_tiles.begin(), new_tiles.end(), rng);
|
||||
auto tiles_model = std::make_shared<sixtyfps::VectorModel<TileData>>(new_tiles);
|
||||
auto tiles_model = std::make_shared<slint::VectorModel<TileData>>(new_tiles);
|
||||
main_window->set_memory_tiles(tiles_model);
|
||||
|
||||
main_window->run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue