MCPcopy Create free account
hub / github.com/davisking/dlib / set_style

Method set_style

dlib/gui_widgets/widgets.h:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 typename style_type
228 >
229 void set_style (
230 const style_type& style_
231 )
232 {
233 auto_mutex M(m);
234 style.reset(new style_type(style_));
235 rect = move_rect(style->get_min_size(name_,*mfont), rect.left(), rect.top());
236 parent.invalidate_rectangle(rect);
237 }
238
239 template <
240 typename T

Callers

nothing calls this directly

Calls 5

move_rectFunction · 0.85
get_min_sizeMethod · 0.80
resetMethod · 0.45
leftMethod · 0.45
topMethod · 0.45

Tested by

no test coverage detected