Skip to content

The library enables creating a graphical interface in the SFML library

Notifications You must be signed in to change notification settings

Borysiakk/BatGUI

Repository files navigation

BatGUI

The library enables creating a graphical interface in the SFML library

Init

  Gui gui;
  Theme theme("Gui.json");

Button

void closeEx(sf::RenderWindow & window)
{
  window.close();
}

main()
{
  Button::Ptr button = theme.Create(WidgetType::Button);
  button->connect(TypeSignal::Pressed,std::bind(closeEx,std::ref(window)));
  button->setPosition(70,210);
  button->setSize(sf::Vector2f(250,50));
  button->setText("EXIT");
  
  gui.addWidget(button);
  ...
}

header image

About

The library enables creating a graphical interface in the SFML library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages