Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
1a35d365
Commit
1a35d365
authored
Jun 10, 2016
by
Davis King
Browse files
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
dlib/gui_widgets/widgets.cpp
dlib/gui_widgets/widgets.cpp
+1
-0
dlib/gui_widgets/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
...
@@ -6592,6 +6592,7 @@ namespace dlib
if
(
best_dist
<
13
)
if
(
best_dist
<
13
)
{
{
overlay_rects
[
best_idx
].
label
=
default_rect_label
;
overlay_rects
[
best_idx
].
label
=
default_rect_label
;
overlay_rects
[
best_idx
].
color
=
default_rect_color
;
highlighted_rect
=
best_idx
;
highlighted_rect
=
best_idx
;
highlight_timer
.
stop
();
highlight_timer
.
stop
();
highlight_timer
.
start
();
highlight_timer
.
start
();
...
...
dlib/gui_widgets/widgets_abstract.h
View file @
1a35d365
...
@@ -2352,7 +2352,8 @@ namespace dlib
...
@@ -2352,7 +2352,8 @@ namespace dlib
shift+right click and drag it.
shift+right click and drag it.
Finally, if you hold Ctrl and left click an overlay rectangle it will
Finally, if you hold Ctrl and left click an overlay rectangle it will
change its label to get_default_overlay_rect_label().
change its label to get_default_overlay_rect_label() and color to
get_default_overlay_rect_color().
The image is drawn such that:
The image is drawn such that:
- the pixel img[0][0] is the upper left corner of the image.
- 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