Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::mouse Namespace Reference

Classes

class  NativeCursor
 
class  Playback
 
struct  State
 

Enumerations

enum class  CursorKind { Pointer , Text }
 
enum class  NativeCursorKind { Arrow , Text , Hidden }
 

Functions

bool initialize ()
 
void shutdown ()
 
void updatePosition (int x, int y, bool inside) noexcept
 
void setLeftDown (bool down) noexcept
 
void setEnabled (bool enabled) noexcept
 
const State & stateReadOnly () noexcept
 
bool assetVisible (const State &state) noexcept
 
NativeCursorKind nativeCursorKind (const State &state, bool assetReady) noexcept
 
void updateChatCursor (const chat::State &chat) noexcept
 

Variables

constexpr data::DataId PointerDataId
 
constexpr std::uint16_t PointerPriority = 0xFFFF
 

Enumeration Type Documentation

◆ CursorKind

Enumerator
Pointer 
Text 

Definition at line 8 of file MousePointer.hpp.

◆ NativeCursorKind

Enumerator
Arrow 
Text 
Hidden 

Definition at line 9 of file MousePointer.hpp.

Function Documentation

◆ assetVisible()

bool monopoly::mouse::assetVisible ( const State &  state)
noexcept

Definition at line 27 of file MousePointer.cpp.

◆ initialize()

bool monopoly::mouse::initialize ( )

Definition at line 10 of file MousePointer.cpp.

◆ nativeCursorKind()

NativeCursorKind monopoly::mouse::nativeCursorKind ( const State &  state,
bool  assetReady 
)
noexcept

Definition at line 32 of file MousePointer.cpp.

◆ setEnabled()

void monopoly::mouse::setEnabled ( bool  enabled)
noexcept

Definition at line 25 of file MousePointer.cpp.

◆ setLeftDown()

void monopoly::mouse::setLeftDown ( bool  down)
noexcept

Definition at line 24 of file MousePointer.cpp.

◆ shutdown()

void monopoly::mouse::shutdown ( )

Definition at line 16 of file MousePointer.cpp.

◆ stateReadOnly()

const State & monopoly::mouse::stateReadOnly ( )
noexcept

Definition at line 26 of file MousePointer.cpp.

◆ updateChatCursor()

void monopoly::mouse::updateChatCursor ( const chat::State &  chat)
noexcept

Definition at line 39 of file MousePointer.cpp.

◆ updatePosition()

void monopoly::mouse::updatePosition ( int  x,
int  y,
bool  inside 
)
noexcept

Definition at line 17 of file MousePointer.cpp.

Variable Documentation

◆ PointerDataId

constexpr data::DataId monopoly::mouse::PointerDataId
inlineconstexpr
Initial value:
=
data::packDataId(data::LegacyGroupId::Main, 0x0323)

Definition at line 7 of file MousePointerPlayback.hpp.

◆ PointerPriority

constexpr std::uint16_t monopoly::mouse::PointerPriority = 0xFFFF
inlineconstexpr

Definition at line 10 of file MousePointerPlayback.hpp.