131
131
dash::previews::Style const& style = dash::previews::Style::Instance();
133
auto on_mouse_down = [&](int x, int y, unsigned long button_flags, unsigned long key_flags) { this->preview_container_.OnMouseDown(x, y, button_flags, key_flags); };
133
135
text_ = new StaticCairoText("", false, NUX_TRACKER_LOCATION);
135
137
text_->SetFont(style.content_font());
136
138
text_->SetLineSpacing(5);
137
139
text_->SetTextEllipsize(StaticCairoText::NUX_ELLIPSIZE_MIDDLE);
139
142
nux::Layout* layout = new nux::Layout();
140
143
layout->AddView(text_.GetPointer(), 1);
143
149
cr_bubble_.reset(new nux::CairoWrapper(GetGeometry(), sigc::bind(sigc::mem_fun(this, &SocialPreviewContent::RedrawBubble), nux::ButtonVisualState::VISUAL_STATE_PRELIGHT)));