Prechádzať zdrojové kódy

Sync SDL3 wiki -> header

SDL Wiki Bot 1 rok pred
rodič
commit
3b01a0b884
2 zmenil súbory, kde vykonal 11 pridanie a 5 odobranie
  1. 4 2
      include/SDL3/SDL_hints.h
  2. 7 3
      include/SDL3/SDL_init.h

+ 4 - 2
include/SDL3/SDL_hints.h

@@ -132,7 +132,8 @@ extern "C" {
  * together, as well as match applications with associated desktop settings
  * together, as well as match applications with associated desktop settings
  * and icons.
  * and icons.
  *
  *
- * This will override SDL_PROP_APP_METADATA_IDENTIFIER_STRING, if set by the application.
+ * This will override SDL_PROP_APP_METADATA_IDENTIFIER_STRING, if set by the
+ * application.
  *
  *
  * This hint should be set before SDL is initialized.
  * This hint should be set before SDL is initialized.
  *
  *
@@ -149,7 +150,8 @@ extern "C" {
  * screensaver. You should use a string that describes your program ("My Game
  * screensaver. You should use a string that describes your program ("My Game
  * 2: The Revenge")
  * 2: The Revenge")
  *
  *
- * This will override SDL_PROP_APP_METADATA_NAME_STRING, if set by the application.
+ * This will override SDL_PROP_APP_METADATA_NAME_STRING, if set by the
+ * application.
  *
  *
  * This hint should be set before SDL is initialized.
  * This hint should be set before SDL is initialized.
  *
  *

+ 7 - 3
include/SDL3/SDL_init.h

@@ -246,7 +246,10 @@ extern SDL_DECLSPEC int SDLCALL SDL_SetAppMetadata(const char *appname, const ch
  * These are the supported properties:
  * These are the supported properties:
  *
  *
  * - `SDL_PROP_APP_METADATA_NAME_STRING`: The human-readable name of the
  * - `SDL_PROP_APP_METADATA_NAME_STRING`: The human-readable name of the
- *   application, like "My Game 2: Bad Guy's Revenge!". This will show up anywhere the OS shows the name of the application separately from window titles, such as volume control applets, etc. This defaults to "SDL Application".
+ *   application, like "My Game 2: Bad Guy's Revenge!". This will show up
+ *   anywhere the OS shows the name of the application separately from window
+ *   titles, such as volume control applets, etc. This defaults to "SDL
+ *   Application".
  * - SDL_PROP_APP_METADATA_VERSION_STRING`: The version of the app that is
  * - SDL_PROP_APP_METADATA_VERSION_STRING`: The version of the app that is
  *   running; there are no rules on format, so "1.0.3beta2" and "April 22nd,
  *   running; there are no rules on format, so "1.0.3beta2" and "April 22nd,
  *   2024" and a git hash are all valid options. This has no default.
  *   2024" and a git hash are all valid options. This has no default.
@@ -254,8 +257,9 @@ extern SDL_DECLSPEC int SDLCALL SDL_SetAppMetadata(const char *appname, const ch
  *   identifies this app. This must be in reverse-domain format, like
  *   identifies this app. This must be in reverse-domain format, like
  *   "com.example.mygame2". This string is used by desktop compositors to
  *   "com.example.mygame2". This string is used by desktop compositors to
  *   identify and group windows together, as well as match applications with
  *   identify and group windows together, as well as match applications with
- *   associated desktop settings and icons. If you plan to package your application in a container such as Flatpak, the
- * app ID should match the name of your Flatpak container as well. This has no default.
+ *   associated desktop settings and icons. If you plan to package your
+ *   application in a container such as Flatpak, the app ID should match the
+ *   name of your Flatpak container as well. This has no default.
  * - SDL_PROP_APP_METADATA_CREATOR_STRING`: The human-readable name of the
  * - SDL_PROP_APP_METADATA_CREATOR_STRING`: The human-readable name of the
  *   creator/developer/maker of this app, like "MojoWorkshop, LLC"
  *   creator/developer/maker of this app, like "MojoWorkshop, LLC"
  * - SDL_PROP_APP_METADATA_COPYRIGHT_STRING`: The human-readable copyright
  * - SDL_PROP_APP_METADATA_COPYRIGHT_STRING`: The human-readable copyright