robotgo/screen/screen.h

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