mi32/micon.h File Reference

Definitions for portable "icon" functions. More...

#include <mi32/simplear.h>
Include dependency graph for micon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MICONSTRUCT

Enumerations

enum  MICONFLAGS {
  MICONFLAG_None = 0x0000, MICONFLAG_Stippled = 0x0001, MICONFLAG_DefaultBackground = 0x0002, MICONFLAG_StippledSelected = 0x0008,
  MICONFLAG_SizeMask = 0x0FF0, MICONFLAG_Size16 = 0x0100, MICONFLAG_Size32 = 0x0200, MICONFLAG_NoDarkenSelected = 0x1000,
  MICONFLAG_DisplayError = 0x2000
}

Functions

 DEPRECATED_MSG ("Use MICONSTRUCT*") typedef MICONSTRUCT *MICON
int MiconCreate (MICONSTRUCT **icon, ICONID iconid, MPIXEL bgpixel, UINT8 width, UINT8 height, UINT32 flags)
int MiconCreate (MICONSTRUCT **icon, const char *group, const char *name, MPIXEL bgpixel, UINT8 width, UINT8 height, UINT32 flags)
void MiconDestroy (MICONSTRUCT *icon)
ICONID MiconGenerateID (const char *name, const char *group=0, int size=16)
UINT8 MiconGetHeight (const MICONSTRUCT *icon)
UINT8 MiconGetWidth (const MICONSTRUCT *icon)
ERRVALUE MiconOpen (RVC::STYLE &Object, const MIUNICODE *group)
ERRVALUE MiconOpen (RVC::STYLE &Object, const FILEPATH &filepath, const MIUNICODE *group)
ERRVALUE MiconRead (const char *group, const char *name, RVC::STYLEPATTERN_BITMAP &pattern)
ERRVALUE MiconRead (ICONID iconid, RVC::STYLEPATTERN_BITMAP &pattern)
ERRVALUE MiconRead (ICONID iconid, SIMPLE_ARRAY< UINT32 > &data)
ERRVALUE MiconRead (ICONID iconid, MICONSTRUCT **normalicon, MICONSTRUCT **armselicon, MPIXEL normalbg, MPIXEL armselbg, MICONFLAGS flags=MICONFLAG_None)
ERRVALUE MiconRead (ICONID iconid, MICONSTRUCT **normalicon, MICONSTRUCT **armselicon=0, MICONFLAGS flags=MICONFLAG_None)
int MiconRead (const char *group, const char *name, MICONSTRUCT **normalicon, MICONSTRUCT **armeselicon, UINT32 flags)
int MiconRead (const char *group, const char *name, MICONSTRUCT **normalicon, MICONSTRUCT **armselicon, MPIXEL normalbg, MPIXEL armselbg, UINT32 flags, RVC::STYLE *StyleObj=0)
int MiconReadPatternExt (RVC::STYLE &StyleObj, INT32 pattnum, const MIUNICODE *name, int width, int height, RVC::STYLEPATTERN_BITMAP &Pattern)
int MiconReadPatternExt (RVC::STYLE &StyleObj, INT32 pattnum, const MIUNICODE *name, int width, int height, SIMPLE_ARRAY< UINT8 > &pattdata)

Detailed Description

Definitions for portable "icon" functions.


Enumeration Type Documentation

enum MICONFLAGS

Enumeration for flags used in various Micon functions.

Enumerator:
MICONFLAG_None 

No flags specified.

MICONFLAG_Stippled 

Create a "dimmed" pixmap as well as a normal pixmap.

MICONFLAG_DefaultBackground 

Use MxTopLevel()'s XmNbackground resource.

MICONFLAG_StippledSelected 

Create "dimmed" pixmap for armed/selected state.

MICONFLAG_SizeMask 

Bit mask for sizes from 1 to 255.

MICONFLAG_Size16 

Resize icon to 16 by 16 if smaller.

MICONFLAG_Size32 

Resize icon to 32 by 32 if smaller.

MICONFLAG_NoDarkenSelected 

Don't darken background for "selected" state.

MICONFLAG_DisplayError 

Display icon reading error even in non-programmer mode.


Function Documentation

DEPRECATED_MSG ( "Use MICONSTRUCT*"   ) 

Generated on Sun Oct 7 21:27:20 2012 for TNTsdk 2012 by  doxygen 1.6.1