-
Notifications
You must be signed in to change notification settings - Fork 2
[gui.hpp] Other functions
StackZ edited this page May 27, 2020
·
1 revision
/*
* This will always return 0 right now. Call this when initializing your app.
*/
Result Gui::init(void);
/*
* This will always return 0 right now. Call this when exiting your app.
*/
void Gui::exit(void);
/*
* C3D_RenderTarget * screen: The render target. (Available Targets: Top, TopRight, Bottom.)
* You need to set the render target before drawing on the screen.
* You can find a list of implemented renderTargets inside the 'screenCommon.hpp' file.
*/
void Gui::ScreenDraw(C3D_RenderTarget * screen);
/*
* float x: X Position of the Rectangle.
* float y: Y Position of the Rectangle.
* float w: Width of the Rectangle.
* float h: Height of the Rectangle.
* u32 color: Color of the Rectangle.
* Always returns true(?).
*/
bool Gui::Draw_Rect(float x, float y, float w, float h, u32 color);
/*
* int fadeoutFrames: The Frames for the fadeout effect. (Optional!)
* int fadeinFrames: The Frames for the fadein effect. (Optional!)
* bool stack: Whether if using the stack screens. (Optional!)
* This is in use with the screen class. Look for the screen functions for that.
*/
void Gui::fadeEffects(int fadeoutFrames = 6, int fadeinFrames = 6, bool stack = false);
/*
* float xPos: The X Position of the grid.
* float yPos: The Y Position of the grid.
* float Width: The Width of the grid.
* float Height: The Height of the grid.
* u32 color: The Color of the grid.
*/
void Gui::drawGrid(float xPos, float yPos, float Width, float Height, u32 color);
/*
* float xPos: The X Position of the Selector.
* float yPos: The Y Position of the Selector.
* float Width: The Width of the Selector.
* float Height: The Height of the Selector.
* float speed: The speed of the selector. (Use .030 in case you're unsure.)
* u32 SelectorColor: The Color of the Selector.
* u32 bgColor: The Color of the middle inside the selector. (Optional!)
*/
void Gui::drawAnimatedSelector(float xPos, float yPos, float Width, float Height, float speed, u32 SelectorColor, u32 bgColor = C2D_Color32(0, 0, 0, 0));