Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
GUIBackgroundImage Class Reference

#include <guiBackgroundImage.h>

+ Inheritance diagram for GUIBackgroundImage:
+ Collaboration diagram for GUIBackgroundImage:

Public Member Functions

 GUIBackgroundImage (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, const std::string &name, const core::rect< s32 > &middle, ISimpleTextureSource *tsrc, bool autoclip, v2s32 autoclip_offset)
 
virtual void draw () override
 

Private Attributes

std::string m_name
 
core::rect< s32 > m_middle
 
ISimpleTextureSourcem_tsrc
 
bool m_autoclip
 
v2s32 m_autoclip_offset
 

Constructor & Destructor Documentation

◆ GUIBackgroundImage()

GUIBackgroundImage::GUIBackgroundImage ( gui::IGUIEnvironment * env,
gui::IGUIElement * parent,
s32 id,
const core::rect< s32 > & rectangle,
const std::string & name,
const core::rect< s32 > & middle,
ISimpleTextureSource * tsrc,
bool autoclip,
v2s32 autoclip_offset )

Member Function Documentation

◆ draw()

void GUIBackgroundImage::draw ( )
overridevirtual

References draw2DImage9Slice(), draw2DImageFilterScaled(), errorstream, ISimpleTextureSource::getTexture(), m_autoclip, m_autoclip_offset, m_middle, m_name, and m_tsrc.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_autoclip

bool GUIBackgroundImage::m_autoclip
private

Referenced by draw().

◆ m_autoclip_offset

v2s32 GUIBackgroundImage::m_autoclip_offset
private

Referenced by draw().

◆ m_middle

core::rect<s32> GUIBackgroundImage::m_middle
private

Referenced by draw().

◆ m_name

std::string GUIBackgroundImage::m_name
private

Referenced by draw().

◆ m_tsrc

ISimpleTextureSource* GUIBackgroundImage::m_tsrc
private

Referenced by draw().


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