robotgo/screen/screen.h

30 lines
498 B
C
Raw Permalink Normal View History

2016-10-06 10:41:37 +00:00
#pragma once
#ifndef SCREEN_H
#define SCREEN_H
#include "../base/types.h"
#if defined(_MSC_VER)
#include "../base/ms_stdbool.h"
#else
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
/* Returns the size of the main display. */
MMSizeInt32 getMainDisplaySize(void);
2016-10-06 10:41:37 +00:00
/* Convenience function that returns whether the given point is in the bounds
* of the main screen. */
bool pointVisibleOnMainDisplay(MMPointInt32 point);
2016-10-06 10:41:37 +00:00
#ifdef __cplusplus
}
#endif
#endif /* SCREEN_H */