#ifndef ITEM_VIEW_HPP_
#define ITEM_VIEW_HPP_

#include <Widget/Widget.hpp>
#include <ItemStack/ItemStack.hpp>
#include <Entity/PhysicsEntity/CameraEntity/Player/Player.hpp>

/**
 * @brief A widget which displays a HUD item slot.
 */
class ItemView : public Widget
{
private:
    Player *m_player;
    int m_slot;

public:
    /**
     * @brief Construct the item slot.
     * 
     * @param player The player.
     * @param slot The slot number.
     */
    ItemView(Player *player, int slot);

    virtual void draw(GraphicsContext &context) override;
    virtual glm::ivec2 getMinSize() override;
};

#endif