mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
18 lines
451 B
C
18 lines
451 B
C
#pragma once
|
|
#ifndef ALERT_H
|
|
#define ALERT_H
|
|
|
|
#if defined(_MSC_VER)
|
|
#include "ms_stdbool.h"
|
|
#else
|
|
#include <stdbool.h>
|
|
#endif
|
|
|
|
/* Displays alert with given attributes, and blocks execution until the user
|
|
* responds. Returns 0 if defaultButton was pressed, 1 if cancelButton was
|
|
* pressed, or -1 if an error occurred. */
|
|
int showAlert(const char *title, const char *msg,
|
|
const char *defaultButton, const char *cancelButton);
|
|
|
|
#endif /* ALERT_H */
|