summaryrefslogtreecommitdiff
path: root/src/ui/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/util.h')
-rw-r--r--src/ui/util.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/util.h b/src/ui/util.h
index ae3742b5..468f2057 100644
--- a/src/ui/util.h
+++ b/src/ui/util.h
@@ -48,7 +48,17 @@ iLocalDef iBool isResize_UserEvent(const SDL_Event *d) {
48# define KMOD_SECONDARY KMOD_GUI 48# define KMOD_SECONDARY KMOD_GUI
49#endif 49#endif
50 50
51int keyMods_Sym (int kmods); /* shift, alt, control, or gui */ 51int keyMods_Sym (int kmods); /* shift, alt, control, or gui */
52
53iRangei intersect_Rangei (iRangei a, iRangei b);
54iRangei union_Rangei (iRangei a, iRangei b);
55
56iLocalDef iBool equal_Rangei(iRangei a, iRangei b) {
57 return a.start == b.start && a.end == b.end;
58}
59iLocalDef iBool isEmpty_Rangei(iRangei d) {
60 return size_Range(&d) == 0;
61}
52 62
53/*-----------------------------------------------------------------------------------------------*/ 63/*-----------------------------------------------------------------------------------------------*/
54 64