gCAD3D 2.40
gui_gtk2/gtk_image.c File Reference

image, button with image, tutorial More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "../ut/ut_umem.h"
#include "../ut/ut_os.h"
#include "../gui/gui_types.h"
#include "../gui/gui_base.h"
#include "../gui_gtk2/gtk_image.h"

Functions

MemObj GUI_img__ (MemObj *o_par, char *filnam, char *opts)
 
int GUI_Ico_init (char *icoNam[])
 
int GUI_TUT_m__ (int ii)
 
int GUI_TUT_t__ (char *ltxt)
 

Variables

static int icoNr
 
GdkPixbuf ** IcoTab
 
GtkWidget * UI_act_wi
 

Detailed Description

image, button with image, tutorial

=====================================================
List_functions_start:
GUI_img__ backgroundimage
GUI_Ico_init init and load all icons (used with GUI_TreeIT__)
GUI_TUT_m__ ScreenCast-mousebuttons NOT IMPLEM.; ONLY GTK3
GUI_TUT_t__ ScreenCast-Text NOT IMPLEM.; ONLY GTK3
List_functions_end:
=====================================================

Function Documentation

MemObj GUI_img__ ( MemObj o_par,
char *  filnam,
char *  opts 
)
* display Pixmap (.xpm or .jpg or .png)
* Input:
* o_par parentBox
* fNam full image-filename
* opts options; (HorSiz,VertSiz)
* HorSiz,VertSiz: size in characters; default is automatic size.
* 'e' = expand widget; default is fixed size.
* negative values: size in pixels.
* Examples: "" or "10" or "10e,e"
* "10e,e" horiz. size 10 chars, hor. and vert. expandable.
*
int GUI_Ico_init ( char *  icoNam[])
* GUI_Ico_init create and load all icons
* iconfiles must be in directory <base>/icons/
* Example:
* char *icoNam[]={"t2.png","t3.png",NULL};
*
int GUI_TUT_m__ ( int  ii)
* GTK2: NOT IMPLEMENTED; ONLY GTK3.
* display image "mousebutton" without decoration for 0.8 secs
* Input: ii=mousebutton; 1|2|3
*
int GUI_TUT_t__ ( char *  ltxt)
* GTK2: NOT IMPLEMENTED; ONLY GTK3.
* display text without decoration for 0.8 secs
*

Variable Documentation

int icoNr
static
GdkPixbuf** IcoTab
GtkWidget* UI_act_wi