241 |
} |
} |
242 |
|
|
243 |
/** |
/** |
244 |
|
* Package private constructor to create a GtkImage from a given |
245 |
|
* PixBuf pointer. |
246 |
|
*/ |
247 |
|
GtkImage (Pointer pixbuf) |
248 |
|
{ |
249 |
|
pixmap = pixbuf; |
250 |
|
createFromPixbuf(); |
251 |
|
isLoaded = true; |
252 |
|
observers = null; |
253 |
|
offScreen = false; |
254 |
|
props = new Hashtable(); |
255 |
|
} |
256 |
|
|
257 |
|
/** |
258 |
|
* Native helper function for constructor that takes a pixbuf Pointer. |
259 |
|
*/ |
260 |
|
private native void createFromPixbuf(); |
261 |
|
|
262 |
|
/** |
263 |
* Callback from the image consumer. |
* Callback from the image consumer. |
264 |
*/ |
*/ |
265 |
public void setImage(int width, int height, |
public void setImage(int width, int height, |