~~Title: Efl.Ui.Popup.anchor~~
====== Efl.Ui.Popup.anchor ======
===== Description =====
%%The anchor object is the reference object for positioning a Popup using the %%[[:develop:api:efl:ui:popup:property:align|Efl.Ui.Popup.align]]%% and %%[[:develop:api:efl:ui:popup:property:align_priority|Efl.Ui.Popup.align_priority]]%% properties.%%
%%A Popup will recalculate its alignment relative to its anchor and change its position when: - the anchor object is moved (unless the anchor is a window) - the anchor object is resized - the Popup is resized - the parent window is resized%%
%%If %%[[:develop:api:efl:ui:popup:property:anchor|Efl.Ui.Popup.anchor.get]]%% returns %%''NULL''%%, the anchor is the parent window of the Popup. If the anchor object is set to %%''NULL''%%, the Popup will no longer recalculate its alignment or change its position under any circumstance. If the Popup is moved by using %%[[:develop:api:efl:gfx:entity:property:position|Efl.Gfx.Entity.position.set]]%%, %%''anchor''%% is set %%''NULL''%%.%%
//Since 1.23//
{{page>:develop:api-include:efl:ui:popup:property:anchor:description&nouser&nolink&nodate}}
===== Values =====
* **anchor** - %%The object which Popup is following. By default this is %%''NULL''%%.%%
===== Signature =====
@property anchor {
get {}
set {}
values {
anchor: Efl.Canvas.Object;
}
}
===== C signature =====
Efl_Canvas_Object *efl_ui_popup_anchor_get(const Eo *obj);
void efl_ui_popup_anchor_set(Eo *obj, Efl_Canvas_Object *anchor);
===== Implemented by =====
* [[:develop:api:efl:ui:popup:property:anchor|Efl.Ui.Popup.anchor]]