Skip to content

Commit

Permalink
deleted linux config and make files
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaali committed Feb 18, 2012
1 parent ea42a4b commit 125e047
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 19 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion example-ofxUIButtons/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
2 changes: 1 addition & 1 deletion example-ofxUICustomFont/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
2 changes: 1 addition & 1 deletion example-ofxUICustomPlacement/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
2 changes: 1 addition & 1 deletion example-ofxUICustomWidgets/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
2 changes: 1 addition & 1 deletion example-ofxUISimpleExample/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
Binary file not shown.
2 changes: 1 addition & 1 deletion example-ofxUISliders/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
int main( ){

ofAppGlutWindow window;
window.setGlutDisplayString("rgba double samples>=6 depth");
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 768,1024, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());
}
7 changes: 2 additions & 5 deletions example-ofxUITutorial/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
int main( ){

ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context

// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
// window.setGlutDisplayString("rgba double samples>=6 depth");
ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
ofRunApp( new testApp());

}
12 changes: 11 additions & 1 deletion src/ofxUICanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ class ofxUICanvas : public ofxUIWidget
widget->setRectParent(this->rect);
pushbackWidget(widget);
}
void addWidgetDown(ofxUIWidget *widget, ofxWidgetAlignment align = OFX_UI_ALIGN_LEFT)
{
addWidget(widget);
Expand Down Expand Up @@ -1215,6 +1215,16 @@ class ofxUICanvas : public ofxUIWidget
return widgets_map[_name];
}

void removeWidget(string _name)
{
//To Implement
}

void removeWidget(ofxUIWidget *widget)
{
//To Implement
}

void setDrawPadding(bool _draw_padded_rect)
{
draw_padded_rect = _draw_padded_rect;
Expand Down
6 changes: 2 additions & 4 deletions src/ofxUILabelButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,10 @@ class ofxUILabelButton : public ofxUIButton
float w = labelrect->getWidth();
float pw = rect->getWidth();

labelrect->y = ph*.5 - h*.5;
labelrect->x = pw*.5 - w*.5-padding*.5;
labelrect->y = (int)(ph*.5 - h*.5);
labelrect->x = (int)(pw*.5 - w*.5-padding*.5);
paddedRect->height = rect->height+padding*2.0;
paddedRect->width = rect->width+padding*2.0;


}


Expand Down
6 changes: 3 additions & 3 deletions src/ofxUILabelToggle.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ofxUILabelToggle : public ofxUIToggle
paddedRect = new ofxUIRectangle(-padding, -padding, padding*2.0, padding*2.0);
paddedRect->setParent(rect);

label = new ofxUILabel(0,0,(name+" LABEL"), name, _size);
label = new ofxUILabel((name+" LABEL"), name, _size);
label->setParent(label);
label->setRectParent(rect);

Expand Down Expand Up @@ -155,8 +155,8 @@ class ofxUILabelToggle : public ofxUIToggle
float w = labelrect->getWidth();
float pw = rect->getWidth();

labelrect->y = ph*.5 - h*.5;
labelrect->x = pw*.5 - w*.5-padding*.5;
labelrect->y = (int)(ph*.5 - h*.5);
labelrect->x = (int)(pw*.5 - w*.5-padding*.5);
paddedRect->height = rect->height+padding*2.0;
paddedRect->width = rect->width+padding*2.0;
}
Expand Down

0 comments on commit 125e047

Please sign in to comment.