Main Page | Data Structures | File List | Data Fields | Globals

fbgxMenuTabCores.c File Reference

#include "ibguXdraw.h"
#include "ibgxCriaWidgets.h"
#include "iutxprot.h"
#include "/g0eo/Fontes/Sepran/Pixmap/ok.pix32"
#include "/g0eo/Fontes/Sepran/Pixmap/cancel.pix32"

Defines

#define COM_PRINTF   0
#define TAB_R   0
#define TAB_G   1
#define TAB_B   2
#define TAB_RGB   3
#define TAB_CMY   4
#define MAX_CORBAS   8
#define MAX_CORCMY   125
#define MAX_TONS   256
#define NUMCELASCUBO   64
#define DA_EXPOSE   0
#define DA_BPRESS   1
#define DA_BRELEASE   2
#define DA_MOTION   3
#define DA_LEAVE   4
#define Eor(Ix, Iy)   ((Ix||Iy) && (!(Ix&&Iy)))

Functions

void fbgxMenuTabCoresSaveDaApl (void)
void fbgxMenuTabCoresRestDaApl (void)
void fbgxMenuTabCores (Widget wgPai, long defDA, float R, float G, float B, long transp, long indBAS, long indCMY, XtPointer objCpp, void(*funcaoRet)())

Variables

void(* gbgxRetornoCor )(long, float, float, float, long, long, long, XtPointer)
void(* gbgxFsetCorSel )(float, float, float)
long gbgxDepth24
unsigned long gbgxIndCores [180]
unsigned long gbgxIndCoresCtes [16]

Define Documentation

#define COM_PRINTF   0
 

----------------------------------------------------------------------------

PROTOTIPO: ---------- void fbgxMenuTabCores (Widget wgPai, long defDA, float R, float G, float B, long transp, long indBAS, long indCMY, XtPointer objCpp, void (*funcaoRet)());

PARAMEROS DE ENTRADA -------------------- 1 - wgPai : (Widget) pai do menu (de preferencia a "Toplevel" da aplicacao 2 - defDa : (long) "Drawing-area" definida (0 = Nao tem ou 1 = Tem) 3 - R : (float) Ton de "RED" entre "0 e 1", pode ser "-1" (Editor) 4 - G : (float) Ton de "GREEN" entre "0 e 1", pode ser "-1" (Editor) 5 - B : (float) Ton de "BLUE" entre "0 e 1", pode ser "-1" (Editor) 6 - transp: (long) Percentual de transparencia "de -1 a 100" ("-1" nao mostra) 7 - indBAS: (long) Indice "CORES BASICAS" entre "-1 e 7" (valores do BIG) 8 - indCMY: (long) Indice "CMY" entre "-1 e 124" (antiga tabela de 125 cores) 9 - objCpp: (XtPointer) Objeto C++ para aplicacoes em C++ ou "NULL" para as demais, exceto para "TAB. DE CORES DO GRID" que devera ser "< 0". 10 - funcaoRet: Void(*)() Endereco (nome) da "Funcao de Retorno" que serah chamada da callback dos botoes "Ok" e/ou "Cancel", exceto pela "TAB. DE CORES DO GRID", onde esta funcao recebera somente os tons de "RGB" normalizados entre "0 e 1".

Obs: Para aplicacoes que nao tem "Area de Desenho", basta passar 0 no segundo parametro, ou seja, "defDA = 0" (sem drawing-area definida). Os valores "-1" para os tons de "RGB" inicializam a "Cor Corrente" com uma cor neutra, ou seja, a "Cor de Fundo do Menu", e os campos textos com "NULOS". Ex: Litologias ou Padroes Transparentes e Selecao Multipla do "Big/Editor". Para inicializar com uma cor das tabelas de cores "Basicas" ou de "125", basta passar o indice de "0 a 7" (basicas) ou "0 a 124" (125 cores), caso um dos dois indices seja "-1" assumira o outro, se ambos forem validos, asumira o indice das "Cores Basicas" e se ambos forem "-1", assumira os tons de "RGB", nesta ordem.

PROTOTIPO DA FUNCAO DE RETORNO: ------------------------------ void "nome da funcao" (long Botao, float R, float G, float B, long indBas, long indCMY, long transp, XtPointer objCpp);

Para a "TAB. DE CORES DO GRID" void "nome da funcao" (float R, float G, float B);

PARAMEROS DE SAIDA (RECEBIDOS NA "Funcao de Retorno") ----------------------------------------------------- 1 - Botao : (long) Botao de "OK = 1" ou "CANCEL = 0" 2 - R : (float) Ton de "RED" entre "0 e 1" 3 - G : (float) Ton de "GREEN" entre "0 e 1" 4 - B : (float) Ton de "BLUE" entre "0 e 1" 5 - indBAS: (long) Indice "CORES BASICAS" entre "-1 e 7" (valores do BIG) 6 - indCMY: (long) Indice "CMY" entre "-1 e 124" (antiga tabela de 125 cores) 7 - transp: (long) Percentual de transparencia entre "-1 e 100" 8 - objCpp: (XtPointer) Objeto C++ passado para "fbgxMenuTabCores" -------------------------------------------------------------------------------

#define DA_BPRESS   1
 

#define DA_BRELEASE   2
 

#define DA_EXPOSE   0
 

#define DA_LEAVE   4
 

#define DA_MOTION   3
 

#define Eor (  Ix,
Iy   )     ((Ix||Iy) && (!(Ix&&Iy)))
 

#define MAX_CORBAS   8
 

#define MAX_CORCMY   125
 

#define MAX_TONS   256
 

#define NUMCELASCUBO   64
 

#define TAB_B   2
 

#define TAB_CMY   4
 

#define TAB_G   1
 

#define TAB_R   0
 

#define TAB_RGB   3
 


Function Documentation

void fbgxMenuTabCores (  Widget  wgPai,
long  defDA,
float  R,
float  G,
float  B,
long  transp,
long  indBAS,
long  indCMY,
XtPointer  objCpp,
void(*  funcaoRet)()
) 
 

void fbgxMenuTabCoresRestDaApl (  void   ) 
 

void fbgxMenuTabCoresSaveDaApl (  void   ) 
 


Variable Documentation

long gbgxDepth24
 

void(* gbgxFsetCorSel)(float, float, float)
 

unsigned long gbgxIndCores[180]
 

unsigned long gbgxIndCoresCtes[16]
 

void(* gbgxRetornoCor)(long, float, float, float, long, long, long, XtPointer)
 


Generated on Wed Dec 17 13:53:56 2008 for XDraw by doxygen 1.3.5