styyx-util 1.0
Utility Header for SKSE Plugin development
Loading...
Searching...
No Matches
FUCK::MenuEventListener Class Reference

RAII Wrapper for listening to Skyrim UI Menu events. More...

#include <FUCK_API.h>

Public Types

using Callback = std::function<void(const char* menuName, bool opening)>

Public Member Functions

 MenuEventListener ()=default
 MenuEventListener (Callback a_cb)
 ~MenuEventListener ()
 MenuEventListener (const MenuEventListener &)=delete
MenuEventListeneroperator= (const MenuEventListener &)=delete
MenuEventListeneroperator= (MenuEventListener &&other) noexcept

Static Private Member Functions

static void Dispatch (const char *menuName, bool opening, void *userdata)

Private Attributes

Callback _callback

Detailed Description

RAII Wrapper for listening to Skyrim UI Menu events.

Member Typedef Documentation

◆ Callback

using FUCK::MenuEventListener::Callback = std::function<void(const char* menuName, bool opening)>

Constructor & Destructor Documentation

◆ MenuEventListener() [1/3]

FUCK::MenuEventListener::MenuEventListener ( )
default
Here is the caller graph for this function:

◆ MenuEventListener() [2/3]

FUCK::MenuEventListener::MenuEventListener ( Callback a_cb)
inlineexplicit
Here is the call graph for this function:

◆ ~MenuEventListener()

FUCK::MenuEventListener::~MenuEventListener ( )
inline
Here is the call graph for this function:

◆ MenuEventListener() [3/3]

FUCK::MenuEventListener::MenuEventListener ( const MenuEventListener & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ Dispatch()

void FUCK::MenuEventListener::Dispatch ( const char * menuName,
bool opening,
void * userdata )
inlinestaticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

MenuEventListener & FUCK::MenuEventListener::operator= ( const MenuEventListener & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

MenuEventListener & FUCK::MenuEventListener::operator= ( MenuEventListener && other)
inlinenoexcept
Here is the call graph for this function:

Member Data Documentation

◆ _callback

Callback FUCK::MenuEventListener::_callback
private

The documentation for this class was generated from the following file: