<commit_before>/*
 NUI3 - C++ cross-platform GUI framework for OpenGL based applications
 Copyright (C) 2002-2003 <NAME> & <NAME>
 
 licence: see nui3/LICENCE.TXT
 */

#pragma once

class nuiSprite : public nuiObject
{
public:
  nuiSprite();
  virtual ~nuiSprite();

  //! State management
  int32 GetStateCount() const;
  const nglString& GetStateName(int32 index) const;

  int32 GetState(int32 index) const;
  void SetState(int32 index);
  
};


class nuiSpriteView : public nuiSimpleContainer
{
public:
  nuiSpriteView();
  virtual ~nuiSpriteView();
  
  void AddSprite(nuiSprite* pSprite);
  void DelSprite(nuiSprite* pSprite);
  
};<commit_msg>today, I found the time to type about 10 lines of code. Amazing...<commit_after>/*
 NUI3 - C++ cross-platform GUI framework for OpenGL based applications
 Copyright (C) 2002-2003 <NAME> & <NAME>
 
 licence: see nui3/LICENCE.TXT
 */

#pragma once

class nuiTexture;

class nuiSpriteFrame
{
public:
  nuiSpriteFrame();
  virtual ~nuiSpriteFrame();
  
  bool SetTexture(nuiTexture* pTexture, const nuiRect& rRect);
  bool SetTexture(const nglPath& rPath, const nuiRect& rRect);
  bool SetTexture(const nglPath& rPath);

  void SetRect(const nuiRect& rRect);
  void SetHandle(float x, float y);
  
  const nglPath& GetTexturePath() const;
  nuiTexture* GetTexture() const;
  const nuiRect& GetRect();
  
  float GetHandleX() const;
  float GetHandleY() const;

protected:
  nuiTexture* mpTexture;
  nuiRect mRect; ///< Rectangle inside mpTexture occupied by the sprite pixels
  float mX, mY; ///< Handle position
};

class nuiSpriteDef
{
public:
  nuiSpriteDef();
  virtual ~nuiSpriteDef();
  
  
};

class nuiSprite : public nuiObject
{
public:
  nuiSprite();
  virtual ~nuiSprite();

  const nuiSpriteDef& GetDefinition() const;
  
  //! State management
  int32 GetStateCount() const;
  const nglString& GetStateName(int32 index) const;

  int32 GetState(int32 index) const;
  void SetState(int32 index);
  
};


class nuiSpriteView : public nuiSimpleContainer
{
public:
  nuiSpriteView();
  virtual ~nuiSpriteView();
  
  void AddSprite(nuiSprite* pSprite);
  void DelSprite(nuiSprite* pSprite);
  
};
{'fraction_non_alphanumeric': 0.10692701069270107, 'fraction_numerical': 0.019525801952580194, 'mean_word_length': 4.300492610837439, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '625714', 'n_tokens_mistral': 765, 'n_tokens_neox': 751, 'n_words': 208}