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

Method _expect_int

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

Source from the content-addressed store, hash-verified

303}
304
305std::tuple<bool, int> view_action_interface_t::_expect_int(
306 const std::vector<variant_t> & args, std::size_t position)
307{
308 if ((args.size() > position) && (wf::is_int(args.at(position))))
309 {
310 return {true, wf::get_int(args.at(position))};
311 }
312
313 return {false, 0};
314}
315
316std::tuple<bool, float> view_action_interface_t::_validate_alpha(
317 const std::vector<variant_t> & args)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected