Skip to content

Add label_element interface usage example#774

Open
rachelpatrao wants to merge 2 commits into
thoth-tech:mainfrom
rachelpatrao:label-element-example
Open

Add label_element interface usage example#774
rachelpatrao wants to merge 2 commits into
thoth-tech:mainfrom
rachelpatrao:label-element-example

Conversation

@rachelpatrao
Copy link
Copy Markdown

Description

Splashkit Function: label_element

Overview of example functionality: This example demonstrates how label_element can be used to display simple text labels as part of a basic interface layout. The labels are arranged vertically in a graphical window to show how interface text can be presented clearly.

Example Output: Added screenshot showing the label interface example running.

Files Included

  • C++ code
  • C# code (Top-Level statements)
  • C# code (Object-Oriented Programming)
  • Python code
  • Relevant title for the example (.txt)
  • Screenshot

Usage Example Checks (READ CAREFULLY)

  • Code uses Splashkit function above
  • Code does not use non-Splashkit functions
  • Code does not use extra function declarations or extra classes
  • Code does not violate any of the Thoth Tech SplashKit Style Guide rules
  • Simple, clear demonstration of the function
  • Tested in Chrome and Firefox

@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for splashkit failed.

Name Link
🔨 Latest commit bab78b1
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6a0d9375bab6e000080f540c

Copy link
Copy Markdown

@KayDee6751 KayDee6751 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The coding example itself looks good and clearly shows how label_element can be used in a simple interface layout.

One thing I noticed is that label_element is an overloaded function. There is a basic version that only takes text, and another version that takes both text and a rectangle. This example appears to use the rectangle version, but the files are named label_element-1-example.*, which seems to place it under the basic text-only version on the API page.

I think this should either be moved/renamed so it appears under the rectangle overload, likely label_element_at_position-1-example.*, or changed to use the text-only version of label_element.

@rachelpatrao
Copy link
Copy Markdown
Author

Thanks for the feedback. I’ve updated the example so it now maps to the correct overload section for the positioned/rectangle version of label_element.

The files and usage-example reference entry were renamed/updated to align with the #label-element-at-position

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.

2 participants