diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-16 19:20:44 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-16 19:20:44 -0600 |
commit | 8397d6ca465653b01dd5bee7533e0573f5f6ce9a (patch) | |
tree | 4a3206546e9e9860e7d324f3b6b04d901e858b61 /NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx | |
parent | 3889dd0fd47a5ebaeb8886b31f354c718bfcfdb0 (diff) | |
download | nuttx-8397d6ca465653b01dd5bee7533e0573f5f6ce9a.tar.gz nuttx-8397d6ca465653b01dd5bee7533e0573f5f6ce9a.tar.bz2 nuttx-8397d6ca465653b01dd5bee7533e0573f5f6ce9a.zip |
Misc changes related to MediaPlayer. Nothing really significant
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx b/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx index b75ff736d..da7150ef7 100644 --- a/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx +++ b/NxWidgets/libnxwidgets/src/cglyphsliderhorizontal.cxx @@ -76,8 +76,8 @@ #include <nuttx/config.h> -#include <stdint.h> -#include <stdbool.h> +#include <cstdint> +#include <cstdbool> #include "cwidgetcontrol.hxx" #include "cglyphsliderhorizontal.hxx" @@ -112,25 +112,25 @@ CGlyphSliderHorizontal::CGlyphSliderHorizontal(CWidgetControl * pWidgetControl, nxwidget_pixel_t fillColor, bool fill) :CNxWidget(pWidgetControl, x, y, width, height, WIDGET_DRAGGABLE) { - m_minimumValue = 0; - m_maximumValue = 0; - m_contentSize = 0; - m_value = 0; - m_minimumGripWidth = 10; - m_pageSize = 1; - m_fillColor = fillColor; - m_fill = fill; - m_barThickness = 8; - - m_flags.permeable = false; - m_flags.borderless = false; + m_minimumValue = 0; + m_maximumValue = 0; + m_contentSize = 0; + m_value = 0; + m_minimumGripWidth = 10; + m_pageSize = 1; + m_fillColor = fillColor; + m_fill = fill; + m_barThickness = 8; + + m_flags.permeable = false; + m_flags.borderless = false; m_flags.doubleClickable = false; // Create grip CRect rect; getClientRect(rect); - m_gutterWidth = rect.getWidth(); + m_gutterWidth = rect.getWidth(); // Create grip @@ -214,7 +214,7 @@ void CGlyphSliderHorizontal::handleDragEvent(const CWidgetEventArgs & e) { // Handle grip events - if ((e.getSource() == m_grip) && (e.getSource() != NULL)) + if (e.getSource() == m_grip && e.getSource() != NULL) { int32_t newValue = getGripValue() >> 16; |