From d6b3a60fbcebbec84528e185361d6bdea69edaac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 11 Jan 2018 14:13:54 +0100 Subject: [PATCH] Documentation work Added missing bits of documentation for GLFW_HOVERED. --- docs/news.dox | 7 +++++++ include/GLFW/glfw3.h | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/docs/news.dox b/docs/news.dox index 39218055..df0064ca 100644 --- a/docs/news.dox +++ b/docs/news.dox @@ -116,6 +116,13 @@ full screen windows with the [GLFW_CENTER_CURSOR](@ref GLFW_CENTER_CURSOR_hint) window hint. It is enabled by default. +@subsection news_33_hover Mouse cursor hover window attribute + +GLFW now supports polling whether the cursor is hovering over the window client +area with the [GLFW_HOVERED](@ref GLFW_HOVERED_attrib) window attribute. This +attribute corresponds to the [cursor enter/leave](@ref cursor_enter) event. + + @subsection news_33_rawmotion Support for raw mouse motion GLFW now uses raw (unscaled and unaccelerated) mouse motion in disabled cursor diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 237dd55e..9b21de7d 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -814,6 +814,10 @@ extern "C" { * [window attribute](@ref GLFW_TRANSPARENT_FRAMEBUFFER_attrib). */ #define GLFW_TRANSPARENT_FRAMEBUFFER 0x0002000A +/*! @brief Mouse cursor hover window attribute. + * + * Mouse cursor hover [window attribute](@ref GLFW_HOVERED_attrib). + */ #define GLFW_HOVERED 0x0002000B /*! @brief Framebuffer bit depth hint.