diff options
author | falkTX <falktx@gmail.com> | 2018-09-30 20:57:15 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2018-09-30 20:57:15 +0200 |
commit | 1770a175bd01a5d8287da8314d0720f8728ac20e (patch) | |
tree | c8b06b703d4100d9fd03aef369f832ebf70a8bac /dgl/src | |
parent | b526e381cc065e44dc8ec7620c1725b203a3ee85 (diff) |
Expose get/setIgnoringKeyRepeat in Window class
Fixes #15
Diffstat (limited to 'dgl/src')
-rw-r--r-- | dgl/src/Window.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp index 18c0d5f6..c8e230a7 100644 --- a/dgl/src/Window.cpp +++ b/dgl/src/Window.cpp @@ -710,6 +710,18 @@ struct Window::PrivateData { // ------------------------------------------------------------------- + bool getIgnoringKeyRepeat() const noexcept + { + return fView->ignoreKeyRepeat; + } + + void setIgnoringKeyRepeat(bool ignore) noexcept + { + puglIgnoreKeyRepeat(fView, ignore); + } + + // ------------------------------------------------------------------- + void addWidget(Widget* const widget) { fWidgets.push_back(widget); @@ -1333,6 +1345,16 @@ void Window::setScaling(double scaling) noexcept pData->setScaling(scaling); } +bool Window::getIgnoringKeyRepeat() const noexcept +{ + return pData->getIgnoringKeyRepeat(); +} + +void Window::setIgnoringKeyRepeat(bool ignore) noexcept +{ + pData->setIgnoringKeyRepeat(ignore); +} + Application& Window::getApp() const noexcept { return pData->fApp; |