robotgo/screen/screen.h
2016-10-06 18:41:37 +08:00

30 lines
488 B
C

#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. */
MMSize getMainDisplaySize(void);
/* Convenience function that returns whether the given point is in the bounds
* of the main screen. */
bool pointVisibleOnMainDisplay(MMPoint point);
#ifdef __cplusplus
}
#endif
#endif /* SCREEN_H */