Recast Navigation
Navigation-mesh Toolset for Games
imgui.h File Reference

Go to the source code of this file.

Classes

struct  imguiGfxRect
 
struct  imguiGfxText
 
struct  imguiGfxLine
 
struct  imguiGfxCmd
 

Enumerations

enum  imguiMouseButton { IMGUI_MBUT_LEFT = 0x01 , IMGUI_MBUT_RIGHT = 0x02 }
 
enum  imguiTextAlign { IMGUI_ALIGN_LEFT , IMGUI_ALIGN_CENTER , IMGUI_ALIGN_RIGHT }
 
enum  imguiGfxCmdType {
  IMGUI_GFXCMD_RECT , IMGUI_GFXCMD_TRIANGLE , IMGUI_GFXCMD_LINE , IMGUI_GFXCMD_TEXT ,
  IMGUI_GFXCMD_SCISSOR
}
 

Functions

unsigned int imguiRGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
 
void imguiBeginFrame (int mx, int my, unsigned char mbut, int scroll)
 
void imguiEndFrame ()
 
bool imguiBeginScrollArea (const char *name, int x, int y, int w, int h, int *scroll)
 
void imguiEndScrollArea ()
 
void imguiIndent ()
 
void imguiUnindent ()
 
void imguiSeparator ()
 
void imguiSeparatorLine ()
 
bool imguiButton (const char *text, bool enabled=true)
 
bool imguiItem (const char *text, bool enabled=true)
 
bool imguiCheck (const char *text, bool checked, bool enabled=true)
 
bool imguiCollapse (const char *text, const char *subtext, bool checked, bool enabled=true)
 
void imguiLabel (const char *text)
 
void imguiValue (const char *text)
 
bool imguiSlider (const char *text, float *val, float vmin, float vmax, float vinc, bool enabled=true)
 
void imguiDrawText (int x, int y, int align, const char *text, unsigned int color)
 
void imguiDrawLine (float x0, float y0, float x1, float y1, float r, unsigned int color)
 
void imguiDrawRoundedRect (float x, float y, float w, float h, float r, unsigned int color)
 
void imguiDrawRect (float x, float y, float w, float h, unsigned int color)
 
const imguiGfxCmdimguiGetRenderQueue ()
 
int imguiGetRenderQueueSize ()
 

Enumeration Type Documentation

◆ imguiGfxCmdType

Enumerator
IMGUI_GFXCMD_RECT 
IMGUI_GFXCMD_TRIANGLE 
IMGUI_GFXCMD_LINE 
IMGUI_GFXCMD_TEXT 
IMGUI_GFXCMD_SCISSOR 

◆ imguiMouseButton

Enumerator
IMGUI_MBUT_LEFT 
IMGUI_MBUT_RIGHT 

◆ imguiTextAlign

Enumerator
IMGUI_ALIGN_LEFT 
IMGUI_ALIGN_CENTER 
IMGUI_ALIGN_RIGHT 

Function Documentation

◆ imguiBeginFrame()

void imguiBeginFrame ( int  mx,
int  my,
unsigned char  mbut,
int  scroll 
)

◆ imguiBeginScrollArea()

bool imguiBeginScrollArea ( const char *  name,
int  x,
int  y,
int  w,
int  h,
int *  scroll 
)

◆ imguiButton()

bool imguiButton ( const char *  text,
bool  enabled = true 
)

◆ imguiCheck()

bool imguiCheck ( const char *  text,
bool  checked,
bool  enabled = true 
)

◆ imguiCollapse()

bool imguiCollapse ( const char *  text,
const char *  subtext,
bool  checked,
bool  enabled = true 
)

◆ imguiDrawLine()

void imguiDrawLine ( float  x0,
float  y0,
float  x1,
float  y1,
float  r,
unsigned int  color 
)

◆ imguiDrawRect()

void imguiDrawRect ( float  x,
float  y,
float  w,
float  h,
unsigned int  color 
)

◆ imguiDrawRoundedRect()

void imguiDrawRoundedRect ( float  x,
float  y,
float  w,
float  h,
float  r,
unsigned int  color 
)

◆ imguiDrawText()

void imguiDrawText ( int  x,
int  y,
int  align,
const char *  text,
unsigned int  color 
)

◆ imguiEndFrame()

void imguiEndFrame ( )

◆ imguiEndScrollArea()

void imguiEndScrollArea ( )

◆ imguiGetRenderQueue()

const imguiGfxCmd* imguiGetRenderQueue ( )

◆ imguiGetRenderQueueSize()

int imguiGetRenderQueueSize ( )

◆ imguiIndent()

void imguiIndent ( )

◆ imguiItem()

bool imguiItem ( const char *  text,
bool  enabled = true 
)

◆ imguiLabel()

void imguiLabel ( const char *  text)

◆ imguiRGBA()

unsigned int imguiRGBA ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a = 255 
)
inline

◆ imguiSeparator()

void imguiSeparator ( )

◆ imguiSeparatorLine()

void imguiSeparatorLine ( )

◆ imguiSlider()

bool imguiSlider ( const char *  text,
float *  val,
float  vmin,
float  vmax,
float  vinc,
bool  enabled = true 
)

◆ imguiUnindent()

void imguiUnindent ( )

◆ imguiValue()

void imguiValue ( const char *  text)