You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Reorganize inspector layout workflow for Control nodes
This commit is contained in:
@@ -336,6 +336,30 @@ bool SplitContainer::is_collapsed() const {
|
||||
return collapsed;
|
||||
}
|
||||
|
||||
Vector<int> SplitContainer::get_allowed_size_flags_horizontal() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
if (!vertical) {
|
||||
flags.append(SIZE_EXPAND);
|
||||
}
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
Vector<int> SplitContainer::get_allowed_size_flags_vertical() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
if (vertical) {
|
||||
flags.append(SIZE_EXPAND);
|
||||
}
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
void SplitContainer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_split_offset", "offset"), &SplitContainer::set_split_offset);
|
||||
ClassDB::bind_method(D_METHOD("get_split_offset"), &SplitContainer::get_split_offset);
|
||||
|
||||
Reference in New Issue
Block a user