UTFWin::ModulateEffect class

Base classes

class BiStateEffect
class IModulateEffect

Constructors, destructors, conversion operators

ModulateEffect()
~ModulateEffect() virtual

Public functions

auto AddRef() -> int virtual
auto Release() -> int virtual
auto Cast(uint32_t typeID) const -> void* override
auto GetEventFlags() const -> int override
Gets the flags that represent which type of messages this IWinProc can handle.
auto HandleUIMessage(IWindow* pWindow, const Message& message) -> bool override
Method called every time a message is received on a window that has this IWinProc added.
void SetSerializer(Serializer& dst) override
auto GetProxyID() const -> uint32_t override
Returns the ID that identifies this type of element in a SPUI file.
auto ToWinProc() -> IWinProc* override
Get the IWinProc instance that represents this class.
void GetColors(Color& color1, Color& color2) const override
Get first and second modulation color.
void SetColors(Color color1, Color color2) override
Set first and second modulation color.
void func84h(int, float) override

Protected variables

Color mColor1
Color mColor2
int field_6C

Function documentation

int UTFWin::ModulateEffect::GetEventFlags() const override

Gets the flags that represent which type of messages this IWinProc can handle.

This allows for better performance, since generally a procedure only needs to listen specific events. The flags are in the kEventFlag... values.

bool UTFWin::ModulateEffect::HandleUIMessage(IWindow* pWindow, const 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.

void UTFWin::ModulateEffect::GetColors(Color& color1, Color& color2) const override

Get first and second modulation color.

Parameters
color1 out
color2 out

void UTFWin::ModulateEffect::SetColors(Color color1, Color color2) override

Set first and second modulation color.

Parameters
color1
color2