-
Notifications
You must be signed in to change notification settings - Fork 0
ButtonP Class Constructors
Alex Ricciardi edited this page Feb 8, 2023
·
1 revision
/*---------------------------------------------------
Default construtor (empty)
- raylib default font
----------------------------------------------------*/
ButtonP();
/*---------------------------------------------------
Constructor-1
- raylib default font
text, position, image path
----------------------------------------------------*/
ButtonP(string text, float x, float y, string imgPath);
/*------------------------------------------------------------
Constructor-2
- raylib default font
text, position, image path, font size
Note: the font size will modify the size of the button
-------------------------------------------------------------*/
ButtonP(string text, float x, float y, string imgPath, float fontSize);
/*---------------------------------------------------
Constructor-3
- raylib default font
text, position, font size, font color,
----------------------------------------------------*/
ButtonP(string text, float x, float y, string imgPath, float fontSize, Color fontColor);
/*---------------------------------------------------
Constructor-4
- loaded font
text, position, image path, font
----------------------------------------------------*/
ButtonP(string text, float x, float y, string imgPath, Font &font);
/*---------------------------------------------------
constructor-5
- loaded font
text, font, font size
----------------------------------------------------*/
ButtonP(string text, Font &font, float fontSize);
//----------------------------------------------------------------------------------
//----------------------------------------------------------------------------------
// Destructor
//---------------------------------------------------------------------------------
~ButtonP();