| 373 | } |
| 374 | |
| 375 | std::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 | |
| 391 | void view_action_interface_t::_set_alpha(float alpha) |
| 392 | { |
nothing calls this directly
no outgoing calls
no test coverage detected