FLTK icons: Difference between revisions

From Thought dump
Jump to navigation Jump to search
Created page with "{{FLTK cheatsheets}} 500px src: https://www.fltk.org/doc-1.3/common.html#common_labels"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{FLTK cheatsheets}}
{{catnavbox|FLTK cheatsheets}}


== Icons ==
[[File:FLTK symbols.png|500px]]
[[File:FLTK symbols.png|500px]]


== Modifiers ==
The @ sign may also be followed by the following optional "formatting" characters, in this order:
* '#' forces square scaling, rather than distortion to the widget's shape.
* +[1-9] or -[1-9] tweaks the scaling a little bigger or smaller.
* '$' flips the symbol horizontally, '%' flips it vertically.
* [0-9] - rotates by a multiple of 45 degrees. '5' and '6' do no rotation while the others point in the direction of that key on a numeric keypad. '0', followed by four more digits rotates the symbol by that amount in degrees.
Thus, to show a very large arrow pointing downward you would use the label string "@+92->".
== Sources ==
src: https://www.fltk.org/doc-1.3/common.html#common_labels
src: https://www.fltk.org/doc-1.3/common.html#common_labels
{{Page lang|en}}
[[Category:Notes]]

Latest revision as of 00:49, 28 January 2025


Icons

Modifiers

The @ sign may also be followed by the following optional "formatting" characters, in this order:

  • '#' forces square scaling, rather than distortion to the widget's shape.
  • +[1-9] or -[1-9] tweaks the scaling a little bigger or smaller.
  • '$' flips the symbol horizontally, '%' flips it vertically.
  • [0-9] - rotates by a multiple of 45 degrees. '5' and '6' do no rotation while the others point in the direction of that key on a numeric keypad. '0', followed by four more digits rotates the symbol by that amount in degrees.

Thus, to show a very large arrow pointing downward you would use the label string "@+92->".

Sources

src: https://www.fltk.org/doc-1.3/common.html#common_labels