| 314 | } |
| 315 | |
| 316 | std::tuple<bool, float> view_action_interface_t::_validate_alpha( |
| 317 | const std::vector<variant_t> & args) |
| 318 | { |
| 319 | auto arg_float = _expect_float(args, 1); |
| 320 | if (std::get<0>(arg_float)) |
| 321 | { |
| 322 | return arg_float; |
| 323 | } else |
| 324 | { |
| 325 | auto arg_double = _expect_double(args, 1); |
| 326 | if (std::get<0>(arg_double)) |
| 327 | { |
| 328 | return {true, static_cast<float>(std::get<1>(arg_double))}; |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | LOGE( |
| 333 | "View action interface: Invalid arguments. Expected 'set alpha [float|double]."); |
| 334 | |
| 335 | return {false, 1.0f}; |
| 336 | } |
| 337 | |
| 338 | std::tuple<bool, int, int, int, int> view_action_interface_t::_validate_geometry( |
| 339 | const std::vector<variant_t> & args) |
nothing calls this directly
no outgoing calls
no test coverage detected