Exemplo n.º 1
0
//--------------------------------------------------------------
void LayerTransform::setWidth(float w) {
    this->size.x = w;
    onSetSize();
    ofRectangle rect = getRectangle();
    ofNotifyEvent(sizeChangeEvent,rect,this);
}
Exemplo n.º 2
0
View& View::setSize(const glm::vec3 &v) {
	onSetSize(v);
	return *this;
}
Exemplo n.º 3
0
//--------------------------------------------------------------
void LayerTransform::setSize(float w, float h) {
    this->size.set(w, h, 0);
    onSetSize();
    ofRectangle rect = getRectangle();
    ofNotifyEvent(sizeChangeEvent,rect,this);
}