source: rtems-graphics-toolkit/fltk-1.1.10/documentation/Fl_Shared_Image.html @ 513eea1

Last change on this file since 513eea1 was 513eea1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/10 at 22:43:24

2010-01-08 Joel Sherrill <joel.sherrill@…>

fltk 1.1.10. imported

  • ORIGIN: Updated.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1<HTML>
2<HEAD>
3        <TITLE>Fl_Shared_Image</TITLE>
4</HEAD>
5<BODY>
6
7<!-- NEW PAGE -->
8
9<H2><A name="Fl_Shared_Image">class Fl_Shared_Image</A></H2>
10<HR>
11
12<H3>Class Hierarchy</H3>
13
14<UL><PRE>
15<A href="Fl_Image.html">Fl_Image</A>
16   |
17   +----<B>Fl_Shared_Image</B>
18</PRE></UL>
19
20<H3>Include Files</H3>
21
22<UL><PRE>
23#include &lt;FL/Fl_Shared_Image.H&gt;
24</PRE></UL>
25
26<H3>Description</H3>
27
28<P>The <TT>Fl_Shared_Image</TT> class supports caching, loading,
29and drawing of image files. Most applications will also want to
30link against the <CODE>fltk_images</CODE> library and call the
31<A
32HREF="functions.html#fl_register_images"><CODE>fl_register_images()</CODE></A>
33function to support standard image formats such as BMP, GIF, JPEG, and PNG.</P>
34
35<H3>Methods</H3>
36
37<UL>
38
39        <LI><A href="#Fl_Shared_Image.Fl_Shared_Image">Fl_Shared_Image</A></LI>
40
41        <LI><A href="#Fl_Shared_Image.~Fl_Shared_Image">~Fl_Shared_Image</A></LI>
42
43        <LI><A href="#Fl_Shared_Image.find">find</A></LI>
44
45        <LI><A href="#Fl_Shared_Image.get">get</A></LI>
46
47        <LI><A href="#Fl_Shared_Image.images">images</A></LI>
48
49        <LI><A href="#Fl_Shared_Image.name">name</A></LI>
50
51        <LI><A href="#Fl_Shared_Image.num_images">num_images</A></LI>
52
53        <LI><A href="#Fl_Shared_Image.refcount">refcount</A></LI>
54
55        <LI><A href="#Fl_Shared_Image.release">release</A></LI>
56
57        <LI><A href="#Fl_Shared_Image.reload">reload</A></LI>
58
59</UL>
60
61<H4><A name="Fl_Shared_Image.Fl_Shared_Image">protected Fl_Shared_Image::Fl_Shared_Image();<BR>
62protected Fl_Shared_Image::Fl_Shared_Image(const char *name, Fl_Image *img);</A></H4>
63
64<P>The constructors create a new shared image record in the
65image cache.
66
67<P>The constructors are protected and cannot be used directly
68from a program. Use the <A
69HREF="#Fl_Shared_Image.get"><TT>get()</TT></A> method instead.
70
71<H4><A name="Fl_Shared_Image.~Fl_Shared_Image">protected Fl_Shared_Image::~Fl_Shared_Image();</A></H4>
72
73<P>The destructor free all memory and server resources that are
74used by the image. The destructor is protected and cannot be
75used directly from a program. Use the <A
76HREF="#Fl_Shared_Image.release"><TT>release()</TT></A> method
77instead.
78
79<H4><A NAME="Fl_Shared_Image.find">static Fl_Shared_Image *find(const char *n, int W = 0, int H = 0);</A></H4>
80
81<H4><A NAME="Fl_Shared_Image.get">static Fl_Shared_Image *get(const char *n, int W = 0, int H = 0);</A></H4>
82
83<H4><A NAME="Fl_Shared_Image.images">static Fl_Shared_Image **images();</A></H4>
84
85<H4><A NAME="Fl_Shared_Image.name">const char *name();</A></H4>
86
87<H4><A NAME="Fl_Shared_Image.num_images">static int num_images();</A></H4>
88
89<H4><A NAME="Fl_Shared_Image.refcount">int refcount();</A></H4>
90
91<H4><A NAME="Fl_Shared_Image.release">void release();</A></H4>
92
93<H4><A NAME="Fl_Shared_Image.reload">void reload();</A></H4>
94
95</BODY>
96</HTML>
Note: See TracBrowser for help on using the repository browser.