This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:22.04 | |
ARG SIV3D_VERSION="main" | |
ARG GCC_OPTIONS="-j4" | |
RUN apt-get update \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git \ | |
build-essential \ | |
cmake \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> | |
namespace SasaGUI | |
{ | |
namespace Config | |
{ | |
struct ScrollBar | |
{ | |
// | ______________ | | |
// | =======|______________|== | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.6 | |
class Delay | |
{ | |
public: | |
constexpr Delay(Duration duration) noexcept | |
: m_duration(duration.count()) | |
{ | |
assert(duration >= 0s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Builder.hpp" | |
namespace GUI | |
{ | |
BuilderContext::BuilderContext(Widget& root) | |
: m_root(root) | |
{ | |
reset(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Siv3D.hpp> // OpenSiv3D v0.6.4 | |
void DrawAngleText(const Font& font, const Circle& circle, double angle, ColorF color) | |
{ | |
const auto degText = font(U"{:.1f}"_fmt(ToDegrees(angle))); | |
degText.region(Arg::topCenter = circle.center + Vec2{ 0, circle.r + 2 }).draw(ColorF(Scene::GetBackground(), 0.8)); | |
degText.draw(Arg::topCenter = circle.center + Vec2{ 0, circle.r + 2 }, color); | |
} | |
void Main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.3 | |
struct Arc | |
{ | |
Vec2 center; | |
double r; | |
double startAngle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> // OpenSiv3D v0.6.3 | |
class TextRenderer | |
{ | |
public: | |
TextRenderer(Font& font) | |
:m_font(font) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <clocale> | |
#include <string> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/keysym.h> | |
#include <list> | |
#include <cstdlib> | |
#include <vector> | |
#include <sstream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<Siv3D.hpp> | |
#include<any> | |
#include<typeinfo> | |
#include"SasaGUI.hpp" | |
/// <summary> | |
/// type_infoをコピー可能にするラッパクラス | |
/// </summary> | |
class Type | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> | |
#include"HogeGUI.h" | |
namespace HogeGUI | |
{ | |
struct IControl | |
{ | |
ID id; | |
bool used; | |
RectF rect; |
NewerOlder