|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
Typedefs | |
| using | Mathd = Math<double> |
| using | Mathf = Math<float> |
| using | OpenGLGraphics = fcn::opengl::Graphics |
| using | OpenGLImage = fcn::opengl::Image |
| using | PointVector = std::vector<Point> |
Enumerations | |
| enum class | DragState : uint8_t { Idle , Dragging } |
| enum class | DropResult : uint8_t { Accepted , Rejected , Cancelled } |
| enum class | SeparatorStrategy : std::uint8_t { PixelAtOrigin , BorderDominant , ExplicitColor , Auto } |
| enum class | TooltipPlacement : uint8_t { Cursor , Right , Bottom } |
| enum class | TooltipTrigger : uint8_t { Hover } |
| enum class | VisibilityState : std::uint8_t { Visible , Hidden , Collapsed } |
Functions | |
| FIFEGUI_API char const * | fifechanVersion () |
| unsigned | nextPow2 (unsigned x) |
| constexpr Widget::SelectionMode | operator& (Widget::SelectionMode a, Widget::SelectionMode b) noexcept |
| constexpr Widget::SelectionMode & | operator&= (Widget::SelectionMode &a, Widget::SelectionMode b) noexcept |
| FIFEGUI_API std::ostream & | operator<< (std::ostream &out, Color const &color) |
| std::ostream & | operator<< (std::ostream &out, Rectangle const &rectangle) |
| constexpr Widget::SelectionMode | operator| (Widget::SelectionMode a, Widget::SelectionMode b) noexcept |
| constexpr Widget::SelectionMode & | operator|= (Widget::SelectionMode &a, Widget::SelectionMode b) noexcept |
| void | throwException (std::string const &message, std::source_location location=std::source_location::current()) |
Used replacement tokens by configure_file():
FIFECHAN_NAME PROJECT_VERSION_MAJOR PROJECT_VERSION_MINOR PROJECT_VERSION_PATCH FIFECHAN_LICENSE FIFECHAN_DESC FIFECHAN_HOMEPAGE CURRENT_YEAR VERSION_ID All FifeGUI related code is in this namespace.
| using fcn::Mathd = Math<double> |
| using fcn::Mathf = Math<float> |
Alias for the OpenGL graphics implementation.
Definition at line 152 of file backends/opengl/graphics.hpp.
| using fcn::OpenGLImage = fcn::opengl::Image |
Alias for the OpenGL image implementation.
Definition at line 137 of file backends/opengl/image.hpp.
| using fcn::PointVector = std::vector<Point> |
|
strong |
State of the drag controller.
| Enumerator | |
|---|---|
| Idle | No drag is active. |
| Dragging | A drag operation is in progress. |
Definition at line 52 of file dragdrop.hpp.
|
strong |
Result returned after attempting to drop payload onto a target.
| Enumerator | |
|---|---|
| Accepted | Target accepted the drop. |
| Rejected | Target rejected the drop. |
| Cancelled | Drop was cancelled before delivery. |
Definition at line 64 of file dragdrop.hpp.
|
strong |
Defines a font implementation using an image atlas containing glyph data.
Strategies:
Definition at line 41 of file imagefont.hpp.
|
strong |
Tooltip placement relative to cursor.
Definition at line 28 of file tooltip.hpp.
|
strong |
Tooltip trigger type.
Definition at line 20 of file tooltip.hpp.
|
strong |
Defines the visibility state of a Panel.
Visible: The panel is fully visible and occupies its normal layout space. Hidden: The panel is not rendered and does not occupy any layout space. Collapsed: The panel is rendered in a collapsed state, occupying minimal width (e.g., a thin strip) but still visible.
| FIFEGUI_API char const * fcn::fifechanVersion | ( | ) |
Returns the textual library version.
Convenience wrapper around app_version::get_version().
Definition at line 21 of file fifechan.cpp.
References fcn::app_version::get_version().
|
inline |
|
constexprnoexcept |
Bitwise or for selection modes.
Definition at line 2113 of file widget.hpp.
|
constexprnoexcept |
Bitwise or assign for selection modes.
Definition at line 2131 of file widget.hpp.
| FIFEGUI_API std::ostream & fcn::operator<< | ( | std::ostream & | out, |
| Color const & | color ) |
| std::ostream & fcn::operator<< | ( | std::ostream & | out, |
| Rectangle const & | rectangle ) |
| out | The stream to output to. |
| rectangle | The rectangle to output. |
Definition at line 142 of file rectangle.cpp.
|
constexprnoexcept |
Bitwise OR operator for Widget::SelectionMode.
Allows combining selection mode flags using the | operator.
Definition at line 2104 of file widget.hpp.
|
constexprnoexcept |
Bitwise and for selection modes.
Definition at line 2122 of file widget.hpp.
|
inline |
Throw an Exception capturing the current source location.
| message | The error message of the exception. |
| location | The source location of where the exception occurred. |
Definition at line 130 of file exception.hpp.
Referenced by fcn::TabbedArea::action(), fcn::Text::addRow(), fcn::AdjustingContainer::adjustContent(), fcn::FlowContainer::adjustContent(), fcn::DropDown::adjustHeight(), fcn::ScrollArea::checkPolicies(), fcn::opengl::Image::convertToDisplayFormat(), fcn::sdl3::Image::convertToDisplayFormat(), fcn::GenericInput::dequeueKeyInput(), fcn::sdl3::Input::dequeueKeyInput(), fcn::GenericInput::dequeueMouseInput(), fcn::sdl3::Input::dequeueMouseInput(), fcn::Gui::distributeKeyEvent(), fcn::Gui::distributeKeyEventToGlobalKeyListeners(), fcn::Button::draw(), fcn::Gui::draw(), fcn::ImageButton::draw(), fcn::Label::draw(), fcn::Window::draw(), fcn::sdl3::Graphics::drawBezier(), fcn::CheckBox::drawBox(), fcn::sdl3::Graphics::drawCircle(), fcn::sdl3::Graphics::drawCircleSegment(), fcn::sdl3::Graphics::drawFillCircle(), fcn::sdl3::Graphics::drawFillCircleSegment(), fcn::sdl3::Graphics::drawHorizontalLine(), fcn::Graphics::drawImage(), fcn::opengl::Graphics::drawImage(), fcn::sdl3::Graphics::drawImage(), fcn::opengl::Graphics::drawLine(), fcn::sdl3::Graphics::drawLine(), fcn::sdl3::Graphics::drawLine(), fcn::opengl::Graphics::drawPoint(), fcn::sdl3::Graphics::drawPoint(), fcn::sdl3::Graphics::drawPolyLine(), fcn::opengl::Graphics::drawRectangle(), fcn::sdl3::Graphics::drawRoundStroke(), fcn::sdl3::Graphics::drawSDLTexture(), fcn::sdl3::TrueTypeFont::drawString(), fcn::Graphics::drawText(), fcn::sdl3::Graphics::drawVerticalLine(), fcn::Text::eraseRow(), fcn::opengl::Graphics::fillRectangle(), fcn::sdl3::Graphics::fillRectangle(), fcn::Graphics::getCurrentClipArea(), fcn::sdl3::Image::getHeight(), fcn::opengl::Image::getPixel(), fcn::sdl3::Image::getPixel(), fcn::Text::getRow(), fcn::sdl3::Image::getWidth(), fcn::Gui::handleMouseInput(), fcn::sdl3::Image::Image(), fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), fcn::ImageFont::ImageFont(), fcn::Text::insertRow(), fcn::Widget::isModalFocusable(), fcn::Widget::isModalFocused(), fcn::Widget::isModalMouseInputFocusable(), fcn::TabbedArea::isTabSelected(), fcn::Widget::isUnderMouseModal(), fcn::opengl::ImageLoader::load(), fcn::sdl3::ImageLoader::load(), fcn::Gui::logic(), fcn::Widget::moveToBottom(), fcn::Widget::moveToTop(), fcn::Graphics::popClipArea(), fcn::opengl::Image::putPixel(), fcn::sdl3::Image::putPixel(), fcn::Widget::remove(), fcn::TabbedArea::removeTabWithIndex(), fcn::FocusHandler::requestFocus(), fcn::Widget::requestFocus(), fcn::ImageFont::scanForGlyph(), fcn::Gui::setGlobalFont(), fcn::FlowContainer::setLayout(), fcn::IconProgressBar::setOrientation(), fcn::ImageProgressBar::setOrientation(), fcn::Text::setRow(), fcn::ScrollArea::setScrollbarWidth(), fcn::TabbedArea::setSelectedTab(), fcn::ScrollArea::showWidgetPart(), and fcn::sdl3::TrueTypeFont::TrueTypeFont().