fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Fossies Dox: fltk-1.3.5-source.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 103 int i = strcmp((*i0)->name(), (*i1)->name());
106 else if (((*i0)->w() == 0 && (*i1)->original_) ||
107 ((*i1)->w() == 0 && (*i0)->original_))
return 0;
108 else if ((*i0)->w() != (*i1)->w())
return (*i0)->w() - (*i1)->w();
109 else return (*i0)->h() - (*i1)->h();
126 #if FLTK_ABI_VERSION >= 10304 142 name_ =
new char[strlen(n) + 1];
143 strcpy((
char *)
name_, n);
149 #if FLTK_ABI_VERSION >= 10304 218 #if FLTK_ABI_VERSION >= 10304 219 delete scaled_image_;
270 if (fread(header, 1,
sizeof(header), fp)==0) { }
277 if (memcmp(header,
"#define", 7) == 0)
279 else if (memcmp(header,
"/* XPM */", 9) == 0)
295 if ((img->
w() !=
w() &&
w()) || (img->
h() !=
h() &&
h())) {
321 if (!
image_) temp_image = 0;
327 temp_shared->
name_ =
new char[strlen(
name_) + 1];
331 temp_shared->
image_ = temp_image;
371 #if FLTK_ABI_VERSION >= 10304 387 if (scaled_image_ && (scaled_image_->w() !=
w() || scaled_image_->h() !=
h())) {
388 delete scaled_image_;
389 scaled_image_ =
NULL;
391 if (!scaled_image_) {
397 scaled_image_->draw(X-cx,
Y-cy, scaled_image_->w(), scaled_image_->h(), 0, 0);
403 #endif // FLTK_ABI_VERSION 431 #if FLTK_ABI_VERSION >= 10304 435 float fw =
image_->
w() / float(width);
436 float fh =
image_->
h() / float(height);
438 if (fh > fw) fw = fh;
485 key->name_ =
new char[strlen(
name) + 1];
486 strcpy((
char *)
key->name_,
name);
497 (*match)->refcount_ ++;
557 if ((temp->
w() != W || temp->
h() !=
H) && W &&
H) {
int draw_scaled(Fl_Image *img, int X, int Y, int W, int H)
void data(const char *const *p, int c)
const char *const * data() const
Base class for image caching and drawing.
virtual Fl_Image * copy(int W, int H)
int(* compare_func_t)(const void *, const void *)
static int alloc_handlers_
virtual void draw(int X, int Y, int W, int H, int cx, int cy)
virtual void color_average(Fl_Color c, float i)
FILE * fl_fopen(const char *f, const char *mode)
virtual void color_average(Fl_Color c, float i)
header for Unicode and UTF-8 character handling
utility header to pull drawing functions together
void scale(int width, int height, int proportional=1, int can_expand=0)
static Fl_Shared_Image * find(const char *name, int W=0, int H=0)
static void add_handler(Fl_Shared_Handler f)
void fl_push_clip(int x, int y, int w, int h)
static Fl_RGB_Scaling RGB_scaling()
static Fl_Shared_Image ** images()
virtual Fl_Image * copy(int W, int H)
FL_EXPORT Fl_Graphics_Driver * fl_graphics_driver
Points to the driver that currently receives all graphics requests.
static const char * newUUID()
static Fl_Shared_Image * get(const char *name, int W=0, int H=0)
virtual void draw(int X, int Y, int W, int H, int cx=0, int cy=0)
static Fl_Shared_Image ** images_
virtual void desaturate()
more accurate, but slower RGB image scaling algorithm
static void remove_handler(Fl_Shared_Handler f)
static int compare(Fl_Shared_Image **i0, Fl_Shared_Image **i1)
virtual ~Fl_Shared_Image()
Fl_Image *(* Fl_Shared_Handler)(const char *name, uchar *header, int headerlen)
static Fl_RGB_Scaling scaling_algorithm_
virtual void desaturate()
static Fl_Shared_Handler * handlers_