godot/scene/gui/viewport_container.h
Juan Linietsky cf5778e51a -Added ViewportContainer, this is the only way to make viewports show up in GUI now
-2D editing now seems to work
-Added some functions and refactoring to Viewport
2016-10-05 01:26:35 -03:00

26 lines
447 B
C++

#ifndef VIEWPORTCONTAINER_H
#define VIEWPORTCONTAINER_H
#include "scene/gui/container.h"
class ViewportContainer : public Container {
OBJ_TYPE( ViewportContainer, Container );
bool stretch;
protected:
void _notification(int p_what);
static void _bind_methods();
public:
void set_stretch(bool p_enable);
bool is_stretch_enabled() const;
virtual Size2 get_minimum_size() const;
ViewportContainer();
};
#endif // VIEWPORTCONTAINER_H