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

Method _expect_float

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

Source from the content-addressed store, hash-verified

281}
282
283std::tuple<bool, float> view_action_interface_t::_expect_float(
284 const std::vector<variant_t> & args, std::size_t position)
285{
286 if ((args.size() > position) && (wf::is_float(args.at(position))))
287 {
288 return {true, wf::get_float(args.at(position))};
289 }
290
291 return {false, 0.0f};
292}
293
294std::tuple<bool, double> view_action_interface_t::_expect_double(
295 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