Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing implementation of tabbed_display::selected_tab #957

Merged
merged 1 commit into from
Nov 14, 2017
Merged

Adding missing implementation of tabbed_display::selected_tab #957

merged 1 commit into from
Nov 14, 2017

Conversation

shoeffner
Copy link
Contributor

This pull request adds a few lines to provide a getter for the selected tab in a tabbed_display.

In dlib/gui_widgets/widgets_abstract.h:1115 there is a getter for the currently selected tab in a tabbed_display. However, widgets.h and widget.cpp missed this, which I figured out when my code wouldn't link properly.

Out of curiosity, what is the reason to have basically two almost identical header definitions of the tabbed_display, one in widgets.h and one in widgets_abstract.h? The latter seems not to be picked up by the compiler (without my changes in widgets.h the new function wouldn't compile) and seems to be there mostly for the documentation purpose?

@davisking
Copy link
Owner

Awesome, thanks for the PR.

Yes, the _abstract.h files are documentation. They aren't compiled. This is discussed in the dlib introduction: http://dlib.net/intro.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants