Skip to content

Commit

Permalink
Merge pull request #9 from kimkulling/doc/license_date
Browse files Browse the repository at this point in the history
Update tinyui.h
  • Loading branch information
kimkulling authored Jan 19, 2025
2 parents 3fef054 + 3dee47e commit f40cf68
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/backends/sdl2_iodevice.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 6 additions & 1 deletion src/backends/sdl2_iodevice.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -31,7 +31,12 @@ namespace tinyui {
///
/// IO-Devices are used to contrl any kind of input / output operations.
struct IODevice {
/// @brief The class destructor.
~IODevice() = default;

/// @brief will do the update for the input states.
/// @param[out] event The new event.
/// @return true, if successful, false if not.
static bool update(SDL_Event &event);
};

Expand Down
2 changes: 1 addition & 1 deletion src/backends/sdl2_renderer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 5 additions & 3 deletions src/backends/sdl2_renderer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -36,9 +36,10 @@ struct SDL_Renderer;
struct SDL_Texture;

namespace tinyui {


/// @brief Implementation of a SDL2 surface.
struct SurfaceImpl {
SDL_Surface *mSurface;
SDL_Surface *mSurface = nullptr;

~SurfaceImpl() {
clear();
Expand All @@ -53,6 +54,7 @@ struct SurfaceImpl {
}
};

/// @brief Implementation of a SDL2 TTF font.
struct FontImpl {
TTF_Font *mFontImpl;

Expand Down
2 changes: 1 addition & 1 deletion src/tinyui.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/tinyui.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/widgets.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/widgets.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
MIT License
Copyright (c) 2022-2024 Kim Kulling
Copyright (c) 2022-2025 Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit f40cf68

Please sign in to comment.