4#ifndef INCLUDE_FIFECHAN_WIDGETS_HORIZONTALBAR_HPP_
5#define INCLUDE_FIFECHAN_WIDGETS_HORIZONTALBAR_HPP_
8#include "fifechan/platform.hpp"
11#include "fifechan/widgets/container.hpp"
60 void setSpacing(
unsigned int spacing);
68 unsigned int getSpacing()
const;
77 void setPadding(
unsigned int padding);
85 unsigned int getPadding()
const;
93 void setFixedHeight(
unsigned int height);
101 unsigned int getFixedHeight()
const;
109 void setClipping(
bool clip);
117 bool isClipping()
const;
128 void setExpandChildren(
bool expand);
136 bool isExpandChildren()
const;
140 void resizeToContent(
bool recursion =
true)
override;
141 void adjustSize()
override;
142 void draw(
Graphics* graphics)
override;
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
A horizontal bar container that arranges children from left to right.
unsigned int mFixedHeight
Fixed height (0 = content-driven).
HorizontalBar()
Constructor.
unsigned int mSpacing
Spacing between children.
unsigned int mPadding
Padding around the bar content.
bool mExpandChildren
Whether children should expand to fill width.
bool mClipping
Whether to clip overflowing content.
Alignment
Alignment options for children within the bar.
Used replacement tokens by configure_file():