mirror of
https://github.com/edo9300/edopro
synced 2026-08-23 22:26:05 -04:00
39 lines
1 KiB
C++
39 lines
1 KiB
C++
#ifndef UTILS_GUI_H
|
|
#define UTILS_GUI_H
|
|
|
|
#include "text_types.h"
|
|
#include <memory>
|
|
|
|
namespace irr {
|
|
class IrrlichtDevice;
|
|
namespace video {
|
|
class IVideoDriver;
|
|
}
|
|
namespace gui {
|
|
class IGUIElement;
|
|
class IGUICheckBox;
|
|
}
|
|
}
|
|
|
|
namespace ygo {
|
|
|
|
struct GameConfig;
|
|
|
|
namespace GUIUtils {
|
|
|
|
std::shared_ptr<irr::IrrlichtDevice> CreateDevice(GameConfig* configs);
|
|
void ChangeCursor(irr::IrrlichtDevice* device, /*irr::gui::ECURSOR_ICON*/ int icon);
|
|
bool TakeScreenshot(irr::IrrlichtDevice* device);
|
|
void ToggleFullscreen(irr::IrrlichtDevice* device, bool& fullscreen);
|
|
void ShowErrorWindow(epro::stringview context, epro::stringview message);
|
|
void ToggleSwapInterval(irr::video::IVideoDriver* driver, int interval);
|
|
std::string SerializeWindowPosition(irr::IrrlichtDevice* device);
|
|
void TriggerEvent(irr::IrrlichtDevice* device, irr::gui::IGUIElement* target, /*irr::gui::EGUI_EVENT_TYPE*/ int type);
|
|
void ClickButton(irr::IrrlichtDevice* device, irr::gui::IGUIElement* btn);
|
|
void SetCheckbox(irr::IrrlichtDevice* device, irr::gui::IGUICheckBox* chk, bool state);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|