gambas-source-code/main/lib/image/image_stat.h
Benoît Minisini dc5875f9d3 [DEVELOPMENT ENVIRONMENT]
* BUG: Fix a possible crash when highlighting source code positions in the 
  output window.
* BUG: Hitting ENTER key in the project tree filter now works correctly, 
  and open the first matching file if none is selected.

[GB.DESKTOP]
* BUG: Requires gb.desktop.x11 explicitely now.

[GB.GTK]
* BUG: System tray icons deletion is delayed now. It prevents spurious GTK+
  warnings that appear if you hide an icon during inside an event handler.

[GB.IMAGE]
* BUG: Rewrite the ImageStat class source code because the PHP licence is 
  not compatible with the GPL.

[GB.QT4]
* BUG: System tray icons deletion is delayed now, to avoid a crash if you
  hide an icon during inside an event handler.


git-svn-id: svn://localhost/gambas/trunk@6344 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-06-26 20:00:13 +00:00

66 lines
No EOL
1.5 KiB
C

/***************************************************************************
image_stat.h
(c) 2000-2013 Benoît Minisini <gambas@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
***************************************************************************/
#ifndef __IMAGE_STAT_H
#define __IMAGE_STAT_H
#include "main.h"
typedef
struct {
char *addr;
int len;
int pos;
}
IMAGE_STREAM;
typedef
enum
{
IMAGE_TYPE_ERROR = -1,
IMAGE_TYPE_UNKNOWN = 0,
IMAGE_TYPE_GIF = 1,
IMAGE_TYPE_JPEG,
IMAGE_TYPE_PNG,
IMAGE_TYPE_BMP,
IMAGE_TYPE_TIFF_INTEL,
IMAGE_TYPE_TIFF_MOTOROLA
}
IMAGE_FILETYPE;
typedef
struct {
char *type;
unsigned int width;
unsigned int height;
unsigned int depth;
}
IMAGE_INFO;
#ifndef __IMAGE_STAT_C
extern const char *IMAGE_error;
#endif
bool IMAGE_get_info(IMAGE_STREAM *stream, IMAGE_INFO *info);
#endif