NasNas
An intuitive and beginner friendly 2D game framework for C++
Classes | Public Types | Public Member Functions | List of all members
ns::ui::NineSlice Class Reference
Inheritance diagram for ns::ui::NineSlice:

Public Types

enum  Mode { Stretch, Repeat }
 

Public Member Functions

 NineSlice (Mode mode=Mode::Stretch)
 
 NineSlice (const sf::Texture &texture, Mode mode=Mode::Stretch)
 
 NineSlice (const sf::Texture &texture, const sf::IntRect &rect, Mode mode=Mode::Stretch)
 
void setMode (Mode mode)
 
void setTexture (const sf::Texture &texture, bool reset_rect=false)
 
void setTextureRect (const sf::IntRect &rect)
 
void setSlices (int left, int right, int top, int bottom)
 
void setSize (const sf::Vector2i &size)
 
void setSize (int width, int height)
 
auto getSize () -> const sf::Vector2f &
 
auto getGlobalBounds () const -> sf::FloatRect
 

Detailed Description

Definition at line 15 of file NineSlice.hpp.


The documentation for this class was generated from the following file: