displayContextDef_t Struct Reference

#include <ui_shared.h>


Data Fields

qhandle_t(* registerShaderNoMip )(const char *p)
void(* setColor )(const vec4_t v)
void(* drawHandlePic )(float x, float y, float w, float h, qhandle_t asset)
void(* drawStretchPic )(float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader)
void(* drawText )(float x, float y, float scale, vec4_t color, const char *text, float adjust, int limit, int style, int iMenuFont)
int(* textWidth )(const char *text, float scale, int iMenuFont)
int(* textHeight )(const char *text, float scale, int iMenuFont)
qhandle_t(* registerModel )(const char *p)
void(* modelBounds )(qhandle_t model, vec3_t min, vec3_t max)
void(* fillRect )(float x, float y, float w, float h, const vec4_t color)
void(* drawRect )(float x, float y, float w, float h, float size, const vec4_t color)
void(* drawSides )(float x, float y, float w, float h, float size)
void(* drawTopBottom )(float x, float y, float w, float h, float size)
void(* clearScene )()
void(* addRefEntityToScene )(const refEntity_t *re)
void(* renderScene )(const refdef_t *fd)
qhandle_t(* RegisterFont )(const char *fontName)
int(* Font_StrLenPixels )(const char *text, const int iFontIndex, const float scale)
int(* Font_StrLenChars )(const char *text)
int(* Font_HeightPixels )(const int iFontIndex, const float scale)
void(* Font_DrawString )(int ox, int oy, const char *text, const float *rgba, const int setIndex, int iCharLimit, const float scale)
qboolean(* Language_IsAsian )(void)
qboolean(* Language_UsesSpaces )(void)
unsigned int(* AnyLanguage_ReadCharFromString )(const char *psText, int *piAdvanceCount, qboolean *pbIsTrailingPunctuation)
void(* ownerDrawItem )(float x, float y, float w, float h, float text_x, float text_y, int ownerDraw, int ownerDrawFlags, int align, float special, float scale, vec4_t color, qhandle_t shader, int textStyle, int iMenuFont)
float(* getValue )(int ownerDraw)
qboolean(* ownerDrawVisible )(int flags)
void(* runScript )(char **p)
qboolean(* deferScript )(char **p)
void(* getTeamColor )(vec4_t *color)
void(* getCVarString )(const char *cvar, char *buffer, int bufsize)
float(* getCVarValue )(const char *cvar)
void(* setCVar )(const char *cvar, const char *value)
void(* drawTextWithCursor )(float x, float y, float scale, vec4_t color, const char *text, int cursorPos, char cursor, int limit, int style, int iFontIndex)
void(* setOverstrikeMode )(qboolean b)
qboolean(* getOverstrikeMode )()
void(* startLocalSound )(sfxHandle_t sfx, int channelNum)
qboolean(* ownerDrawHandleKey )(int ownerDraw, int flags, float *special, int key)
int(* feederCount )(float feederID)
const char *(* feederItemText )(float feederID, int index, int column, qhandle_t *handle1, qhandle_t *handle2, qhandle_t *handle3)
qhandle_t(* feederItemImage )(float feederID, int index)
qboolean(* feederSelection )(float feederID, int index, itemDef_t *item)
void(* keynumToStringBuf )(int keynum, char *buf, int buflen)
void(* getBindingBuf )(int keynum, char *buf, int buflen)
void(* setBinding )(int keynum, const char *binding)
void(* executeText )(int exec_when, const char *text)
void(* Error )(int level, const char *error,...)
void(* Print )(const char *msg,...)
void(* Pause )(qboolean b)
int(* ownerDrawWidth )(int ownerDraw, float scale)
sfxHandle_t(* registerSound )(const char *name)
void(* startBackgroundTrack )(const char *intro, const char *loop, qboolean bReturnWithoutStarting)
void(* stopBackgroundTrack )()
int(* playCinematic )(const char *name, float x, float y, float w, float h)
void(* stopCinematic )(int handle)
void(* drawCinematic )(int handle, float x, float y, float w, float h)
void(* runCinematicFrame )(int handle)
float yscale
float xscale
float bias
int realTime
int frameTime
int cursorx
int cursory
qboolean debug
cachedAssets_t Assets
glconfig_t glconfig
qhandle_t whiteShader
qhandle_t gradientImage
qhandle_t cursor
float FPS


Field Documentation

void(* displayContextDef_t::addRefEntityToScene)(const refEntity_t *re )
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_Model_Paint().

unsigned int(* displayContextDef_t::AnyLanguage_ReadCharFromString)( const char *psText, int *piAdvanceCount, qboolean *pbIsTrailingPunctuation )
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

cachedAssets_t displayContextDef_t::Assets
 

Definition at line 469 of file ui_shared.h.

Referenced by _UI_Refresh(), Asset_Parse(), AssetCache(), CG_Asset_Parse(), CG_AssetCache(), CG_Init(), GradientBar_Paint(), Item_ListBox_Paint(), Item_Model_Paint(), Item_SetFocus(), Item_Slider_Paint(), Item_TextScroll_Paint(), Menu_Init(), MenuFontToHandle(), MenuParse_font(), Script_SetFocus(), and UI_FeederSelection().

float displayContextDef_t::bias
 

Definition at line 462 of file ui_shared.h.

Referenced by _UI_Init().

void(* displayContextDef_t::clearScene)()
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_Model_Paint().

qhandle_t displayContextDef_t::cursor
 

Definition at line 474 of file ui_shared.h.

Referenced by _UI_Init().

int displayContextDef_t::cursorx
 

Definition at line 465 of file ui_shared.h.

Referenced by _UI_MouseEvent(), _UI_Refresh(), Item_Bind_HandleKey(), Item_ListBox_HandleKey(), Item_ListBox_ThumbDrawPosition(), Item_Multi_HandleKey(), Item_OwnerDraw_HandleKey(), Item_Slider_HandleKey(), Item_StartCapture(), Item_TextScroll_HandleKey(), Item_YesNo_HandleKey(), Menu_HandleKey(), Menu_PaintAll(), Menu_SetNextCursorItem(), Menu_SetPrevCursorItem(), Menus_ActivateByName(), Menus_HandleOOBClick(), UI_CursorInRect(), and vmMain().

int displayContextDef_t::cursory
 

Definition at line 466 of file ui_shared.h.

Referenced by _UI_MouseEvent(), _UI_Refresh(), Item_Bind_HandleKey(), Item_ListBox_HandleKey(), Item_ListBox_ThumbDrawPosition(), Item_Multi_HandleKey(), Item_OwnerDraw_HandleKey(), Item_Slider_HandleKey(), Item_StartCapture(), Item_TextScroll_HandleKey(), Item_TextScroll_ThumbDrawPosition(), Item_YesNo_HandleKey(), Menu_HandleKey(), Menu_PaintAll(), Menu_SetNextCursorItem(), Menu_SetPrevCursorItem(), Menus_ActivateByName(), Menus_HandleOOBClick(), UI_CursorInRect(), and vmMain().

qboolean displayContextDef_t::debug
 

Definition at line 467 of file ui_shared.h.

Referenced by _UI_Refresh().

qboolean(* displayContextDef_t::deferScript)(char **p)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Script_Defer().

void(* displayContextDef_t::drawCinematic)(int handle, float x, float y, float w, float h)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Window_Paint().

void(* displayContextDef_t::drawHandlePic)(float x, float y, float w, float h, qhandle_t asset)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), GradientBar_Paint(), Item_Image_Paint(), Item_ListBox_Paint(), Item_Slider_Paint(), Item_TextScroll_Paint(), Menu_Paint(), and Window_Paint().

void(* displayContextDef_t::drawRect)( float x, float y, float w, float h, float size, const vec4_t color)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_ListBox_Paint(), Item_Paint(), Menu_Paint(), and Window_Paint().

void(* displayContextDef_t::drawSides)(float x, float y, float w, float h, float size)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Window_Paint().

void(* displayContextDef_t::drawStretchPic)(float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader )
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

void(* displayContextDef_t::drawText)(float x, float y, float scale, vec4_t color, const char *text, float adjust, int limit, int style, int iMenuFont)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Bind_Paint(), Item_ListBox_Paint(), Item_Multi_Paint(), Item_Paint(), Item_Text_AutoWrapped_Paint(), Item_Text_Paint(), Item_Text_Wrapped_Paint(), Item_TextField_Paint(), Item_TextScroll_Paint(), Item_YesNo_Paint(), and Menu_PaintAll().

void(* displayContextDef_t::drawTextWithCursor)(float x, float y, float scale, vec4_t color, const char *text, int cursorPos, char cursor, int limit, int style, int iFontIndex)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_TextField_Paint().

void(* displayContextDef_t::drawTopBottom)(float x, float y, float w, float h, float size)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Window_Paint().

void(* displayContextDef_t::Error)(int level, const char *error, ...)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

void(* displayContextDef_t::executeText)(int exec_when, const char *text )
 

Referenced by _UI_Init(), Menu_HandleKey(), and Script_Exec().

int(* displayContextDef_t::feederCount)(float feederID)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_ListBox_HandleKey(), Item_ListBox_MaxScroll(), Item_ListBox_OverLB(), and Item_ListBox_Paint().

qhandle_t(* displayContextDef_t::feederItemImage)(float feederID, int index)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_ListBox_Paint().

const char*(* displayContextDef_t::feederItemText)(float feederID, int index, int column, qhandle_t *handle1, qhandle_t *handle2, qhandle_t *handle3)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_ListBox_Paint().

qboolean(* displayContextDef_t::feederSelection)(float feederID, int index, itemDef_t *item)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_ListBox_HandleKey(), Item_ListBox_Paint(), Item_Multi_HandleKey(), and Menu_SetFeederSelection().

void(* displayContextDef_t::fillRect)( float x, float y, float w, float h, const vec4_t color)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_ListBox_Paint(), and Window_Paint().

void(* displayContextDef_t::Font_DrawString)(int ox, int oy, const char *text, const float *rgba, const int setIndex, int iCharLimit, const float scale)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

int(* displayContextDef_t::Font_HeightPixels)(const int iFontIndex, const float scale)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

int(* displayContextDef_t::Font_StrLenChars)(const char *text)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

int(* displayContextDef_t::Font_StrLenPixels)(const char *text, const int iFontIndex, const float scale)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

float displayContextDef_t::FPS
 

Definition at line 475 of file ui_shared.h.

Referenced by _UI_Refresh(), and Menu_PaintAll().

int displayContextDef_t::frameTime
 

Definition at line 464 of file ui_shared.h.

Referenced by _UI_Refresh(), and UI_ConsoleCommand().

void(* displayContextDef_t::getBindingBuf)( int keynum, char *buf, int buflen )
 

Referenced by _UI_Init(), and String_Init().

void(* displayContextDef_t::getCVarString)(const char *cvar, char *buffer, int bufsize)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_EnableShowViaCvar(), Item_Multi_FindCvarByValue(), Item_Multi_Paint(), Item_Multi_Setting(), Item_SetTextExtents(), Item_Text_AutoWrapped_Paint(), Item_Text_Paint(), Item_Text_Wrapped_Paint(), Item_TextField_HandleKey(), Item_TextField_Paint(), Item_TextScroll_Paint(), ItemParse_rectcvar(), Script_Disable(), Script_Scale(), Script_SetCvarToCvar(), Script_SetItemColor(), Script_SetItemColorCvar(), and Script_SetItemRectCvar().

float(* displayContextDef_t::getCVarValue)(const char *cvar)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Bind_Paint(), Item_Multi_FindCvarByValue(), Item_Multi_Setting(), Item_Slider_HandleKey(), Item_Slider_Paint(), Item_Slider_ThumbPosition(), Item_YesNo_HandleKey(), Item_YesNo_Paint(), and Menu_HandleKey().

qboolean(* displayContextDef_t::getOverstrikeMode)()
 

Referenced by _UI_Init(), Item_TextField_HandleKey(), and Item_TextField_Paint().

void(* displayContextDef_t::getTeamColor)(vec4_t *color)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Script_SetTeamColor(), and Window_Paint().

float(* displayContextDef_t::getValue)(int ownerDraw)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_OwnerDraw_Paint().

glconfig_t displayContextDef_t::glconfig
 

Definition at line 471 of file ui_shared.h.

Referenced by _UI_Init().

qhandle_t displayContextDef_t::gradientImage
 

Definition at line 473 of file ui_shared.h.

void(* displayContextDef_t::keynumToStringBuf)( int keynum, char *buf, int buflen )
 

Referenced by _UI_Init(), and BindingFromName().

qboolean(* displayContextDef_t::Language_IsAsian)(void)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

qboolean(* displayContextDef_t::Language_UsesSpaces)(void)
 

Referenced by _UI_Init(), and CG_LoadHudMenu().

void(* displayContextDef_t::modelBounds)(qhandle_t model, vec3_t min, vec3_t max)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_Model_Paint().

qboolean(* displayContextDef_t::ownerDrawHandleKey)(int ownerDraw, int flags, float *special, int key)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_OwnerDraw_HandleKey().

void(* displayContextDef_t::ownerDrawItem)(float x, float y, float w, float h, float text_x, float text_y, int ownerDraw, int ownerDrawFlags, int align, float special, float scale, vec4_t color, qhandle_t shader, int textStyle,int iMenuFont)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_OwnerDraw_Paint().

qboolean(* displayContextDef_t::ownerDrawVisible)(int flags)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Paint(), and Menu_Paint().

int(* displayContextDef_t::ownerDrawWidth)(int ownerDraw, float scale)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_SetTextExtents().

void(* displayContextDef_t::Pause)(qboolean b)
 

Referenced by _UI_Init(), and Menus_HandleOOBClick().

int(* displayContextDef_t::playCinematic)(const char *name, float x, float y, float w, float h)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Window_Paint().

void(* displayContextDef_t::Print)(const char *msg, ...)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Slider_HandleKey(), and UI_Alloc().

int displayContextDef_t::realTime
 

Definition at line 463 of file ui_shared.h.

Referenced by _UI_Refresh(), Fade(), Item_Bind_Paint(), Item_ListBox_HandleKey(), Item_Model_Paint(), Item_Multi_Paint(), Item_OwnerDraw_Paint(), Item_Paint(), Item_Slider_Paint(), Item_StartCapture(), Item_TextColor(), Item_TextField_Paint(), Item_YesNo_Paint(), ItemParse_asset_model_go(), Menu_Paint(), UI_ConsoleCommand(), UI_FeederSelection(), and UI_SaberDrawBlade().

qhandle_t(* displayContextDef_t::RegisterFont)( const char *fontName )
 

Referenced by _UI_Init(), CG_Asset_Parse(), CG_LoadHudMenu(), and MenuParse_font().

qhandle_t(* displayContextDef_t::registerModel)(const char *p)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and ItemParse_asset_model_go().

qhandle_t(* displayContextDef_t::registerShaderNoMip)(const char *p)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), ItemParse_asset_shader(), ItemParse_background(), Menu_SetItemBackground(), MenuParse_background(), and Script_SetBackground().

sfxHandle_t(* displayContextDef_t::registerSound)(const char *name)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), ItemParse_focusSound(), and Script_Play().

void(* displayContextDef_t::renderScene)( const refdef_t *fd )
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_Model_Paint().

void(* displayContextDef_t::runCinematicFrame)(int handle)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Window_Paint().

void(* displayContextDef_t::runScript)(char **p)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Item_RunScript().

void(* displayContextDef_t::setBinding)( int keynum, const char *binding )
 

Referenced by _UI_Init(), Controls_SetConfig(), and Item_Bind_HandleKey().

void(* displayContextDef_t::setColor)(const vec4_t v)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), GradientBar_Paint(), Item_ListBox_Paint(), Item_Slider_Paint(), and Window_Paint().

void(* displayContextDef_t::setCVar)(const char *cvar, const char *value)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Multi_HandleKey(), Item_Slider_HandleKey(), Item_TextField_HandleKey(), Item_YesNo_HandleKey(), Menus_Activate(), Script_SetCvar(), Script_SetCvarToCvar(), and Script_SetPlayerModel().

void(* displayContextDef_t::setOverstrikeMode)(qboolean b)
 

Referenced by _UI_Init(), Item_TextField_HandleKey(), and Menu_HandleKey().

void(* displayContextDef_t::startBackgroundTrack)( const char *intro, const char *loop, qboolean bReturnWithoutStarting)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Menus_Activate(), and Script_playLooped().

void(* displayContextDef_t::startLocalSound)( sfxHandle_t sfx, int channelNum )
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_SetFocus(), Script_Play(), and Script_SetFocus().

void(* displayContextDef_t::stopBackgroundTrack)()
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Script_playLooped().

void(* displayContextDef_t::stopCinematic)(int handle)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), and Menu_ShowItemByName().

int(* displayContextDef_t::textHeight)(const char *text, float scale, int iMenuFont)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Bind_Paint(), Item_ListBox_Paint(), Item_Paint(), Item_SetTextExtents(), and Item_Text_AutoWrapped_Paint().

int(* displayContextDef_t::textWidth)(const char *text, float scale, int iMenuFont)
 

Referenced by _UI_Init(), CG_LoadHudMenu(), Item_Bind_Paint(), Item_Paint(), Item_SetTextExtents(), and Item_Text_AutoWrapped_Paint().

qhandle_t displayContextDef_t::whiteShader
 

Definition at line 472 of file ui_shared.h.

Referenced by _UI_DrawSides(), _UI_DrawTopBottom(), _UI_Init(), UI_DrawSides(), UI_DrawTopBottom(), and UI_FillRect().

float displayContextDef_t::xscale
 

Definition at line 461 of file ui_shared.h.

Referenced by _UI_DrawSides(), _UI_Init(), and Item_Model_Paint().

float displayContextDef_t::yscale
 

Definition at line 460 of file ui_shared.h.

Referenced by _UI_DrawTopBottom(), _UI_Init(), and Item_Model_Paint().


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