MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Rect_ContainsPoint

Function Rect_ContainsPoint

code/ui/ui_shared.cpp:8721–8738  ·  view source on GitHub ↗

================= Rect_ContainsPoint ================= */

Source from the content-addressed store, hash-verified

8719=================
8720*/
8721static qboolean Rect_ContainsPoint(rectDef_t *rect, float x, float y)
8722{
8723 //JLF ignore mouse pointer location
8724// return true;
8725 // END JLF
8726 if (rect)
8727 {
8728// if ((x > rect->x) && (x < (rect->x + rect->w)) && (y > rect->y) && (y < (rect->y + rect->h)))
8729 if ((x > rect->x) && (x < (rect->x + rect->w)))
8730 {
8731 if ((y > rect->y) && (y < (rect->y + rect->h)))
8732 {
8733 return qtrue;
8734 }
8735 }
8736 }
8737 return qfalse;
8738}
8739
8740qboolean Item_TextScroll_HandleKey ( itemDef_t *item, int key, qboolean down, qboolean force)
8741{

Callers 15

Item_TextScroll_OverLBFunction · 0.70
Item_ListBox_OverLBFunction · 0.70
Item_ListBox_MouseEnterFunction · 0.70
Item_MouseEnterFunction · 0.70
Item_SetFocusFunction · 0.70
Menu_HandleMouseMoveFunction · 0.70
Item_Bind_HandleKeyFunction · 0.70
Menu_OverActiveItemFunction · 0.70
Item_ListBox_HandleKeyFunction · 0.70
Item_Slider_OverSliderFunction · 0.70
Item_YesNo_HandleKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected