Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Tile Class Reference
+ Collaboration diagram for Tile:
Collaboration graph
[legend]

Public Member Functions

 Tile (const QPoint &pos, QSize size)
 
const QPixmap & pixmap () const
 
QPixmap & pixmap ()
 
const QPoint & pos () const
 
const QPointF & posF () const
 
const QRect & bounds () const
 
const QSize & size () const
 
void load (const QImage &image, const QPoint &topLeft)
 Loads the input image into the tile.
 
void clear ()
 

Private Attributes

QPixmap mTilePixmap
 
QPointF mPosF
 
QPoint mPos
 
QRect mBounds
 
QSize mSize
 

Detailed Description

Definition at line 23 of file tile.h.

Constructor & Destructor Documentation

◆ Tile()

Tile::Tile ( const QPoint &  pos,
QSize  size 
)
explicit

Definition at line 21 of file tile.cpp.

◆ ~Tile()

Tile::~Tile ( )

Definition at line 31 of file tile.cpp.

Member Function Documentation

◆ bounds()

const QRect & Tile::bounds ( ) const
inline

Definition at line 35 of file tile.h.

◆ clear()

void Tile::clear ( )

Definition at line 44 of file tile.cpp.

◆ load()

void Tile::load ( const QImage &  image,
const QPoint &  topLeft 
)

Loads the input image into the tile.

Definition at line 35 of file tile.cpp.

◆ pixmap() [1/2]

QPixmap & Tile::pixmap ( )
inline

Definition at line 31 of file tile.h.

◆ pixmap() [2/2]

const QPixmap & Tile::pixmap ( ) const
inline

Definition at line 30 of file tile.h.

◆ pos()

const QPoint & Tile::pos ( ) const
inline

Definition at line 33 of file tile.h.

◆ posF()

const QPointF & Tile::posF ( ) const
inline

Definition at line 34 of file tile.h.

◆ size()

const QSize & Tile::size ( ) const
inline

Definition at line 36 of file tile.h.

Member Data Documentation

◆ mBounds

QRect Tile::mBounds
private

Definition at line 46 of file tile.h.

◆ mPos

QPoint Tile::mPos
private

Definition at line 45 of file tile.h.

◆ mPosF

QPointF Tile::mPosF
private

Definition at line 44 of file tile.h.

◆ mSize

QSize Tile::mSize
private

Definition at line 47 of file tile.h.

◆ mTilePixmap

QPixmap Tile::mTilePixmap
private

Definition at line 43 of file tile.h.


The documentation for this class was generated from the following files:
  • core_lib/src/graphics/bitmap/tile.h
  • core_lib/src/graphics/bitmap/tile.cpp
Generated on Thu May 8 2025 04:47:54 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39