~ubuntu-branches/ubuntu/trusty/lmms/trusty

« back to all changes in this revision

Viewing changes to plugins/zynaddsubfx/fltk/FL/Fl_Image.H

  • Committer: Charlie Smotherman
  • Date: 2012-12-05 22:08:38 UTC
  • mfrom: (33.1.7 lmms_0.4.13)
  • Revision ID: cjsmo@cableone.net-20121205220838-09pjfzew9m5023hr
* New  Upstream release.
  - Minor tweaking to ZynAddSubFX, CALF, SWH plugins  and Stefan Fendt's RC
    filters.
  - Added UI fixes: Magnentic effect of knobs and Piano-roll fixes
  - Updated German localization and copyright year
* debian/lmms-common.install:
  - added /usr/share/applications so the lmms.desktop file will correctly
    install (LP: #863366)
  - This should also fix the Software Center not displaying lmms in sound
    and video (LP: #824231)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
 
// "$Id: Fl_Image.H 7617 2010-05-27 17:20:18Z manolo $"
 
2
// "$Id: Fl_Image.H 8338 2011-01-30 09:24:40Z manolo $"
3
3
//
4
4
// Image header file for the Fast Light Tool Kit (FLTK).
5
5
//
6
 
// Copyright 1998-2009 by Bill Spitzak and others.
 
6
// Copyright 1998-2011 by Bill Spitzak and others.
7
7
//
8
8
// This library is free software; you can redistribute it and/or
9
9
// modify it under the terms of the GNU Library General Public
59
59
  protected:
60
60
 
61
61
  /**
62
 
    The first form of the w() method returns the current
63
 
    image width in pixels.</P>
64
 
    
65
 
    <P>The second form is a protected method that sets the current
66
 
    image width.
 
62
    Sets the current image width in pixels.
67
63
  */
68
64
  void w(int W) {w_ = W;}
69
65
  /**
70
 
    The first form of the h() method returns the current
71
 
    image height in pixels.</P>
72
 
    
73
 
    <P>The second form is a protected method that sets the current
74
 
    image height.
 
66
    Sets the current image height in pixels.
75
67
  */
76
68
  void h(int H) {h_ = H;}
77
69
  /**
78
 
    The first form of the d() method returns the current
79
 
    image depth. The return value will be 0 for bitmaps, 1 for
80
 
    pixmaps, and 1 to 4 for color images.</P>
81
 
    
82
 
    <P>The second form is a protected method that sets the current
83
 
    image depth.
 
70
    Sets the current image depth.
84
71
  */
85
72
  void d(int D) {d_ = D;}
86
 
  /**    See int ld()  */
 
73
  /**
 
74
   Sets the current line data size in bytes.
 
75
   */
87
76
  void ld(int LD) {ld_ = LD;}
88
 
  /**    See const char * const *data()  */
 
77
  /** 
 
78
   Sets the current array pointer and count of pointers in the array.
 
79
   */
89
80
  void data(const char * const *p, int c) {data_ = p; count_ = c;}
90
81
  void draw_empty(int X, int Y);
91
82
 
94
85
 
95
86
  public:
96
87
 
97
 
  /** See void Fl_Image::w(int) */
 
88
  /** 
 
89
   Returns the current image width in pixels.
 
90
  */
98
91
  int w() const {return w_;}
99
 
  /** See void Fl_Image::h(int) */
 
92
  /**     Returns the current image height in pixels.
 
93
   */
100
94
  int h() const {return h_;}
101
95
  /**
102
 
    The first form of the d() method returns the current
103
 
    image depth. The return value will be 0 for bitmaps, 1 for
 
96
    Returns the current image depth. 
 
97
   The return value will be 0 for bitmaps, 1 for
104
98
    pixmaps, and 1 to 4 for color images.</P>
105
 
    
106
 
    <P>The second form is a protected method that sets the current
107
 
    image depth.
108
99
  */
109
100
  int d() const {return d_;}
110
101
  /**
111
 
    The first form of the ld() method returns the current
112
 
    line data size in bytes. Line data is extra data that is included
113
 
    after each line of color image data and is normally not present.</P>
114
 
    
115
 
    <P>The second form is a protected method that sets the current
116
 
    line data size in bytes.
 
102
    Returns the current line data size in bytes. 
 
103
    Line data is extra data that is included
 
104
    after each line of color image data and is normally not present.
117
105
  */
118
106
  int ld() const {return ld_;}
119
107
  /**
124
112
  */
125
113
  int count() const {return count_;}
126
114
  /**
127
 
    The first form of the data() method returns a
128
 
    pointer to the current image data array. Use the
129
 
    count() method to find the size of the data array.</P>
130
 
    
131
 
    <P>The second form is a protected method that sets the current
132
 
    array pointer and count of pointers in the array.
 
115
    Returns a pointer to the current image data array. 
 
116
    Use the count() method to find the size of the data array.
133
117
  */
134
118
  const char * const *data() const {return data_;}
135
119
  
162
146
  virtual void label(Fl_Widget*w);
163
147
  virtual void label(Fl_Menu_Item*m);
164
148
  /**
165
 
    The draw() methods draw the image. This form specifies
 
149
    Draws the image with a bounding box. 
 
150
    This form specifies
166
151
    a bounding box for the image, with the origin
167
152
    (upper-lefthand corner) of the image offset by the cx
168
153
    and cy arguments.
169
154
  */
170
155
  virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0); // platform dependent
171
156
  /**
172
 
    The draw() methods draw the image. This form
173
 
    specifies the upper-lefthand corner of the image
 
157
    Draws the image. 
 
158
    This form specifies the upper-lefthand corner of the image.
174
159
  */
175
160
  void draw(int X, int Y) {draw(X, Y, w(), h(), 0, 0);} // platform dependent
176
161
  virtual void uncache();
226
211
#endif // !Fl_Image_H
227
212
 
228
213
//
229
 
// End of "$Id: Fl_Image.H 7617 2010-05-27 17:20:18Z manolo $".
 
214
// End of "$Id: Fl_Image.H 8338 2011-01-30 09:24:40Z manolo $".
230
215
//