aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiEditBox.cpp
Commit message (Expand)AuthorAge
* Use utf-8 for the Irrlicht clipboard (#11538)DS2021-08-23
* GUIEditBox: Allow selecting and copying read-only textsSmallJoker2021-05-22
* Make edit boxes respond to string input (IME) (#11156)yw052021-04-05
* Drop old text input workarounds (#11089)sfan52021-03-19
* Make hypertext and textarea have proper scroll event propagation. (#10860)Vincent Robinson2021-01-23
* Factorize more guiEditBoxes code (#10789)Loïc Blot2021-01-13
* Refactor/gui editbox (#10787)Loïc Blot2021-01-07
* refacto: factorize multiple code parts from guiEditbox childs (#10782)Loïc Blot2021-01-04
"> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <condition_variable> /** A syncronization primitive that will wake up one waiting thread when signaled. * Calling @c signal() multiple times before a waiting thread has had a chance * to notice the signal will wake only one thread. Additionally, if no threads * are waiting on the event when it is signaled, the next call to @c wait() * will return (almost) immediately. */ class Event { public: void wait(); void signal(); private: std::condition_variable cv; std::mutex mutex; bool notified = false; };