65
65
_search_icon->SetMinMaxSize (icon->GetWidth (), icon->GetHeight ());
66
66
_layout->AddView (_search_icon, 0, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL);
67
67
_search_icon->OnMouseClick.connect (sigc::mem_fun (this, &PlacesSearchBar::OnClearClicked));
69
70
_layered_layout = new nux::LayeredLayout ();
71
72
_hint = new nux::StaticCairoText (" ");
72
73
_hint->SetTextColor (nux::Color (1.0f, 1.0f, 1.0f, 0.5f));
73
75
_layered_layout->AddLayer (_hint);
75
77
_pango_entry = new nux::TextEntry ("", NUX_TRACKER_LOCATION);
76
78
_pango_entry->sigTextChanged.connect (sigc::mem_fun (this, &PlacesSearchBar::OnSearchChanged));
77
80
_pango_entry->activated.connect (sigc::mem_fun (this, &PlacesSearchBar::OnEntryActivated));
78
81
_layered_layout->AddLayer (_pango_entry);