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

Method init

plugins/cube/cube.cpp:239–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238 public:
239 void init() override
240 {
241 input_grab = std::make_unique<wf::input_grab_t>("cube", output, nullptr, this, nullptr);
242 input_grab->set_wants_raw_input(true);
243
244 animation.cube_animation.offset_y.set(0, 0);
245 animation.cube_animation.offset_z.set(0, 0);
246 animation.cube_animation.rotation.set(0, 0);
247 animation.cube_animation.zoom.set(1, 1);
248 animation.cube_animation.ease_deformation.set(0, 0);
249
250 animation.cube_animation.start();
251
252 reload_background();
253
254 output->connect(&on_cube_control);
255 wf::gles::run_in_context([&]
256 {
257 load_program();
258 });
259 }
260
261 void handle_pointer_button(const wlr_pointer_button_event& event) override
262 {

Callers

nothing calls this directly

Calls 3

run_in_contextFunction · 0.85
set_wants_raw_inputMethod · 0.80
connectMethod · 0.80

Tested by

no test coverage detected