https://github.com/moebiussurfing/ofxsurfingbox
A draggable rectangle and a text box with background. Easy Help info boxes in your apps.
https://github.com/moebiussurfing/ofxsurfingbox
openframeworks openframeworks-addon
Last synced: about 1 year ago
JSON representation
A draggable rectangle and a text box with background. Easy Help info boxes in your apps.
- Host: GitHub
- URL: https://github.com/moebiussurfing/ofxsurfingbox
- Owner: moebiussurfing
- License: mit
- Created: 2022-05-26T04:55:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T04:22:54.000Z (over 2 years ago)
- Last Synced: 2025-02-07T16:19:34.355Z (over 1 year ago)
- Topics: openframeworks, openframeworks-addon
- Language: C++
- Homepage:
- Size: 1.27 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ofxSurfingBox
## Overview
This add-on has three classes:
1. A draggable rectangle: **ofxSurfingBoxInteractive**
2. A draggable rectangle with text info: **ofxSurfingBoxHelpText**
3. Same but with `Fontstash` with paragraph formatting with tag styles: **ofxSurfingBoxParagraph**
## Screenshots



## Features
### ofxSurfingBoxInteractive.h
- This class is like a draggable ofRectangle.
- It can be used as a viewport for a camera, a videoplayer, or like any ofRectangle.
- Can be placed into top, bottom, center, left... positions.
- Also can be positioned freely and scaled manually.
- Mouse wheel modifies the scale.
- Aspect ratio can be locked.
- Double click activates Editing or Locked modes:
* to allow move the position and resize using the mouse.
- Auto stores and recall the settings between sessions.
### ofxSurfingBoxHelpText.h
- This class draws the same, a draggable box with a filled background but with text.
- Useful to display **Help Info** boxes in your apps.
- Tittle font for the first text lines.
### ofxSurfingBoxParagraph.h
- Same as `ofxSurfingBoxHelpText` with powerful tag styling.
## Usage
- See the examples.
## Dependencies
* [ofxSurfingHelpers](https://github.com/moebiussurfing/ofxSurfingHelpers)
* [ofxFontStash2](https://github.com/moebiussurfing/ofxFontStash2) / Only for using ofxSurfingBoxParagraph.
## Third Party add-ons bundled into **ofxSurfingHelpers**
Already added to `OFX_ADDON/libs/`. No need to add to **PROJECT GENERATOR**.
* [ofxScaleDragRect](https://github.com/moebiussurfing/ofxScaleDragRect) / _Fork from [roymacdonald](https://github.com/roymacdonald/ofxScaleDragRect)_
* [ofxMSAInteractiveObject](https://github.com/moebiussurfing/ofxMSAInteractiveObject) / _Fork from [memo](https://github.com/memo/ofxMSAInteractiveObject)_
## Tested System
* **Windows 10** / **VS 2022** / **OF 0.12+**
## Author
An add-on by **@moebiusSurfing**
*( ManuMolina ) 2019-2022*
## License
**MIT License**