MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / UI_check_mouse

Function UI_check_mouse

src/source.cpp:4773–4786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4771}
4772
4773static void UI_check_mouse() {
4774 UI_Context *ctx = G->ui;
4775 G->ui_want_capture_mouse = false;
4776 for (int i = 0; i < G->check_mouse_hashes.count; i++) {
4777 UI_Block *ref = UI_find_block(ctx, G->check_mouse_hashes[i], UI_PREVIOUS);
4778 if (ref) {
4779 if (UI_point_in_rect(ref->position, ref->position + ref->size, UI_get_mouse())) {
4780 G->ui_want_capture_mouse = true;
4781 break;
4782 }
4783 }
4784 }
4785 G->check_mouse_hashes.reset_count();
4786}
4787
4788static void render_histogram() {
4789 if (!G->histo_block) return;

Callers 1

wmainFunction · 0.85

Calls 4

UI_find_blockFunction · 0.85
UI_point_in_rectFunction · 0.85
UI_get_mouseFunction · 0.85
reset_countMethod · 0.80

Tested by

no test coverage detected