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

Method draw

dlib/test/gui/main.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void draw (
77 const canvas& c
78 ) const
79 {
80 if (hidden == false )
81 {
82 fill_rect(c,rect,rgb_pixel(red,green,blue));
83 std::vector<point> poly;
84 poly.push_back((rect.tl_corner()+rect.tr_corner())/2);
85 poly.push_back((rect.tr_corner()+rect.br_corner())/2);
86 poly.push_back((rect.br_corner()+rect.bl_corner())/2);
87 poly.push_back((rect.bl_corner()+rect.tl_corner())/2);
88 draw_solid_convex_polygon(c,poly,rgb_alpha_pixel(0,0,0,70));
89 }
90 }
91
92 void on_wheel_up(
93 unsigned long state

Callers

nothing calls this directly

Calls 9

rgb_pixelClass · 0.85
rgb_alpha_pixelClass · 0.85
fill_rectFunction · 0.50
push_backMethod · 0.45
tl_cornerMethod · 0.45
tr_cornerMethod · 0.45
br_cornerMethod · 0.45
bl_cornerMethod · 0.45

Tested by

no test coverage detected