reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

#include <ofMainLoop.h>

Public Member Functions

 ofMainLoop ()
 
virtual ~ofMainLoop ()
 
std::shared_ptr< ofAppBaseWindowcreateWindow (const ofWindowSettings &settings)
 
template<typename Window >
void addWindow (const std::shared_ptr< Window > &window)
 
void run (const std::shared_ptr< ofAppBaseWindow > &window, std::shared_ptr< ofBaseApp > &&app)
 
void run (std::shared_ptr< ofBaseApp > &&app)
 
int loop ()
 
void loopOnce ()
 
void pollEvents ()
 
void exit ()
 
void shouldClose (int status)
 
std::shared_ptr< ofAppBaseWindowgetCurrentWindow ()
 
void setCurrentWindow (const std::shared_ptr< ofAppBaseWindow > &window)
 
void setCurrentWindow (ofAppBaseWindow *window)
 
std::shared_ptr< ofBaseAppgetCurrentApp ()
 
void setEscapeQuitsLoop (bool quits)
 
std::thread::id get_thread_id ()
 

Public Attributes

ofEvent< void > exitEvent
 
ofEvent< void > loopEvent
 

Constructor & Destructor Documentation

◆ ofMainLoop()

ofMainLoop::ofMainLoop ( )

◆ ~ofMainLoop()

ofMainLoop::~ofMainLoop ( )
virtual

Member Function Documentation

◆ addWindow()

template<typename Window >
void ofMainLoop::addWindow ( const std::shared_ptr< Window > &  window)
inline

◆ createWindow()

std::shared_ptr< ofAppBaseWindow > ofMainLoop::createWindow ( const ofWindowSettings settings)

◆ exit()

void ofMainLoop::exit ( )

◆ get_thread_id()

std::thread::id ofMainLoop::get_thread_id ( )
inline

◆ getCurrentApp()

std::shared_ptr< ofBaseApp > ofMainLoop::getCurrentApp ( )

◆ getCurrentWindow()

std::shared_ptr< ofAppBaseWindow > ofMainLoop::getCurrentWindow ( )

◆ loop()

int ofMainLoop::loop ( )

◆ loopOnce()

void ofMainLoop::loopOnce ( )

< i now points at the window after the one which was just erased

< continue to next window

◆ pollEvents()

void ofMainLoop::pollEvents ( )

◆ run() [1/2]

void ofMainLoop::run ( const std::shared_ptr< ofAppBaseWindow > &  window,
std::shared_ptr< ofBaseApp > &&  app 
)

◆ run() [2/2]

void ofMainLoop::run ( std::shared_ptr< ofBaseApp > &&  app)

◆ setCurrentWindow() [1/2]

void ofMainLoop::setCurrentWindow ( const std::shared_ptr< ofAppBaseWindow > &  window)

◆ setCurrentWindow() [2/2]

void ofMainLoop::setCurrentWindow ( ofAppBaseWindow window)

◆ setEscapeQuitsLoop()

void ofMainLoop::setEscapeQuitsLoop ( bool  quits)

◆ shouldClose()

void ofMainLoop::shouldClose ( int  status)

Member Data Documentation

◆ exitEvent

ofEvent<void> ofMainLoop::exitEvent

◆ loopEvent

ofEvent<void> ofMainLoop::loopEvent

The documentation for this class was generated from the following files:
  • /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/app/ofMainLoop.h
  • /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/app/ofMainLoop.cpp