MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_in_bounds() [1/2]

MAYAFLUX_API bool MayaFlux::is_in_bounds ( double  window_x,
double  window_y,
const std::shared_ptr< Core::Window > &  window 
)

Check if a point in window coordinates is inside the window bounds.

Parameters
window_xX coordinate in window space
window_yY coordinate in window space
windowWindow to extract dimensions from
Returns
true if point is within window bounds

Definition at line 107 of file Windowing.cpp.

109{
110 const auto& state = window->get_state();
111 return is_in_bounds(window_x, window_y, state.current_width, state.current_height);
112}
bool is_in_bounds(double window_x, double window_y, uint32_t window_width, uint32_t window_height)
Check if a point in window coordinates is inside the window bounds.

References is_in_bounds().

+ Here is the call graph for this function: