5 Close Icon

▼ |  | Mr Lib: Extra GUI Libraries

1 | Aligned Pasteboard
2 | Arrow Toggle Snip
3 | Bitmap Label
4 | Cache-image Snip
5 | Close Icon
6 | Expandable Snip
7 | GIF and Animated GIF Writing
8 | Graphs
9 | Hierarchical List Control
10 | Include Bitmap
11 | Interactive Value Port
12 | Name Message
13 | Path Dialog
14 | Plot
15 | Switchable Button
16 | Image Core
17 | Matrix Snip
18 | Snip Canvases
19 | Syntax Browser
20 | Te X Table
21 | Terminal Window
22 | White on Black Panel Predicate
23 | Acknowledgments
| Index

On this page:

close-icon%
new

top contents ← prev up next →

### 5`` Close Icon🔗ℹ

(require mrlib/close-icon) | package: gui-lib

The close-icon% class provides a clickable close button icon.

class close-icon% : class?
superclass: canvas%

> > > constructor
> > > (new close-icon% |
> > > |  | [parent parent] |
> > > | [ | [callback callback] |
> > > |  | [bg-color bg-color] |
> > > |  | [horizontal-pad horizontal-pad] |
> > > |  | [vertical-pad vertical-pad]]) |
> > → (is-a?/c close-icon%)
> > parent : (is-a? area-container<%>)
> > callback : (-> any) = void
> > bg-color : (or/c #f string (is-a?/c color%)) = #f
> > horizontal-pad : positive-integer? = 4
> > vertical-pad : positive-integer? = 4

> The callback is called when the close icon is clicked.

> If bg-color is specified, it is used as the background color of the icon.

top contents ← prev up next →