void ImageBaseView::set_highlighted_image(const std::shared_ptr<ImageSource> &image) { impl->highlighted_image = image; impl->canvas_highlighted_image = nullptr; set_needs_render(); set_needs_layout(); }
void SliderView::set_vertical() { impl->_vertical = true; impl->thumb->style()->set("position: absolute; top: 0px; left: auto"); set_needs_layout(); }
void ImageView::set_image(const std::shared_ptr<ImageSource> &image) { impl->image = image; impl->canvas_image = Image(); set_needs_render(); set_needs_layout(); }
void ScrollView::set_overflow_y(ContentOverflow value) { if (impl->overflow_y == value) return; impl->overflow_y = value; set_needs_layout(); }
void LabelView::set_text(const std::string &value, bool force_no_layout) { impl->_text = value; if (force_no_layout) draw_without_layout(); else // Can change size and then invalidate whole window. set_needs_layout(); }
void SliderView::set_page_step(int page_step) { impl->_page_step = page_step; set_needs_layout(); }
void SliderView::set_tick_count(int tick_count) { impl->_tick_count = tick_count; set_needs_layout(); }
void SliderView::set_horizontal() { impl->_vertical = false; impl->thumb->style()->set("position: absolute; left: 0px; top: auto"); set_needs_layout(); }
void LabelView::set_text(const std::string &value) { impl->_text = value; set_needs_layout(); }
void LabelView::set_line_break_mode(LineBreakMode value) { impl->_line_break_mode = value; set_needs_layout(); }
void SpanLayoutView::add_text(const std::string &text, const TextStyle &style) { impl->add_text(text, style); set_needs_layout(); set_needs_render(); }
void SpanLayoutView::set_text_alignment(TextAlignment alignment) { impl->set_text_alignment(alignment); set_needs_layout(); set_needs_render(); }