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
@@ -104,6 +104,11 @@ struct uiLayout : uiItem {
|
||||
float search_weight_;
|
||||
|
||||
public:
|
||||
blender::ui::EmbossType emboss() const;
|
||||
void emboss_set(blender::ui::EmbossType emboss);
|
||||
|
||||
/** Sub-layout items. */
|
||||
|
||||
uiLayout &absolute(bool align);
|
||||
uiBlock *absolute_block();
|
||||
|
||||
@@ -478,7 +483,6 @@ void uiLayoutSetScaleX(uiLayout *layout, float scale);
|
||||
void uiLayoutSetScaleY(uiLayout *layout, float scale);
|
||||
void uiLayoutSetUnitsX(uiLayout *layout, float unit);
|
||||
void uiLayoutSetUnitsY(uiLayout *layout, float unit);
|
||||
void uiLayoutSetEmboss(uiLayout *layout, blender::ui::EmbossType emboss);
|
||||
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep);
|
||||
void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep);
|
||||
int uiLayoutGetLocalDir(const uiLayout *layout);
|
||||
@@ -498,7 +502,6 @@ float uiLayoutGetScaleX(uiLayout *layout);
|
||||
float uiLayoutGetScaleY(uiLayout *layout);
|
||||
float uiLayoutGetUnitsX(uiLayout *layout);
|
||||
float uiLayoutGetUnitsY(uiLayout *layout);
|
||||
blender::ui::EmbossType uiLayoutGetEmboss(uiLayout *layout);
|
||||
bool uiLayoutGetPropSep(uiLayout *layout);
|
||||
bool uiLayoutGetPropDecorate(uiLayout *layout);
|
||||
Panel *uiLayoutGetRootPanel(uiLayout *layout);
|
||||
|
||||
Reference in New Issue
Block a user