Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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 14 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)) {}
FlTexture * 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}
ISize64 ISize
Definition: size.h:140

◆ 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: