← Back

ofxInterfaceWidgets

github.com/borg/ofxInterfaceWidgets · @borg
OF 0.10 GUI

openFrameworks GUI addon for ofxInterface

2 1 Last commit 7y ago Created 9y ago

README

ofxInterfaceWidgets Addon to the ofxInterface family.

Core Keyboard

Usage example


void ofApp::setup(){
    Button * startBtn = new ofxInterface::Button();
    startBtn->setImages(new ButtonImages("assets/btn_begin.png"));
    startBtn->setSize(iconDim,iconDim);
    startBtn->setName("startBtn");
    startBtn->setPosition(sceneWidth/2-iconDim/2,sceneHeight-iconDim-80,0);
    startBtn->setPlane(3);
    ofAddListener(startBtn->eventTouchDown, this, &ofApp::nodeDown);
    ofAddListener(startBtn->eventTouchUp, this, & ofApp::nodeUp);
}    
  
    
    void ofApp::nodeDown(TouchEvent& event){
    	cout<<"ofApp::nodeDown "<< event.receiver->getName()<<endl;
   }


Created by Andreas Borg, 2017 crea.tion.to

Get this addon

HTTPS
SSH