omgui::PointerSlot< E > Class Template Reference

#include <omgui/event.h>

Inherits omgui::SlotBase.

List of all members.


Detailed Description

template<typename E>
class omgui::PointerSlot< E >

This slot works with plain old function pointers

Public Types

typedef E event_type
typedef bool(* function_type )(const event_type &)

Public Member Functions

void add_ref ()
bool operator() (const Event &e)
 PointerSlot (const function_type &f)
void release ()

Private Attributes

function_type func

Member Typedef Documentation

template<typename E>
typedef E omgui::PointerSlot< E >::event_type

template<typename E>
typedef bool(* omgui::PointerSlot< E >::function_type)(const event_type &)


Constructor & Destructor Documentation

template<typename E>
omgui::PointerSlot< E >::PointerSlot ( const function_type f  )  [inline]


Member Function Documentation

void omgui::RefCounted::add_ref (  )  [virtual, inherited]

Implements omgui::RefCountable.

template<typename E>
bool omgui::PointerSlot< E >::operator() ( const Event e  )  [inline, virtual]

Invoke the slot

Implements omgui::SlotBase.

void omgui::RefCounted::release (  )  [virtual, inherited]

Implements omgui::RefCountable.


Member Data Documentation

template<typename E>
function_type omgui::PointerSlot< E >::func [private]


doxygen SourceForge.net Logo