5#ifndef INCLUDE_FIFECHAN_WIDGETS_TAB_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_TAB_HPP_
11#include "fifechan/mouselistener.hpp"
12#include "fifechan/platform.hpp"
13#include "fifechan/widgets/container.hpp"
26 class FIFEGUI_API Tab :
public MouseListener,
public Container
33 Tab(Tab
const &) =
delete;
34 Tab& operator=(Tab
const &) =
delete;
36 Tab& operator=(Tab&&) =
delete;
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
Represents a mouse event.
Represents a rectangular area (X, Y, Width, Height).
Rectangle getChildrenArea() override
Gets the area of the widget occupied by the widget's children.
bool mHasMouse
True if the tab has the mouse, false otherwise.
void mouseExited(MouseEvent &mouseEvent) override
Called when the mouse has exited the widget area.
void setTabbedArea(TabbedArea *tabbedArea)
Sets the tabbed area the tab should be a part of.
void adjustSize() override
Adjusts the size of the tab to fit the caption.
void mouseEntered(MouseEvent &mouseEvent) override
Called when the mouse has entered into the widget area.
TabbedArea * mTabbedArea
Holds the tabbed area the tab is a part of.
TabbedArea * getTabbedArea()
Gets the tabbed are the tab is a part of.
void draw(Graphics *graphics) override
Draws the widget.
A container organizing content into selectable tabs.