Skip to content

Conversation

@222448082Ashen
Copy link

Description

Category: timers

Adds a new SplashKit Timers usage example for has_timer that demonstrates checking for a named timer before/after creation and after freeing it. Includes runnable code in C++, C# (top-level + OOP), Python, a one-line title, and an output screenshot.

Expected output

  • Does 'GameTimer' exist? false
  • Created timer 'GameTimer'
  • Does 'GameTimer' exist? true
  • Freed timer 'GameTimer'
  • Does 'GameTimer' exist? false

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Validated required files exist and are correctly named:
    • node usage-examples-testing-script.cjs has_timer-1-example
  • Regenerated docs inputs:
    • npm run setup

Testing Checklist

  • npm run setup
  • npm run build
  • npm run preview
  • Tested in latest Chrome
  • Tested in latest Firefox

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

Folders and Files Added/Modified

  • Added:
    • has_timer-1-example.cpp
    • has_timer-1-example-top-level.cs
      -[x] has_timer-1-example-oop.cs
      -[x] has_timer-1-example.py
      -[x] has_timer-1-example.txt
      -[x] has_timer-1-example.png

JulianBurton and others added 25 commits August 10, 2025 13:28
Added usage example for Close Window Function
Provides example code for checking, creating, and freeing a named timer using SplashKit in C#, C++ (OOP and top-level), Python, and includes a related PNG and description text. These examples demonstrate the use of the has_timer function for educational purposes.
@netlify
Copy link

netlify bot commented Dec 21, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit f616144
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6947beb313d9f4000835d8d2
😎 Deploy Preview https://deploy-preview-684--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Enhanced the usage example scraping script to detect overloaded functions using the API JSON and update URLs accordingly. Refreshed usage-example-references.json to use '-functions' URLs for overloaded functions and added new examples for geometry, graphics, timers, and windows. Improved environment variable handling and DocSearch plugin logic in astro.config.mjs. Added C/C++ runner settings to .vscode/settings.json.
@222448082Ashen 222448082Ashen changed the title Usagee examples/timer Demonstrate has_timer Before Creation, After Creation, and After Freeing” Dec 21, 2025
@222448082Ashen 222448082Ashen changed the title Demonstrate has_timer Before Creation, After Creation, and After Freeing” Demonstrate has_timer Before Creation, After Creation, and After Freeing Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants