SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
GUIEngine::BoxRenderParams Class Reference

class containing render params for the 'drawBoxFromStretchableTexture' function see Overview of GUI skin for more information about skinning in STK More...

#include <skin.hpp>

Public Member Functions

 BoxRenderParams ()
 load default values
 
void setTexture (video::ITexture *image)
 
void calculateYFlipIfNeeded ()
 
video::ITexture * getImage ()
 Returns the image for this BoxRenderParams.
 

Public Attributes

int m_left_border
 
int m_right_border
 
int m_top_border
 
int m_bottom_border
 
bool m_preserve_h_aspect_ratios
 
float m_hborder_out_portion
 
float m_vborder_out_portion
 
float m_horizontal_inner_padding
 
float m_vertical_inner_padding
 
float m_horizontal_margin
 
float m_vertical_margin
 
bool m_vertical_flip
 
int areas
 bitmap containing which areas to render
 
core::rect< s32 > m_source_area_left
 
core::rect< s32 > m_source_area_center
 
core::rect< s32 > m_source_area_right
 
core::rect< s32 > m_source_area_top
 
core::rect< s32 > m_source_area_bottom
 
core::rect< s32 > m_source_area_top_left
 
core::rect< s32 > m_source_area_top_right
 
core::rect< s32 > m_source_area_bottom_left
 
core::rect< s32 > m_source_area_bottom_right
 
core::rect< s32 > m_source_area_left_yflip
 
core::rect< s32 > m_source_area_center_yflip
 
core::rect< s32 > m_source_area_right_yflip
 
core::rect< s32 > m_source_area_top_yflip
 
core::rect< s32 > m_source_area_bottom_yflip
 
core::rect< s32 > m_source_area_top_left_yflip
 
core::rect< s32 > m_source_area_top_right_yflip
 
core::rect< s32 > m_source_area_bottom_left_yflip
 
core::rect< s32 > m_source_area_bottom_right_yflip
 

Static Public Attributes

static const int BODY = 1
 
static const int LEFT = 2
 
static const int RIGHT = 4
 
static const int TOP = 8
 
static const int BOTTOM = 16
 
static const int ALL = BODY+LEFT+RIGHT+TOP+BOTTOM
 

Private Attributes

video::ITexture * m_image
 
bool m_y_flip_set
 

Detailed Description

class containing render params for the 'drawBoxFromStretchableTexture' function see Overview of GUI skin for more information about skinning in STK


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