SSBM Decomp
Loading...
Searching...
No Matches
textlib.c File Reference
#include "textlib.h"
#include <Runtime/platform.h>
#include <printf.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "textdraw.h"
#include "types.h"
#include <melee/lb/lb_00B0.h>
#include <sysdolphin/baselib/debug.h>

Data Structures

struct  unk_series
struct  DevTextGlyph

Functions

static DevTextfind_by_id (char id)
DevTextDevText_Create (char id, int x, int y, int w, int h, char *buf)
void DevText_EraseFirstLine (DevText *text)
static int DevText_Clamp (int val, int max)
void DevText_SetCursorXY (DevText *text, int x, int y)
void DevText_SetCursorX (DevText *text, int x)
void DevText_HideCursor (DevText *text)
void DevText_80302AC0 (DevText *text)
void DevText_ShowBackground (DevText *text)
void DevText_HideBackground (DevText *text)
void DevText_ShowText (DevText *text)
void DevText_HideText (DevText *text)
void DevText_SetScale (DevText *text, f32 x, f32 y)
void DevText_SetXY (DevText *text, int x, int y)
u8 DevText_StoreColorIndex (DevText *text, u8 index)
GXColor DevText_SetTextColor (DevText *text, GXColor color)
GXColor DevText_SetBGColor (DevText *text, GXColor color)
void DevText_Erase (DevText *text)
static void DevText_AdvanceLine (DevText *text)
void DevText_Print (DevText *text, char *str)
void DevText_PrintInt (DevText *text, int num)
void DevText_Printf (DevText *text, char *format,...)
struct un_80304138_objalloc_tun_80302DF0 (void)
void un_80302DF8 (struct un_80304138_objalloc_t *arg0, soundtest_callback arg1)

Variables

DevTextdevtext_drawlist
 ?
DevTextdevtext_poolhead
 .sbss
GXColor un_804DDC88

Function Documentation

◆ find_by_id()

DevText * find_by_id ( char id)
inlinestatic

◆ DevText_Create()

DevText * DevText_Create ( char id,
int x,
int y,
int w,
int h,
char * buf )

◆ DevText_EraseFirstLine()

void DevText_EraseFirstLine ( DevText * text)

◆ DevText_Clamp()

int DevText_Clamp ( int val,
int max )
inlinestatic

◆ DevText_SetCursorXY()

void DevText_SetCursorXY ( DevText * text,
int x,
int y )

◆ DevText_SetCursorX()

void DevText_SetCursorX ( DevText * text,
int x )

◆ DevText_HideCursor()

void DevText_HideCursor ( DevText * text)

◆ DevText_80302AC0()

void DevText_80302AC0 ( DevText * text)

◆ DevText_ShowBackground()

void DevText_ShowBackground ( DevText * text)

◆ DevText_HideBackground()

void DevText_HideBackground ( DevText * text)

◆ DevText_ShowText()

void DevText_ShowText ( DevText * text)

◆ DevText_HideText()

void DevText_HideText ( DevText * text)

◆ DevText_SetScale()

void DevText_SetScale ( DevText * text,
f32 x,
f32 y )

◆ DevText_SetXY()

void DevText_SetXY ( DevText * text,
int x,
int y )

◆ DevText_StoreColorIndex()

u8 DevText_StoreColorIndex ( DevText * text,
u8 index )

◆ DevText_SetTextColor()

GXColor DevText_SetTextColor ( DevText * text,
GXColor color )

◆ DevText_SetBGColor()

GXColor DevText_SetBGColor ( DevText * text,
GXColor color )

◆ DevText_Erase()

void DevText_Erase ( DevText * text)

◆ DevText_AdvanceLine()

void DevText_AdvanceLine ( DevText * text)
inlinestatic

◆ DevText_Print()

void DevText_Print ( DevText * text,
char * str )

◆ DevText_PrintInt()

void DevText_PrintInt ( DevText * text,
int num )

◆ DevText_Printf()

void DevText_Printf ( DevText * text,
char * format,
... )

◆ un_80302DF0()

struct un_80304138_objalloc_t * un_80302DF0 ( void )

◆ un_80302DF8()

void un_80302DF8 ( struct un_80304138_objalloc_t * arg0,
soundtest_callback arg1 )

Variable Documentation

◆ devtext_drawlist

DevText* devtext_drawlist
extern

?

◆ devtext_poolhead

DevText* devtext_poolhead
extern

.sbss

◆ un_804DDC88

GXColor un_804DDC88
extern