Skip to content

Commit

Permalink
Add new swi functions
Browse files Browse the repository at this point in the history
void SetHeaderScrollText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn);
void SetHeaderExtraText(void *header, const WSHDR *ws, const void *malloc_fn, const void *mfree_fn);
  • Loading branch information
cad0gan committed May 21, 2024
1 parent a7dd2ce commit 3c78423
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions swilib/include/swilib/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,28 @@ __swi_begin(0x2AF)
void SetHeaderText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
__swi_end(0x2AF, SetHeaderText, (header, title, malloc_fn, mfree_fn));

/**
* Set scolled text to the UI header.
* @param header pointer to the header (#GetHeaderPointer)
* @param title new title value
* @param malloc_fn result of #malloc_adr()
* @param mfree_fn result of #mfree_adr()
* */
__swi_begin(0x3C6)
void SetHeaderScrollText(void *header, const WSHDR *title, const void *malloc_fn, const void *mfree_fn)
__swi_end(0x3C6, SetHeaderScrollText, (header, title, malloc_fn, mfree_fn));

/**
* Set extra text to the UI header.
* @param header pointer to the header (#GetHeaderPointer)
* @param ws new extra title value
* @param malloc_fn result of #malloc_adr()
* @param mfree_fn result of #mfree_adr()
* */
__swi_begin(0x3C7)
void SetHeaderExtraText(void *header, const WSHDR *ws, const void *malloc_fn, const void *mfree_fn)
__swi_end(0x3C7, SetHeaderExtraText, (header, ws, malloc_fn, mfree_fn));

/**
* Get pointer to the UI header.
* @param header pointer to the header (#GetHeaderPointer)
Expand Down

0 comments on commit 3c78423

Please sign in to comment.