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

Function resize_rect_width

dlib/geometry/rectangle.h:706–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

704// ----------------------------------------------------------------------------------------
705
706 inline const rectangle resize_rect_width (
707 const rectangle& rect,
708 unsigned long width
709 )
710 {
711 return rectangle(rect.left(),rect.top(),
712 rect.left()+width-1,
713 rect.bottom());
714 }
715
716// ----------------------------------------------------------------------------------------
717

Callers 2

add_menu_itemMethod · 0.85

Calls 4

rectangleClass · 0.70
leftMethod · 0.45
topMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected