<commit_before>/*
  NUI3 - C++ cross-platform GUI framework for OpenGL based applications
  Copyright (C) 2002-2003 <NAME>

  licence: see nui3/LICENCE.TXT
*/

#ifndef __nuiRange_h__
#define __nuiRange_h__

//#include "nui.h"
#include "nuiEvent.h"
#include "nuiRect.h"
#include "nuiEventRegistry.h"


#include <limits>

/// This class implements the behaviour of a range such as what is needed by a scroll bar for exemple. 
class NUI_API nuiRange
{
public:
  nuiRange(double Value=0, double Min=0, double Max=50, double Increment=1, double PageIncrement=10, double PageSize=10, double Origin = std::numeric_limits<double>::quiet_NaN());
  nuiRange(const nuiRange& rRange);
  virtual ~nuiRange();

  void SetValue(double Value);
  void SetRange(double Minimum,double Maximum);
  void SetIncrement(double Increment);
  void SetPageIncrement(double PageIncrement);
  void SetPageSize(double Size);
  void SetOrigin(double Origin);
  void SetValueAndSize(double Value, double Size);

  void Increment();
  void Decrement();
  void PageIncrement();
  void PageDecrement();
  bool MakeInRange(double Position, double Size = 0.0);

  double GetValue() const;
  double GetMinimum() const;
  double GetMaximum() const;
  double GetIncrement() const;
  double GetPageIncrement() const;
  double GetPageSize() const;
  double GetOrigin() const;
  double GetRange() const;<commit_msg>Set nuiRange's page size default value to 0 instead of 10<commit_after>/*
  NUI3 - C++ cross-platform GUI framework for OpenGL based applications
  Copyright (C) 2002-2003 <NAME>

  licence: see nui3/LICENCE.TXT
*/

#ifndef __nuiRange_h__
#define __nuiRange_h__

//#include "nui.h"
#include "nuiEvent.h"
#include "nuiRect.h"
#include "nuiEventRegistry.h"


#include <limits>

/// This class implements the behaviour of a range such as what is needed by a scroll bar for exemple. 
class NUI_API nuiRange
{
public:
  nuiRange(double Value=0, double Min=0, double Max=50, double Increment=1, double PageIncrement=10, double PageSize=0, double Origin = std::numeric_limits<double>::quiet_NaN());
  nuiRange(const nuiRange& rRange);
  virtual ~nuiRange();

  void SetValue(double Value);
  void SetRange(double Minimum,double Maximum);
  void SetIncrement(double Increment);
  void SetPageIncrement(double PageIncrement);
  void SetPageSize(double Size);
  void SetOrigin(double Origin);
  void SetValueAndSize(double Value, double Size);

  void Increment();
  void Decrement();
  void PageIncrement();
  void PageDecrement();
  bool MakeInRange(double Position, double Size = 0.0);

  double GetValue() const;
  double GetMinimum() const;
  double GetMaximum() const;
  double GetIncrement() const;
  double GetPageIncrement() const;
  double GetPageSize() const;
  double GetOrigin() const;
  double GetRange() const;
{'fraction_non_alphanumeric': 0.10441334768568353, 'fraction_numerical': 0.015787585217079295, 'mean_word_length': 5.154525386313466, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5787344', 'n_tokens_mistral': 925, 'n_tokens_neox': 878, 'n_words': 281}