Design Pattern Examples
Overview of object-oriented design patterns
Flyweight_Image Struct Reference

Represents an image that associates a context with a big resource. More...

#include <Flyweight_Image.h>

Collaboration diagram for Flyweight_Image:
Collaboration graph

Public Attributes

int BigResourceId
 The big resource being referenced by this flyweight image. This is represented by a handle to the big resource.
 
Flyweight_Context Context
 The context associated with this image. The calling entity uses this context to manipulate the position of the image.
 

Detailed Description

Represents an image that associates a context with a big resource.

Definition at line 16 of file Flyweight_Image.h.

Member Data Documentation

◆ BigResourceId

int BigResourceId

The big resource being referenced by this flyweight image. This is represented by a handle to the big resource.

Definition at line 22 of file Flyweight_Image.h.

Referenced by _Flyweight_GenerateFlyweightClasses(), and _Flyweight_RenderFlyweights().

◆ Context

The context associated with this image. The calling entity uses this context to manipulate the position of the image.

Definition at line 28 of file Flyweight_Image.h.

Referenced by _Flyweight_GenerateFlyweightClasses(), _Flyweight_MoveFlyweights(), and _Flyweight_RenderFlyweights().


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