Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
1a35d365
Commit
1a35d365
authored
Jun 11, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made holding ctrl and clicking on an overlay rectangle set the color to the
default value as well as the label to the default.
parent
f7b395a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
widgets.cpp
dlib/gui_widgets/widgets.cpp
+1
-0
widgets_abstract.h
dlib/gui_widgets/widgets_abstract.h
+3
-2
No files found.
dlib/gui_widgets/widgets.cpp
View file @
1a35d365
...
...
@@ -6592,6 +6592,7 @@ namespace dlib
if
(
best_dist
<
13
)
{
overlay_rects
[
best_idx
].
label
=
default_rect_label
;
overlay_rects
[
best_idx
].
color
=
default_rect_color
;
highlighted_rect
=
best_idx
;
highlight_timer
.
stop
();
highlight_timer
.
start
();
...
...
dlib/gui_widgets/widgets_abstract.h
View file @
1a35d365
...
...
@@ -2351,8 +2351,9 @@ namespace dlib
on the part. If you want to move any rectangle or an object part then
shift+right click and drag it.
Finally, if you hold Ctrl and left click an overlay rectangle it will
change its label to get_default_overlay_rect_label().
Finally, if you hold Ctrl and left click an overlay rectangle it will
change its label to get_default_overlay_rect_label() and color to
get_default_overlay_rect_color().
The image is drawn such that:
- the pixel img[0][0] is the upper left corner of the image.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment