nomlib
Loading...
Searching...
No Matches
nom::DecoratorPhotograph Class Reference

#include <DecoratorPhotograph.hpp>

Inheritance diagram for nom::DecoratorPhotograph:
[legend]

Public Member Functions

bool Initialise (const Rocket::Core::String &image_source, const Rocket::Core::String &image_path)
virtual Rocket::Core::DecoratorDataHandle GenerateElementData (Rocket::Core::Element *element)
virtual void ReleaseElementData (Rocket::Core::DecoratorDataHandle element_data)
virtual void RenderElement (Rocket::Core::Element *element, Rocket::Core::DecoratorDataHandle element_data)

Private Attributes

Texture image_

Detailed Description

Member Function Documentation

◆ GenerateElementData()

virtual Rocket::Core::DecoratorDataHandle nom::DecoratorPhotograph::GenerateElementData ( Rocket::Core::Element * element)
virtual

Called on a decorator to generate any required per-element data for a newly decorated element.

Parameters
element[in]The newly decorated element.
Returns
A handle to a decorator-defined data handle, or NULL if none is needed for the element.

◆ ReleaseElementData()

virtual void nom::DecoratorPhotograph::ReleaseElementData ( Rocket::Core::DecoratorDataHandle element_data)
virtual

Called to release element data generated by this decorator.

Parameters
element_data[in]The element data handle to release.

◆ RenderElement()

virtual void nom::DecoratorPhotograph::RenderElement ( Rocket::Core::Element * element,
Rocket::Core::DecoratorDataHandle element_data )
virtual

Called to render the decorator on an element.

Parameters
element[in]The element to render the decorator on.
element_data[in]The handle to the data generated by the decorator for the element.

Member Data Documentation

◆ image_

Texture nom::DecoratorPhotograph::image_
private
Todo
Rename

Definition at line 64 of file DecoratorPhotograph.hpp.


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