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

Method cube_render_node_t

plugins/cube/cube.cpp:142–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141 public:
142 cube_render_node_t(wayfire_cube *cube) : node_t(false)
143 {
144 this->cube = cube;
145 auto w = cube->output->wset()->get_workspace_grid_size().width;
146 auto y = cube->output->wset()->get_current_workspace().y;
147 for (int i = 0; i < w; i++)
148 {
149 auto node = std::make_shared<wf::workspace_stream_node_t>(cube->output, wf::point_t{i, y});
150 workspaces.push_back(node);
151 }
152 }
153
154 virtual void gen_render_instances(
155 std::vector<wf::scene::render_instance_uptr>& instances,

Callers

nothing calls this directly

Calls 3

wsetMethod · 0.80
get_current_workspaceMethod · 0.45

Tested by

no test coverage detected