CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
Objects::Rectangle Class Reference

Rectangle shape object. More...

#include <Objects.hpp>

Inheritance diagram for Objects::Rectangle:
Objects::Object Player ReturnButton

Public Member Functions

virtual void Update (Scene::Scene *scene) override final
 Update and draw the rectangle.
 
- Public Member Functions inherited from Objects::Object
double get_x ()
 Get the X position.
 
void SetX (double new_x)
 Set the X position.
 
void AddX (double add_x)
 Add to the X position.
 
double get_y ()
 Get the Y position.
 
void SetY (double new_y)
 Set the Y position.
 
void AddY (double add_y)
 Add to the Y position.
 
virtual void Init ()
 Initialize the object.
 
void UpdateAttached ()
 Updates the objects attached to this instance.
 
void Attach (Object *obj)
 Attach an object to this object and set its relative position.
 
void SetScene (Scene::Scene *scene)
 Setter for the currentscene (called by the Scene instance)
 
Scene::Scene * GetScene () const
 Getter for the currentscene (called by the Scene instance)
 
void SetInputManager (Input::InputManager *manager)
 Setter for the inputmanager (called by the Scene instance)
 

Public Attributes

double width = 10
 Width of the rectangle.
 
double height = 10
 Height of the rectangle.
 
u32 color = Colors::clrWhite
 Color of the rectangle.
 
- Public Attributes inherited from Objects::Object
bool visible = true
 
std::vector< Objects::Object * > attachedElements
 
Object * parent = nullptr
 
int id = -1
 

Additional Inherited Members

- Protected Member Functions inherited from Objects::Object
virtual void OnUpdate (Scene::Scene *scene)
 Custom update logic (can be override to add custom logic before Drawing)
 
Input::InputManager * GetInputManager () const
 Getter for the InputManager.
 

Detailed Description

Rectangle shape object.

Member Function Documentation

◆ Update()

void Rectangle::Update ( Scene::Scene * scene)
finaloverridevirtual

Update and draw the rectangle.

Parameters
scenePointer to the current scene

Reimplemented from Objects::Object.


The documentation for this class was generated from the following files: