Flutter Impeller
impeller::Image Class Reference

#include <image.h>

Public Member Functions

 Image (std::shared_ptr< Texture > texture)
 
 ~Image ()
 
ISize GetSize () const
 
std::shared_ptr< TextureGetTexture () const
 

Detailed Description

Definition at line 15 of file image.h.

Constructor & Destructor Documentation

◆ Image()

impeller::Image::Image ( std::shared_ptr< Texture texture)
explicit

Definition at line 9 of file image.cc.

9 : texture_(std::move(texture)) {}

◆ ~Image()

impeller::Image::~Image ( )
default

Member Function Documentation

◆ GetSize()

ISize impeller::Image::GetSize ( ) const

Definition at line 13 of file image.cc.

13  {
14  return texture_ ? texture_->GetSize() : ISize{};
15 }

◆ GetTexture()

std::shared_ptr< Texture > impeller::Image::GetTexture ( ) const

Definition at line 17 of file image.cc.

17  {
18  return texture_;
19 }

The documentation for this class was generated from the following files:
impeller::ISize
TSize< int64_t > ISize
Definition: size.h:138