squall/storm/Region.hpp

46 lines
1.5 KiB
C++
Raw Permalink Normal View History

2023-03-30 14:37:05 -05:00
#ifndef STORM_REGION_HPP
#define STORM_REGION_HPP
#include "storm/region/Types.hpp"
2026-04-26 17:10:11 +04:00
#include "Core.hpp"
2023-03-30 14:37:05 -05:00
2026-04-26 17:10:11 +04:00
void STORMAPI SRgnClear(HSRGN handle);
2023-03-30 14:37:05 -05:00
2026-04-26 17:10:11 +04:00
void STORMAPI SRgnCombineRectf(HSRGN handle, const RECTF* rect, void* param, int32_t combineMode);
2023-03-30 14:37:05 -05:00
2026-04-26 17:10:11 +04:00
void STORMAPI SRgnCombineRecti(HSRGN handle, const RECT* rect, void* param, int32_t combineMode);
2023-03-30 14:37:05 -05:00
2026-04-26 17:10:11 +04:00
void STORMAPI SRgnCreate(HSRGN* handlePtr, uint32_t reserved = 0);
void STORMAPI SRgnDelete(HSRGN handle);
void STORMAPI SRgnDestroy();
void STORMAPI SRgnDuplicate(HSRGN origHandle, HSRGN* handle, uint32_t reserved = 0);
void STORMAPI SRgnGetBoundingRectf(HSRGN handle, RECTF* rect);
void STORMAPI SRgnGetBoundingRecti(HSRGN handle, RECT* rect);
void STORMAPI SRgnGetRectParamsf(HSRGN handle, const RECTF* rect, uint32_t* numParams, void** buffer);
void STORMAPI SRgnGetRectParamsi(HSRGN handle, const RECT* rect, uint32_t* numParams, void** buffer);
void STORMAPI SRgnGetRectsf(HSRGN handle, uint32_t* numRects, RECTF* buffer);
void STORMAPI SRgnGetRectsi(HSRGN handle, uint32_t* numRects, RECT* buffer);
int32_t STORMAPI SRgnIsPointInRegionf(HSRGN handle, float x, float y);
int32_t STORMAPI SRgnIsPointInRegioni(HSRGN handle, int32_t x, int32_t y);
int32_t STORMAPI SRgnIsRectInRegionf(HSRGN handle, const RECTF* rect);
int32_t STORMAPI SRgnIsRectInRegioni(HSRGN handle, const RECT* rect);
void STORMAPI SRgnOffsetf(HSRGN handle, float xoffset, float yoffset);
void STORMAPI SRgnOffseti(HSRGN handle, int32_t xoffset, int32_t yoffset);
2023-03-30 14:37:05 -05:00
#endif