mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2024-11-17 22:17:19 +01:00
28 lines
521 B
C++
28 lines
521 B
C++
#ifndef CENTER_CONTAINER_H
|
|
#define CENTER_CONTAINER_H
|
|
|
|
/* center_container.h */
|
|
|
|
|
|
#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
|