ManaPlus
Static Public Member Functions | Data Fields
anonymous_namespace{subimagesetloader.cpp}::SubImageSetLoader Struct Reference

Static Public Member Functions

static Resourceload (const void *const v)
 

Data Fields

Image *const parent
 
int width
 
int height
 

Detailed Description

Definition at line 38 of file subimagesetloader.cpp.

Member Function Documentation

◆ load()

static Resource* anonymous_namespace{subimagesetloader.cpp}::SubImageSetLoader::load ( const void *const  v)
inlinestatic

Definition at line 45 of file subimagesetloader.cpp.

46  {
47  if (v == nullptr)
48  return nullptr;
49 
50  const SubImageSetLoader *const
51  rl = static_cast<const SubImageSetLoader *>(v);
52 
53  if (rl->parent == nullptr)
54  return nullptr;
55  ImageSet *const res = new ImageSet(rl->parent,
56  rl->width,
57  rl->height,
58  0,
59  0);
60  return res;
61  }

References height, parent, and width.

Field Documentation

◆ height

int anonymous_namespace{subimagesetloader.cpp}::SubImageSetLoader::height

Definition at line 44 of file subimagesetloader.cpp.

Referenced by load().

◆ parent

Image* const anonymous_namespace{subimagesetloader.cpp}::SubImageSetLoader::parent

Definition at line 42 of file subimagesetloader.cpp.

Referenced by load().

◆ width

int anonymous_namespace{subimagesetloader.cpp}::SubImageSetLoader::width

Definition at line 43 of file subimagesetloader.cpp.

Referenced by load().


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