MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / ensure_animation

Function ensure_animation

plugins/tile/tree.cpp:438–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438static nonstd::observer_ptr<wf::grid::grid_animation_t> ensure_animation(
439 wayfire_toplevel_view view, wf::option_sptr_t<wf::animation_description_t> duration)
440{
441 if (!view->has_data<wf::grid::grid_animation_t>())
442 {
443 const auto type = wf::grid::grid_animation_t::CROSSFADE;
444 view->store_data<wf::grid::grid_animation_t>(
445 std::make_unique<tile_view_animation_t>(view, type, duration));
446 }
447
448 return view->get_data<wf::grid::grid_animation_t>();
449}
450
451void view_node_t::set_geometry(wf::geometry_t geometry, wf::txn::transaction_uptr& tx)
452{

Callers 1

set_geometryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected