Languages

Menu
Sites
Language
[FEEDBACK] missing API in Tizen::Ui::Controls:: Header/Footer.

Hi,

Both Tizen::Ui::Controls::Header and Tizen::Ui::Controls::Footer are Control-s, but not fully-fledged Container-s.

PROBLEM 1:

The number of items in a Header/Footer can be queried with GetItemCount(), but there is no way to get each individual HeaderItem/FooterItem, or at least its action id. Effectively, for example there is no way to discover an item index, given an action id. This would be very useful when (safely) mapping a particular action to a particular Header/Footer item index - to disable or enable it contextually.

Needed:

result GetItemAt(int itemIndex, FooterItem& item) const;

or:

result GetItemActionIdAt(int itemIndex, int& actionId) const;

Similar:

(I could swear I saw something along the lines of ::GetActionIdForIndex() somewhere in the Tizen API.)

PROBLEM 2:

There is no way to get exact bounds of an item in a Header/Footer, given an index. This would be very useful when presenting a ContextMenu over a particular Header/Footer item. (The bounds can be approximated with some creative mathematics, but not (safely) queried directly.)

Needed:

Tizen::Graphics::Rectangle GetItemBounds(int itemIndex) const;
Tizen::Graphics::FloatRectangle GetItemBoundsF(int itemIndex) const;

Similar:

Tizen::Graphics::Rectangle GetButtonBounds(ButtonPosition position) const;
Tizen::Graphics::FloatRectangle GetButtonBoundsF(ButtonPosition position) const;

---

Just my $0.02.

Gary

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
Alex Dem
Hi You could suggest this enhancement via https://bugs.tizen.org/jira and create appropriate bug there. I hope it will be fastest way. p.s. There is another known problem with Tizen::Ui::Controls::Header/Footer/Button. For example you unable to get pointer to Header/Footer/Button Item controls which were created with Native UI Builder. Alexey.
Gary V
Alexey, I think Samsung guys and gals monitor these forums and decide whether to create a Tizen bug report - isn't that right? Gary
Alex Dem
I think likewise. I hope that your enhancements are in Samsung now. Alexey.