Ktam3874/pitx software guide – Kontron KTAM3874-pITX User Manual

Page 163

Advertising
background image

KTD-S0057-I

Page 159 Linux® Programming Examples (DebianTM)


KTAM3874/pITX Software Guide

#define ID_COLOR

1

#define ID_FONT

2

#define ID_RADIUS

3

#define INITCOL

{0, 0, 0, 0xFFFF}

/* BLUE */

#define RADIUS_BORDER

20

#define RADIUS_SPACE

15

#define INITRADIUS

QUART(width)

#define ZERO

0.0

#define ONE

1.0

#define FRAME_SCALE

0.6

#define CAIRO_FONT

"Sans"

#define FONT_SIZE

32.0

#define INFO_PADDING

3

#define CENTER

0.5

#define FRAME_BOTTOM

12

#define FRAME_LEFT

59

#define FRAME_BORDER

34

#define MENU_PADDING

0

#define MAIN_BORDER

0

#define SAMPLE_DIMENS

600,500

#define TABLE_COLOR

1,2,1,4

#define TABLE_FONT

1,2,6,7

#define TABLE_RADIUS

1,2,9,12

#define BUTTON_COLOR

{3,2,1,1}

#define BUTTON_FONT

{3,6,1,1}

#define BUTTON_RADIUS

{3,10,1,1}

#define BUTTON_FRAME

{2,0,3,13}

#define RECT_COL1

"gold"

#define RECT_COL2

"darkorange"

#define SPHERE_COL1

"chartreuse"

#define SPHERE_COL2

"darkgreen"

#define CAIRO_TEXTCOL

"gray22"

#define TEXT_COLOR

"sienna"

#define TEXT_FONT

"Cantarell Bold 14"

#define HALF(x)

(x/2.0)

#define QUART(x)

(x/4.0)

#define TENTH(x)

(x/10.0)

#define FOURTEENTH(x)

(x*4.0/10.0)

#define COL(x)

((double)x/65535.0)

/* Do not use BLACK with this statement */

#define MAIN_TITLE

"GTK+ 3.x DEMO"

#define COLOR_TITLE

"Select background color"

#define FONT_TITLE

"Select text font"

#define RADIUS_TITLE

"Choose a radius"

#define ABOUT_TITLE

"GTK+ 3.x Example"

#define CANCEL_TXT

"Cancel"

#define APPLY_TXT

"Apply"

#define ABOUT_VERSION

"Version 1.0"

#define ABOUT_COPYRGT

"(c) Kontron"

#define ABOUT_COMMENT

"GTK+ example for GTK version %d.%d.%d"

#define ABOUT_WEBSITE

"http://www.kontron.com"

#define ABOUT_ICONDIR

"usr/share/pixmaps/gnome-tigert.png"

Advertising
This manual is related to the following products: