Cleanup: Remove unused UI button definition functions
These were part of the older buttons API that shouldn't be used in more places at this point. Most layouts should be built with the regular layout system API and RNA properties. This sort of button can still be created though, since these were just shortcuts anyway.
This commit is contained in:
parent
43f5e761a6
commit
05f900e346
Notes:
blender-bot
2023-02-14 11:08:33 +01:00
Referenced by commit c0db8a9a3b
, Cleanup: remove unused button function
|
@ -982,21 +982,6 @@ uiBut *uiDefButF(uiBlock *block,
|
|||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -1154,35 +1139,6 @@ uiBut *uiDefIconBut(uiBlock *block,
|
|||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconButF(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -1241,20 +1197,6 @@ uiBut *uiDefIconButBitS(uiBlock *block,
|
|||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconButC(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconButBitC(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
|
@ -1356,22 +1298,6 @@ uiBut *uiDefIconTextButF(uiBlock *block,
|
|||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -1387,84 +1313,6 @@ uiBut *uiDefIconTextButI(uiBlock *block,
|
|||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButBitI(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
int *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButS(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
short *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButBitS(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
short *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButC(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButBitC(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip);
|
||||
uiBut *uiDefIconTextButR(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
|
|
@ -4943,38 +4943,6 @@ uiBut *uiDefButF(uiBlock *block,
|
|||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefButBit(block,
|
||||
type | UI_BUT_POIN_FLOAT,
|
||||
bit,
|
||||
retval,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -5295,68 +5263,6 @@ static uiBut *uiDefIconButBit(uiBlock *block,
|
|||
tip);
|
||||
}
|
||||
|
||||
uiBut *uiDefIconButF(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconBut(block,
|
||||
type | UI_BUT_POIN_FLOAT,
|
||||
retval,
|
||||
icon,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconButBit(block,
|
||||
type | UI_BUT_POIN_FLOAT,
|
||||
bit,
|
||||
retval,
|
||||
icon,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -5481,36 +5387,6 @@ uiBut *uiDefIconButBitS(uiBlock *block,
|
|||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconButC(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconBut(block,
|
||||
type | UI_BUT_POIN_CHAR,
|
||||
retval,
|
||||
icon,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconButBitC(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
|
@ -5710,40 +5586,6 @@ uiBut *uiDefIconTextButF(uiBlock *block,
|
|||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButBitF(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
float *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextButBit(block,
|
||||
type | UI_BUT_POIN_FLOAT,
|
||||
bit,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButI(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
@ -5776,172 +5618,6 @@ uiBut *uiDefIconTextButI(uiBlock *block,
|
|||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButBitI(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
int *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextButBit(block,
|
||||
type | UI_BUT_POIN_INT,
|
||||
bit,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButS(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
short *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextBut(block,
|
||||
type | UI_BUT_POIN_SHORT,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButBitS(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
short *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextButBit(block,
|
||||
type | UI_BUT_POIN_SHORT,
|
||||
bit,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButC(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextBut(block,
|
||||
type | UI_BUT_POIN_CHAR,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButBitC(uiBlock *block,
|
||||
int type,
|
||||
int bit,
|
||||
int retval,
|
||||
int icon,
|
||||
const char *str,
|
||||
int x,
|
||||
int y,
|
||||
short width,
|
||||
short height,
|
||||
char *poin,
|
||||
float min,
|
||||
float max,
|
||||
float a1,
|
||||
float a2,
|
||||
const char *tip)
|
||||
{
|
||||
return uiDefIconTextButBit(block,
|
||||
type | UI_BUT_POIN_CHAR,
|
||||
bit,
|
||||
retval,
|
||||
icon,
|
||||
str,
|
||||
x,
|
||||
y,
|
||||
width,
|
||||
height,
|
||||
(void *)poin,
|
||||
min,
|
||||
max,
|
||||
a1,
|
||||
a2,
|
||||
tip);
|
||||
}
|
||||
uiBut *uiDefIconTextButR(uiBlock *block,
|
||||
int type,
|
||||
int retval,
|
||||
|
|
Loading…
Reference in New Issue