Palettes::StandardItemUI class

Base classes

class DefaultRefCounted
The default implementation of a reference counted class.
class UTFWin::IWinProc
This class is a window procedure, also known as an event/message listener.

Constructors, destructors, conversion operators

StandardItemUI()
~StandardItemUI() virtual

Public functions

auto HandleUIMessage(UTFWin::IWindow* pWindow, const UTFWin::Message& message) -> bool override
Method called every time a message is received on a window that has this IWinProc added.
auto AddRef() -> int virtual
auto Release() -> int virtual

Public variables

PaletteItemPtr mpItem
uint32_t field_10
ItemViewerPtr mpViewer
IWindowPtr field_18
bool field_1C

Function documentation

bool Palettes::StandardItemUI::HandleUIMessage(UTFWin::IWindow* pWindow, const UTFWin::Message& message) override

Method called every time a message is received on a window that has this IWinProc added.

Parameters
pWindow The window that received this message.
message The message received.
Returns Whether the message was handled or not.

This method is responsible of handling (or not) the message. This method receives the IWindow that is currently receiving the message; this way, the same IWinProc can be listening for more than one window. This method returns whether the message was handled or not; if it was handled, no other IWinProcs will be called on that window.