#include <TextureLayoutRectangle.h>

Public Member Functions | |
| TextureLayoutRectangle (int id, const Vector2i &dimensions) | |
| int | GetId () const |
| const Vector2i & | GetPosition () const |
| const Vector2i & | GetDimensions () const |
| void | Place (int texture_index, const Vector2i &position) |
| void | Unplace () |
| Unplaces the rectangle. | |
| bool | IsPlaced () const |
| void | Allocate (byte *texture_data, int texture_stride) |
| int | GetTextureIndex () |
| byte * | GetTextureData () |
| int | GetTextureStride () const |
| int Rocket::Core::TextureLayoutRectangle::GetId | ( | ) | const |
Returns the rectangle's id.
| const Vector2i & Rocket::Core::TextureLayoutRectangle::GetPosition | ( | ) | const |
Returns the rectangle's position; this is only valid if it has been placed.
| const Vector2i & Rocket::Core::TextureLayoutRectangle::GetDimensions | ( | ) | const |
Returns the rectangle's dimensions.
| void Rocket::Core::TextureLayoutRectangle::Place | ( | int | texture_index, | |
| const Vector2i & | position | |||
| ) |
Places the rectangle within a texture.
| [in] | texture_index | The index of the texture this rectangle is placed on. |
| [in] | position | The position within the texture of this rectangle's top-left corner. |
| bool Rocket::Core::TextureLayoutRectangle::IsPlaced | ( | ) | const |
Returns the rectangle's placed state.
| void Rocket::Core::TextureLayoutRectangle::Allocate | ( | byte * | texture_data, | |
| int | texture_stride | |||
| ) |
Sets the rectangle's texture data and stride.
| [in] | texture_data | The pointer to the top-left corner of the texture's data. |
| [in] | texture_stride | The stride of the texture data, in bytes. |
| int Rocket::Core::TextureLayoutRectangle::GetTextureIndex | ( | ) |
Returns the index of the texture this rectangle is placed on.
| byte * Rocket::Core::TextureLayoutRectangle::GetTextureData | ( | ) |
Returns the rectangle's allocated texture data.
| int Rocket::Core::TextureLayoutRectangle::GetTextureStride | ( | ) | const |
Returns the stride of the rectangle's texture data.