IupImageLib

IUP - Portable User Interface

IupImageLib (since 3.0)

A library of pre-defined images for buttons and labels. See IupImageLib up to IUP 2.x.

Initialization

To generate an application that uses this function, the program must be linked to the functions library (iupimglib.lib on Windows and libiupimglib.a on Unix). The iupcontrols.h file must also be included in the source code.

The library is large and could increase the size of the executable. To avoid linking with the library get the source code and extract only the image you need.

Reference

void IupImageLibOpen(void); [in C]

This function register the names but do not load the images. The images will be loaded only if they are used in a control.

void IupImageLibClose(void); [in C]

This function releases all the loaded images.

Usage

The following names can be used after the library initialization. The name are NOT registered using IupSetHandle, they will be automatically loaded when associated with a control.

Bitmap Group

These bitmaps are 16x16-8bpp (Motif), 16x16-32bpp (Win32) or 24x24-32bpp (GTK) pixels size images that can be used in Buttons, usually inside toolbars. Do not set RASTERSIZE of buttons so they can expand when switching to GTK.

Name Image
(Motif)
Image
(Win32)
Image
(GTK)
"IUP_ActionCancel"
"IUP_ActionOk"
"IUP_ArrowDown"
"IUP_ArrowLeft"
"IUP_ArrowRight"
"IUP_ArrowUp"
"IUP_EditCopy"
"IUP_EditCut"
"IUP_EditErase"
"IUP_EditFind"
"IUP_EditPaste"
"IUP_EditRedo"
"IUP_EditUndo"
"IUP_FileClose"
"IUP_FileCloseAll"
"IUP_FileNew"
"IUP_FileOpen"
"IUP_FileProperties"
"IUP_FileSave"
"IUP_FileSaveAll"
"IUP_FileText"
"IUP_FontBold"
"IUP_FontDialog"
"IUP_FontItalic"
"IUP_MediaForward"
"IUP_MediaGotoBegin"
"IUP_MediaGoToEnd"
"IUP_MediaPause"
"IUP_MediaPlay"
"IUP_MediaRecord"
"IUP_MediaReverse"
"IUP_MediaRewind"
"IUP_MediaStop"
"IUP_MessageError"
"IUP_MessageHelp"
"IUP_MessageInfo"
"IUP_NavigateHome"
"IUP_NavigateRefresh"
"IUP_Print"
"IUP_PrintPreview"
"IUP_ToolsColor"
"IUP_ToolsSettings"
"IUP_ToolsSortAscend"
"IUP_ToolsSortDescend"
"IUP_ViewFullScreen"
"IUP_WindowsCascade"
"IUP_WindowsTile"
"IUP_Zoom"
"IUP_ZoomActualSize"
"IUP_ZoomIn"
"IUP_ZoomOut"
"IUP_ZoomSelection"

Icon Group

These icons are 32x32 pixels size (or just 32 pixels height) images that can be used in Labels, usually inside toolbars.

Name Image
(Generic)
"IUP_Tecgraf"
"IUP_PUC-Rio"
"IUP_BR"
"IUP_Lua"
Name Image
(Generic)
"IUP_TecgrafPUC-Rio"
"IUP_Petrobras"

Logo Group

These logos are 48x48 pixels size (or just 48 pixels height) images that can be used in Labels, usually inside dialogs.

Name Image
(Generic)
"IUP_LogoTecgraf"
"IUP_LogoPUC-Rio"
"IUP_LogoBR"
"IUP_LogoLua"
Name Image
(Generic)
"IUP_LogoTecgrafPUC-Rio"
"IUP_LogoPetrobras"

Other

Here are other images NOT available in the IUP stock library, but commonly used by the respective systems. All images are 48x48 pixels size and 32bpp.

Name Image
(Win32)
Image
(GTK)
"IUP_MessageSecurity"
"IUP_MessageWarning"
"IUP_MessageInfo"
"IUP_MessageError"
"IUP_MessageHelp"
Name Image
(Win32)
"IUP_DeviceCamera"
"IUP_DeviceCD"
"IUP_DeviceCellPhone"
"IUP_DeviceComputer"
"IUP_DeviceFax"
"IUP_DeviceMP3"
"IUP_DeviceNetwork"
"IUP_DevicePDA"
"IUP_DevicePrinter"
"IUP_DeviceScanner"
"IUP_DeviceSound"
"IUP_DeviceVideo"

Notes

All 8bpp images are from the old ImageLib and since Motif does not have any stock images, we selected this set to be used in Motif. Although the IUP Motif driver supports 32bpp images.

All "Win32" images copyright Microsoft and were extracted from the Visual Studio 2005 Image Library. Their use must be used consistently with their description in the Visual Studio 2005 Image Library, and so consistently with the IUP name. These files are available with Microsoft Visual Studio 2005 for redistribution under the Visual Studio 2005 license.

GTK stock images are released under the GTK license.

PUC-Rio, Tecgraf/PUC-Rio, Petrobras and Lua images are copyright of the respective companies or owners.

Lua image graphic design by A. Nakonechnyj. Copyright © 1998. All rights reserved.

See Also

IupImage