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

Method _validate_size

plugins/window-rules/view-action-interface.cpp:375–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375std::tuple<bool, int, int> view_action_interface_t::_validate_size(
376 const std::vector<variant_t> & args)
377{
378 auto arg_w = _expect_int(args, 0);
379 auto arg_h = _expect_int(args, 1);
380
381 if (std::get<0>(arg_w) && std::get<0>(arg_h))
382 {
383 return {true, std::get<1>(arg_w), std::get<1>(arg_h)};
384 }
385
386 LOGE("View action interface: Invalid arguments. Expected 'resize int int.");
387
388 return {false, 0, 0};
389}
390
391void view_action_interface_t::_set_alpha(float alpha)
392{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected