gCAD3D 2.40
gui_gtk3/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_gtk3/gtk_image.h"


#define VIEWTIME_T   400
#define VIEWTIME_M   200


int GUI_TUT_m_CB (GtkWidget *widget, GdkEventExpose *event, gpointer userdata)
int GUI_TUT_CB_tmr (void *data)
int GUI_TUT_m__ (int ii)
int GUI_TUT_t__ (char *ltxt)
MemObj GUI_img__ (MemObj *o_par, char *filnam, char *opts)
int GUI_Ico_init (char *icoNam[])


static int icoNr
GdkPixbuf ** IcoTab
static GtkWidget * TUT_win =NULL
GtkWidget * UI_act_wi

Detailed Description

image, button with image, tutorial

GUI_img__ backgroundimage
GUI_Ico_init init and load all icons (used with GUI_TreeIT__)
GUI_TUT_m__ ScreenCast-mousebuttons
GUI_TUT_t__ ScreenCast-Text

Macro Definition Documentation

#define VIEWTIME_T   400
#define VIEWTIME_M   200

Function Documentation

int GUI_TUT_m_CB ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  userdata 

draw transp. window-backgnd

int GUI_TUT_CB_tmr ( void *  data)

timer-callback: destroy.

int GUI_TUT_m__ ( int  ii)
* display image "mousebutton" without decoration for 0.8 secs
* Input: ii=mousebutton; 1|2|3
int GUI_TUT_t__ ( char *  ltxt)

display text without decoration for 0.8 secs

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};

Variable Documentation

int icoNr
GdkPixbuf** IcoTab
GtkWidget* TUT_win =NULL
GtkWidget* UI_act_wi