Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
2Activity
×

Table Of Contents

Hello World in GTK
Compiling Hello World
Events
Data Types
More on Signal Handlers
An Upgraded Hello World
Theory of Packing Boxes
Details of Boxes
Packing Demonstration Program
Table Packing Example
Casting
Widget Hierarchy
Widgets Without Windows
Normal Buttons
Radio Buttons
Creating an Adjustment
Using Adjustments the Easy Way
Adjustment Internals
Scrollbar Widgets
Scale Widgets
Creating a Scale Widget
Functions and Signals (well, functions, at least)
Common Range Functions
Setting the Update Policy
Getting and Setting Adjustments
Key and Mouse bindings
Example
Labels
The Tooltips Object
Progress Bars
Dialogs
Rulers
Statusbars
Text Entries
Spin Buttons
Combo Box
Calendar
Color Selection
File Selections
The EventBox
The Alignment widget
Fixed Container
Layout Container
Frames
Aspect Frames
Scrolled Windows
Button Boxes
Toolbar
Manual Menu Creation
Manual Menu Example
Using ItemFactory
Creating an ItemFactory
Making use of the menu and its menu items
Item Factory Example
Accel Label
Option Menu
Menu Items
Check Menu Item
Radio Menu Item
Separator Menu Item
Tearoff Menu Item
Curves
Drawing Area
Font Selection Dialog
Message Dialog
Gamma Curve
Plugs and Sockets
Tree View
Text View
Chapter 14. Setting Widget Attributes
Signal Emission and Propagation
Overview
Retrieving the selection
Supplying the selection
Properties
Functions
Setting up the source widget
Signals on the source widget:
Setting up a destination widget:
Signals on the destination widget:
Definitions
Doubly Linked Lists
Singly Linked Lists
Memory Management
Timers
String Handling
Utility and Error Functions
Functions For rc Files
GTK’s rc File Format
Example rc file
Chapter 21. Writing Your Own Widgets
The Anatomy Of A Widget
Creating a Composite widget
Introduction
Choosing a parent class
The header file
The _get_type() function
The _class_init() function
The _init() function
Creating a widget from scratch
Displaying a widget on the screen
The origins of the Dial Widget
The Basics
Size negotiation
gtk_dial_expose()
Event handling
Possible Enhancements
Chapter 22. Scribble, A Simple Example Drawing Program
Event Handling
The DrawingArea Widget, And Drawing
Adding XInput support
Enabling extended device information
Using extended device information
Further sophistications
Chapter 23. Tips For Writing GTK Applications
GtkWidget
GtkData
GtkContainer
GtkCalendar
GtkEditable
GtkNotebook
GtkList
GtkMenuShell
GtkToolbar
GtkButton
GtkItem
GtkWindow
GtkHandleBox
GtkToggleButton
GtkMenuItem
GtkCheckMenuItem
GtkInputDialog
GtkStatusBar
GtkCurve
GtkAdjustment
Tictactoe
tictactoe.h
tictactoe.c
ttt_test.c
GtkDial
gtkdial.h
gtkdial.c
scribble-simple.c
scribble-xinput.c
0 of .
Results for:
No results containing your search query
P. 1
gtk-tut

gtk-tut

Ratings: (0)|Views: 5,490|Likes:
Published by TAN_X007

More info:

Published by: TAN_X007 on Mar 20, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

03/20/2011

pdf

text

original

You're Reading a Free Preview
Pages 5 to 30 are not shown in this preview.
You're Reading a Free Preview
Pages 35 to 140 are not shown in this preview.
You're Reading a Free Preview
Pages 145 to 204 are not shown in this preview.
You're Reading a Free Preview
Pages 209 to 238 are not shown in this preview.
You're Reading a Free Preview
Pages 243 to 244 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->