From cda7f614627d3bcf303ab1ad92d5d7fe53f3e3af Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 23 Aug 2006 20:38:30 +0000 Subject: Adding more links to the global function reference list git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/common.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'documentation/common.html') diff --git a/documentation/common.html b/documentation/common.html index ef171b2d2..9c2084de6 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -507,6 +507,27 @@ method to select your label type.

The Fl::set_labeltype method can also be used to overload an existing label type such as FL_NORMAL_LABEL.

+

Making your own symbols

+ +

It is also possible to define your own drawings and add +them to the symbol list, so they can be rendered as part of +any label.

+ +

To create a new symbol, you implement a drawing function +void drawit(Fl_Color c) which typically uses the +complex drawing functions +to generate a vector shape inside a two-by-two units sized box +around the origin. This function is then linked into the symbols +table using fl_add_symbol:

+ + + +

name is the name of the symbol without the "@"; scalable +must be set to 1 if the symbol is generated using scalable vector drawing +functions.

+

Callbacks

Callbacks are functions that are called when the value of a -- cgit v1.2.3