コード例 #1
0
ファイル: ofxUIWidget.cpp プロジェクト: BentleyBlanks/ksApp
void ofxUIWidget::drawPaddedOutline() {
	if(draw_padded_rect_outline && !embedded) {
		ofxUINoFill();
		ofxUISetColor(color_padded_rect_outline);
		drawComponent(skin_padded_outline,paddedRect);
	}
}
コード例 #2
0
ファイル: ofxUIWidget.cpp プロジェクト: BentleyBlanks/ksApp
void ofxUIWidget::drawOutlineHighlight() {
	if(draw_outline_highlight) {
		ofxUINoFill();
		ofxUISetColor(color_outline_highlight);
		drawComponent(skin_outline_highlight,rect);
	}
}
コード例 #3
0
ファイル: ofxUIWidget.cpp プロジェクト: BentleyBlanks/ksApp
void ofxUIWidget::drawOutline() {
	if(draw_outline) {
		ofxUINoFill();
		ofxUISetColor(color_outline);
		drawComponent(skin_outline,rect);		
	}
}
コード例 #4
0
void ofxUIEnvelopeEditor::drawEnvelope(){
    
    vector<ofVec3f> points = envelope->getPoints();
    int size = points.size();
    float rX = rect->getX();
    float rY = rect->getY();
    
    ofxUISetRectMode(OFX_UI_RECTMODE_CENTER);
    ofxUINoFill();
    for (int i = 0; i < size; i++)
    {
        float x = rX + points[i].x*rect->getWidth();
        float y = rY + points[i].y*rect->getHeight();
        
        ofxUICircle(x, y, pointNodeRadius);
        
        if(i < size-1)
        {
            float nx = rX + points[i+1].x*rect->getWidth();
            float hx = (x + nx)/2.0;
            ofxUIDrawRect(hx, rY + envelope->getY((hx-rX)/rect->getWidth())*rect->getHeight(), pointNodeRectWidth, pointNodeRectHeight);
        }
    }
    ofxUIFill();
    ofxUISetRectMode(OFX_UI_RECTMODE_CORNER);
    
    polyline.draw();
}
コード例 #5
0
void ofxUIWidget::drawPaddedOutline()
{
    if(draw_padded_rect_outline && !embedded)
    {
        ofxUINoFill();
        ofxUISetColor(color_padded_rect_outline);
        paddedRect->draw();
    }
}
コード例 #6
0
void ofxUIWidget::drawOutlineHighlight()
{
    if(draw_outline_highlight)
    {
        ofxUINoFill();
        ofxUISetColor(color_outline_highlight);
        rect->draw();
    }
}
コード例 #7
0
void ofxUIWidget::drawOutline()
{
    if(draw_outline)
    {
        ofxUINoFill();
        ofxUISetColor(color_outline);
        rect->draw();
    }
}