Refactor: UI: Replace uiLayoutSetEmboss and uiLayoutGetEmboss with uiLayout methods
This converts `uiLayoutSetEmboss` and `uiLayoutGetEmboss` function APIs to objects methods following recent `uiLayout` refactors. Part of: #117604 Pull Request: https://projects.blender.org/blender/blender/pulls/139811
This commit is contained in:
committed by
Pratik Borhade
parent
8daea1d0b2
commit
25873ccf53
@@ -5156,9 +5156,9 @@ void uiLayoutSetUnitsY(uiLayout *layout, float unit)
|
||||
layout->units_[1] = unit;
|
||||
}
|
||||
|
||||
void uiLayoutSetEmboss(uiLayout *layout, blender::ui::EmbossType emboss)
|
||||
void uiLayout::emboss_set(blender::ui::EmbossType emboss)
|
||||
{
|
||||
layout->emboss_ = emboss;
|
||||
emboss_ = emboss;
|
||||
}
|
||||
|
||||
bool uiLayoutGetPropSep(uiLayout *layout)
|
||||
@@ -5256,12 +5256,12 @@ float uiLayoutGetUnitsY(uiLayout *layout)
|
||||
return layout->units_[1];
|
||||
}
|
||||
|
||||
blender::ui::EmbossType uiLayoutGetEmboss(uiLayout *layout)
|
||||
blender::ui::EmbossType uiLayout::emboss() const
|
||||
{
|
||||
if (layout->emboss_ == blender::ui::EmbossType::Undefined) {
|
||||
return layout->root_->block->emboss;
|
||||
if (emboss_ == blender::ui::EmbossType::Undefined) {
|
||||
return root_->block->emboss;
|
||||
}
|
||||
return layout->emboss_;
|
||||
return emboss_;
|
||||
}
|
||||
|
||||
int uiLayoutListItemPaddingWidth()
|
||||
|
||||
Reference in New Issue
Block a user