MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mbgl::style::ImageSource Class Referencefinal

#include <image_source.hpp>

Inheritance diagram for mbgl::style::ImageSource:

Public Member Functions

 ImageSource (std::string id, std::array< LatLng, 4 >)
 
 ~ImageSource () override
 
std::optional< std::string > getURL () const
 
void setURL (const std::string &url)
 
void setImage (PremultipliedImage &&)
 
void setCoordinates (const std::array< LatLng, 4 > &)
 
std::array< LatLng, 4 > getCoordinates () const
 
const Impl & impl () const
 
void loadDescription (FileSource &) final
 
bool supportsLayerType (const mbgl::style::LayerTypeInfo *) const override
 
mapbox::base::WeakPtr< Source > makeWeakPtr () override
 

Protected Member Functions

Mutable< Source::Impl > createMutable () const noexcept final
 

Detailed Description

Definition at line 14 of file image_source.hpp.

Constructor & Destructor Documentation

◆ ImageSource()

mbgl::style::ImageSource::ImageSource ( std::string  id,
std::array< LatLng, 4 >   
)

◆ ~ImageSource()

mbgl::style::ImageSource::~ImageSource ( )
override

Member Function Documentation

◆ createMutable()

Mutable<Source::Impl> mbgl::style::ImageSource::createMutable ( ) const
finalprotectednoexcept

◆ getCoordinates()

std::array<LatLng, 4> mbgl::style::ImageSource::getCoordinates ( ) const

◆ getURL()

std::optional<std::string> mbgl::style::ImageSource::getURL ( ) const

◆ impl()

const Impl& mbgl::style::ImageSource::impl ( ) const

◆ loadDescription()

void mbgl::style::ImageSource::loadDescription ( FileSource )
final

◆ makeWeakPtr()

mapbox::base::WeakPtr<Source> mbgl::style::ImageSource::makeWeakPtr ( )
inlineoverride

Definition at line 34 of file image_source.hpp.

◆ setCoordinates()

void mbgl::style::ImageSource::setCoordinates ( const std::array< LatLng, 4 > &  )

◆ setImage()

void mbgl::style::ImageSource::setImage ( PremultipliedImage &&  )

◆ setURL()

void mbgl::style::ImageSource::setURL ( const std::string &  url)

◆ supportsLayerType()

bool mbgl::style::ImageSource::supportsLayerType ( const mbgl::style::LayerTypeInfo *  ) const
override

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