mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Image labels!
image() method to set active image, deimage() method to set inactive image. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fluid_Image.cxx,v 1.7.2.9 2001/04/13 19:34:03 easysw Exp $"
|
||||
// "$Id: Fluid_Image.cxx,v 1.7.2.9.2.1 2001/08/05 23:58:54 easysw Exp $"
|
||||
//
|
||||
// Pixmap label support for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -274,14 +274,14 @@ void bitmap_image::write_static() {
|
||||
#else // this seems to produce slightly shorter c++ files
|
||||
write_c("static unsigned char %s[] =\n",
|
||||
unique_id(this, "bits", filename_name(name()), 0));
|
||||
int n = ((p->w+7)/8)*p->h;
|
||||
int n = ((p->w()+7)/8)*p->h();
|
||||
write_cstring((const char*)(p->array), n);
|
||||
write_c(";\n");
|
||||
#endif
|
||||
write_c("static Fl_Bitmap %s(%s, %d, %d);\n",
|
||||
unique_id(this, "bitmap", filename_name(name()), 0),
|
||||
unique_id(this, "bits", filename_name(name()), 0),
|
||||
p->w, p->h);
|
||||
p->w(), p->h());
|
||||
}
|
||||
|
||||
void bitmap_image::write_code() {
|
||||
@@ -436,5 +436,5 @@ Fluid_Image *ui_find_image(const char *oldname) {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fluid_Image.cxx,v 1.7.2.9 2001/04/13 19:34:03 easysw Exp $".
|
||||
// End of "$Id: Fluid_Image.cxx,v 1.7.2.9.2.1 2001/08/05 23:58:54 easysw Exp $".
|
||||
//
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ Fluid_Image.o: ../FL/Fl_Menu_Item.H Fluid_Image.h ../FL/Fl_Tabs.H
|
||||
Fluid_Image.o: ../FL/Fl_Group.H ../FL/Fl_Pack.H ../FL/Fl_Group.H
|
||||
Fluid_Image.o: ../FL/Fl_Menu_.H ../FL/Fl_Menu_Button.H ../FL/Fl_Menu_.H
|
||||
Fluid_Image.o: ../FL/Fl_Choice.H ../FL/Fl_Menu_Bar.H ../FL/filename.H
|
||||
Fluid_Image.o: ../FL/Fl_Pixmap.H
|
||||
Fluid_Image.o: ../FL/Fl_Pixmap.H ../FL/Fl_Image.H
|
||||
code.o: ../FL/Fl.H ../FL/Enumerations.H ../FL/Fl_Export.H Fl_Type.h
|
||||
code.o: ../FL/Fl_Widget.H ../FL/Fl_Menu.H ../FL/Fl_Menu_Item.H Fluid_Image.h
|
||||
code.o: ../FL/Fl_Tabs.H ../FL/Fl_Group.H ../FL/Fl_Pack.H ../FL/Fl_Group.H
|
||||
|
||||
Reference in New Issue
Block a user