pandemonium_engine_minimal/scene/gui/center_container.h

28 lines
521 B
C++
Raw Normal View History

2023-12-14 21:54:22 +01:00
#ifndef CENTER_CONTAINER_H
#define CENTER_CONTAINER_H
2023-12-14 21:54:22 +01:00
/* center_container.h */
2023-12-14 21:54:22 +01:00
#include "scene/gui/container.h"
class CenterContainer : public Container {
GDCLASS(CenterContainer, Container);
bool use_top_left;
protected:
void _notification(int p_what);
static void _bind_methods();
public:
void set_use_top_left(bool p_enable);
bool is_using_top_left() const;
virtual Size2 get_minimum_size() const;
CenterContainer();
};
#endif // CENTER_CONTAINER_H