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 <ofBaseApp.h>

Inheritance diagram for ofBaseApp:
ofBaseSoundInput ofBaseSoundOutput

Public Member Functions

 ofBaseApp ()
 
virtual ~ofBaseApp ()
 
virtual void setup ()
 
virtual void update ()
 
virtual void draw ()
 
virtual void exit ()
 
virtual void windowResized (int w, int h)
 
virtual void keyPressed (int key)
 
virtual void keyReleased (int key)
 
virtual void mouseMoved (int x, int y)
 Called on the active window when the mouse is moved.
 
virtual void mouseDragged (int x, int y, int button)
 Called on the active window when the mouse is dragged, i.e. moved with a button pressed.
 
virtual void mousePressed (int x, int y, int button)
 Called on the active window when a mouse button is pressed.
 
virtual void mouseReleased (int x, int y, int button)
 Called on the active window when a mouse button is released.
 
virtual void mouseScrolled (int x, int y, float scrollX, float scrollY)
 Called on the active window when the mouse wheel is scrolled.
 
virtual void mouseEntered (int x, int y)
 Called on the active window when the mouse cursor enters the window area.
 
virtual void mouseExited (int x, int y)
 Called on the active window when the mouse cursor leaves the window area.
 
virtual void dragEvent (ofDragInfo dragInfo)
 
virtual void gotMessage (ofMessage msg)
 
virtual void setup (ofEventArgs &args)
 
virtual void update (ofEventArgs &args)
 
virtual void draw (ofEventArgs &args)
 
virtual void exit (ofEventArgs &args)
 
virtual void windowResized (ofResizeEventArgs &resize)
 
virtual void keyPressed (ofKeyEventArgs &key)
 
virtual void keyReleased (ofKeyEventArgs &key)
 
virtual void mouseMoved (ofMouseEventArgs &mouse)
 
virtual void mouseDragged (ofMouseEventArgs &mouse)
 
virtual void mousePressed (ofMouseEventArgs &mouse)
 
virtual void mouseReleased (ofMouseEventArgs &mouse)
 
virtual void mouseScrolled (ofMouseEventArgs &mouse)
 
virtual void mouseEntered (ofMouseEventArgs &mouse)
 
virtual void mouseExited (ofMouseEventArgs &mouse)
 
virtual void dragged (ofDragInfo &drag)
 
virtual void messageReceived (ofMessage &message)
 
virtual void touchDown (int x, int y, int id)
 
virtual void touchMoved (int x, int y, int id)
 
virtual void touchUp (int x, int y, int id)
 
virtual void touchDoubleTap (int x, int y, int id)
 
virtual void touchCancelled (int x, int y, int id)
 
virtual void touchDown (ofTouchEventArgs &touch)
 
virtual void touchMoved (ofTouchEventArgs &touch)
 
virtual void touchUp (ofTouchEventArgs &touch)
 
virtual void touchDoubleTap (ofTouchEventArgs &touch)
 
virtual void touchCancelled (ofTouchEventArgs &touch)
 
- Public Member Functions inherited from ofBaseSoundInput
virtual ~ofBaseSoundInput ()
 Destroy the ofBaseSoundInput.
 
virtual void audioIn (ofSoundBuffer &buffer)
 Receive an audio buffer.
 
virtual void audioIn (float *input, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount)
 
virtual void audioIn (float *input, int bufferSize, int nChannels)
 
virtual void audioReceived (float *input, int bufferSize, int nChannels)
 
- Public Member Functions inherited from ofBaseSoundOutput
virtual ~ofBaseSoundOutput ()
 Destroy the ofBaseSoundOutput.
 
virtual void audioOut (ofSoundBuffer &buffer)
 Output an audio buffer.
 
virtual void audioOut (float *output, int bufferSize, int nChannels, int deviceID, long unsigned long tickCount)
 
virtual void audioOut (float *output, int bufferSize, int nChannels)
 
virtual void audioRequested (float *output, int bufferSize, int nChannels)
 

Public Attributes

int mouseX
 
int mouseY
 

Constructor & Destructor Documentation

◆ ofBaseApp()

ofBaseApp::ofBaseApp ( )

◆ ~ofBaseApp()

ofBaseApp::~ofBaseApp ( )
virtual

Member Function Documentation

◆ dragEvent()

void ofBaseApp::dragEvent ( ofDragInfo  dragInfo)
virtual

◆ dragged()

void ofBaseApp::dragged ( ofDragInfo drag)
virtual

◆ draw() [1/2]

void ofBaseApp::draw ( )
virtual

◆ draw() [2/2]

void ofBaseApp::draw ( ofEventArgs args)
virtual

◆ exit() [1/2]

void ofBaseApp::exit ( )
virtual

◆ exit() [2/2]

void ofBaseApp::exit ( ofEventArgs args)
virtual

◆ gotMessage()

void ofBaseApp::gotMessage ( ofMessage  msg)
virtual

