5#ifndef INCLUDE_FIFECHAN_WIDGETS_BARGRAPH_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_BARGRAPH_HPP_
8#include "fifechan/point.hpp"
9#include "fifechan/widget.hpp"
24 class FIFEGUI_API BarGraph :
public Widget
32 BarGraph(
int x,
int y,
int w,
int h);
34 ~BarGraph()
override =
default;
36 BarGraph(BarGraph
const &) =
delete;
37 BarGraph& operator=(BarGraph
const &) =
delete;
38 BarGraph(BarGraph&&) =
delete;
39 BarGraph& operator=(BarGraph&&) =
delete;
void draw(Graphics *graphics) override
Draws this widget.
void setBarHeight(int h)
Sets the height of the bar.
void setBarWidth(int w)
Sets the width of the bar.
bool m_opaque
m_opaque is true if the graph is opaque, false otherwise.
void setBarPosition(int x, int y)
Sets the position of the bar.
void setBarSize(int w, int h)
Sets the size of the bar.
Rectangle m_rec
m_rec is the rectangle that represents the bar.
void setBarY(int y)
Sets the y position of the bar.
void setBarX(int x)
Sets the x position of the bar.
void setOpaque(bool opaque)
Sets the opacity of the graph.
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
Represents a 2D coordinate (X, Y).
Represents a rectangular area (X, Y, Width, Height).