diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2012-06-05 00:47:12 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2012-06-05 00:47:12 +0200 |
| commit | 2016b1a14b29c8af8719dd0063579d11aa24bce3 (patch) | |
| tree | 8770caa31b6c20e579634911407d005055646a2f /hud | |
| parent | 750fb8130392e9a4816bade0e25e4ee63004af1d (diff) | |
Add unity test for hud::View::SetQueries.
(bzr r2384.1.2)
Diffstat (limited to 'hud')
| -rw-r--r-- | hud/HudView.cpp | 6 | ||||
| -rw-r--r-- | hud/HudView.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/hud/HudView.cpp b/hud/HudView.cpp index 4cb8700d9..c0c0bcc9c 100644 --- a/hud/HudView.cpp +++ b/hud/HudView.cpp @@ -213,6 +213,12 @@ nux::View* View::default_focus() const return search_bar_->text_entry(); } +std::list<HudButton::Ptr> const& View::buttons() const +{ + return buttons_; +} + + void View::SetQueries(Hud::Queries queries) { // early exit, if the user is key navigating on the hud, we don't want to set new diff --git a/hud/HudView.h b/hud/HudView.h index 775287bbf..c39f31446 100644 --- a/hud/HudView.h +++ b/hud/HudView.h @@ -51,6 +51,7 @@ public: void Relayout(); nux::View* default_focus() const; + std::list<HudButton::Ptr> const& buttons() const; void SetQueries(Hud::Queries queries); void SetIcon(std::string icon_name, unsigned int tile_size, unsigned int size, unsigned int padding); |