◆ keyPressed() [1/2]

void ofBaseApp::keyPressed ( int  key)
virtual

◆ keyPressed() [2/2]

void ofBaseApp::keyPressed ( ofKeyEventArgs key)
virtual

◆ keyReleased() [1/2]

void ofBaseApp::keyReleased ( int  key)
virtual

◆ keyReleased() [2/2]

void ofBaseApp::keyReleased ( ofKeyEventArgs key)
virtual

◆ messageReceived()

void ofBaseApp::messageReceived ( ofMessage message)
virtual

◆ mouseDragged() [1/2]

void ofBaseApp::mouseDragged ( int  x,
int  y,
int  button 
)
virtual

Called on the active window when the mouse is dragged, i.e. moved with a button pressed.

◆ mouseDragged() [2/2]

void ofBaseApp::mouseDragged ( ofMouseEventArgs mouse)
virtual

◆ mouseEntered() [1/2]

void ofBaseApp::mouseEntered ( int  x,
int  y 
)
virtual

Called on the active window when the mouse cursor enters the window area.

Note that the mouse coordinates are the last known x/y before the event occurred, i.e. from the previous frame

◆ mouseEntered() [2/2]

void ofBaseApp::mouseEntered ( ofMouseEventArgs mouse)
virtual

◆ mouseExited() [1/2]

void ofBaseApp::mouseExited ( int  x,
int  y 
)
virtual

Called on the active window when the mouse cursor leaves the window area.

Note that the mouse coordinates are the last known x/y before the event occurred, i.e. from the previous frame

◆ mouseExited() [2/2]

void ofBaseApp::mouseExited ( ofMouseEventArgs mouse)
virtual

◆ mouseMoved() [1/2]

void ofBaseApp::mouseMoved ( int  x,
int  y 
)
virtual

Called on the active window when the mouse is moved.

◆ mouseMoved() [2/2]

void ofBaseApp::mouseMoved ( ofMouseEventArgs mouse)
virtual

◆ mousePressed() [1/2]

void ofBaseApp::mousePressed ( int  x,
int  y,
int  button 
)
virtual

Called on the active window when a mouse button is pressed.

◆ mousePressed() [2/2]

void ofBaseApp::mousePressed ( ofMouseEventArgs mouse)
virtual

◆ mouseReleased() [1/2]

void ofBaseApp::mouseReleased ( int  x,
int  y,
int  button 
)
virtual

Called on the active window when a mouse button is released.

◆ mouseReleased() [2/2]

void ofBaseApp::mouseReleased ( ofMouseEventArgs mouse)
virtual

◆ mouseScrolled() [1/2]

void ofBaseApp::mouseScrolled ( int  x,
int  y,
float  scrollX,
float  scrollY 
)
virtual

Called on the active window when the mouse wheel is scrolled.

◆ mouseScrolled() [2/2]

void ofBaseApp::mouseScrolled ( ofMouseEventArgs mouse)
virtual

◆ setup() [1/2]

void ofBaseApp::setup ( )
virtual

◆ setup() [2/2]

void ofBaseApp::setup ( ofEventArgs args)
virtual

◆ touchCancelled() [1/2]

void ofBaseApp::touchCancelled ( int  x,
int  y,
int  id 
)
virtual

◆ touchCancelled() [2/2]

void ofBaseApp::touchCancelled ( ofTouchEventArgs touch)
virtual

◆ touchDoubleTap() [1/2]

void ofBaseApp::touchDoubleTap ( int  x,
int  y,
int  id 
)
virtual

◆ touchDoubleTap() [2/2]

void ofBaseApp::touchDoubleTap ( ofTouchEventArgs touch)
virtual

◆ touchDown() [1/2]

void ofBaseApp::touchDown ( int  x,
int  y,
int  id 
)
virtual

◆ touchDown() [2/2]

void ofBaseApp::touchDown ( ofTouchEventArgs touch)
virtual

◆ touchMoved() [1/2]

void ofBaseApp::touchMoved ( int  x,
int  y,
int  id 
)
virtual

◆ touchMoved() [2/2]

void ofBaseApp::touchMoved ( ofTouchEventArgs touch)
virtual

◆ touchUp() [1/2]

void ofBaseApp::touchUp ( int  x,
int  y,
int  id 
)
virtual

◆ touchUp() [2/2]

void ofBaseApp::touchUp ( ofTouchEventArgs touch)
virtual

◆ update() [1/2]

void ofBaseApp::update ( )
virtual

◆ update() [2/2]

void ofBaseApp::update ( ofEventArgs args)
virtual

◆ windowResized() [1/2]

void ofBaseApp::windowResized ( int  w,
int  h 
)
virtual

◆ windowResized() [2/2]

void ofBaseApp::windowResized ( ofResizeEventArgs resize)
virtual

Member Data Documentation

◆ mouseX

int ofBaseApp::mouseX

◆ mouseY

int ofBaseApp::mouseY

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