Reorganize inspector layout workflow for Control nodes
This commit is contained in:
@ -70,6 +70,24 @@ void AspectRatioContainer::set_alignment_vertical(AlignmentMode p_alignment_vert
|
||||
queue_sort();
|
||||
}
|
||||
|
||||
Vector<int> AspectRatioContainer::get_allowed_size_flags_horizontal() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
Vector<int> AspectRatioContainer::get_allowed_size_flags_vertical() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
void AspectRatioContainer::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_SORT_CHILDREN: {
|
||||
|
||||
Reference in New Issue
Block a user