mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-27 14:26:04 +03:00
33 lines
835 B
C++
33 lines
835 B
C++
#ifndef UI_C_FRAME_POINT_HPP
|
|
#define UI_C_FRAME_POINT_HPP
|
|
|
|
#include "ui/Types.hpp"
|
|
#include <cstdint>
|
|
#include <tempest/Vector.hpp>
|
|
|
|
class CLayoutFrame;
|
|
class CRect;
|
|
|
|
class CFramePoint {
|
|
public:
|
|
// Static variables
|
|
static float const UNDEFINED;
|
|
|
|
// Member variables
|
|
C2Vector m_offset;
|
|
CLayoutFrame* m_relative;
|
|
uint32_t m_framePoint : 8;
|
|
uint32_t m_flags : 24;
|
|
|
|
// Member functions
|
|
CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY);
|
|
CLayoutFrame* GetRelative();
|
|
int32_t GetRelativeRect(CRect& rect);
|
|
void MarkUnused();
|
|
void SetRelative(CLayoutFrame* relative, FRAMEPOINT relativePoint, float offsetX, float offsetY);
|
|
float X(float scale);
|
|
float Y(float scale);
|
|
};
|
|
|
|
#endif
|