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

Method _expect_double

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

Source from the content-addressed store, hash-verified

292}
293
294std::tuple<bool, double> view_action_interface_t::_expect_double(
295 const std::vector<variant_t> & args, std::size_t position)
296{
297 if ((args.size() > position) && (wf::is_double(args.at(position))))
298 {
299 return {true, wf::get_double(args.at(position))};
300 }
301
302 return {false, 0.0};
303}
304
305std::tuple<bool, int> view_action_interface_t::_expect_int(
306 const std::vector<variant_t> & args, std::size_t position)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected