Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
Tile Class Reference

#include <tile.hh>

Collaboration diagram for Tile:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< Tile >
 
using WeakPtr = std::weak_ptr< Tile >
 

Public Member Functions

 Tile (int width_, int height_, int bpp_, Scroom::MemoryBlobs::RawPageData::Ptr data_)
 

Static Public Member Functions

static Tile::Ptr create (int width, int height, int bpp, Scroom::MemoryBlobs::RawPageData::Ptr data)
 

Public Attributes

int width
 
int height
 
int bpp
 
Scroom::MemoryBlobs::RawPageData::Ptr data
 

Member Typedef Documentation

◆ Ptr

using Tile::Ptr = std::shared_ptr<Tile>

◆ WeakPtr

using Tile::WeakPtr = std::weak_ptr<Tile>

Constructor & Destructor Documentation

◆ Tile()

Tile::Tile ( int  width_,
int  height_,
int  bpp_,
Scroom::MemoryBlobs::RawPageData::Ptr  data_ 
)
inline
29 : width(width_)
30 , height(height_)
31 , bpp(bpp_)
32 , data(std::move(data_))
33 {
34 }
Scroom::MemoryBlobs::RawPageData::Ptr data
Definition tile.hh:25
int height
Definition tile.hh:23
int bpp
Definition tile.hh:24
int width
Definition tile.hh:22

Member Function Documentation

◆ create()

static Tile::Ptr Tile::create ( int  width,
int  height,
int  bpp,
Scroom::MemoryBlobs::RawPageData::Ptr  data 
)
inlinestatic
37 {
38 return std::make_shared<Tile>(width, height, bpp, std::move(data));
39 }

Member Data Documentation

◆ bpp

int Tile::bpp

Referenced by create().

◆ data

◆ height

int Tile::height

Referenced by create().

◆ width

int Tile::width

Referenced by create().


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