C Language Learning (2)-GTK layout, C Language Learning-gtk LayoutFirst, understand the Definition Format of the function in gtk:
Remember the following formats.
Declare variable: GtkAbc * abc = gtk_abc_new () Declare control;Value assignment: gtk_abc_set_label (controlName, value );Add to parent container: gtk_container_add (controFather, controlChildl
Getting started with GTK: Layout exercise calculator and gtk getting started layout Calculator
Next, let's do a layout exercise, such:
We use table layout. The table layout reference coordinates are as follows:
The line editing control (GtkEntry) is used here ).
Create row Editing:
GtkWidget * gtk_entry_new (void );
Returned value: Row editing pointer row
Edit content settings:
Void gtk_entry_set_text
Press the button and the picture is saved in the current path as "Save.png":#include program run:Cut out the picture:Source code download please click here.GTK Advanced Learning: GTK implementation Function (can specify range)
Installing the source code on a Linux system GTK + 2.0==================================================keywords:gtk+, Install, Linux, SourceAuthor:whyglinux (whyglinux at Hotmail DOT com)date:2007-01-07==================================================Directory0. Preface1.Binary installation and source installation2.GTK + Dependent Packages3.View the version number of the software4. Installation Planning4.
Install GTK
Sudo apt-Get install Vim # Use Vim to write code. Of course, you can use any editor you like.
Sudo apt-Get install build-essential # This will install basic programming tools such as gcc/g ++/GDB/make
Sudo apt-Get install gnome-core-devel # This will install libgtk2.0-dev libglib2.0-Dev and other development-related library files
Sudo apt-Get install PKG-config # used to automatically find the header file and library file location when co
With the method of the original author, it is okay to compile and run only one source code, but an error will be reported during the connection phase when multiple source codes are compiled and run according to the engineering situation. after debugging for multiple times, I found that the problem was reversed when I added the compilation connection parameters.
1.The first step is to use two important software: dev-cpp4.9.9.2and gtk-dev-2.12.9-win32-
In Linux, you can use GTK (the gimp Toolkit) for GUI (graphic user interface) development. We recommend that you use anjuta + Glade (which may be eclipse + CDT) as a development tool ).Suggestion:1. Learn about GTK + 2.0, for example, using VIM + GCC + GDB + make + automake + Autoconf... in this way, you will have a basic understanding of the GTK-based graphic de
Http://zxt85610.blog.163.com/blog/static/9670657200845115953183/
In Linux, you can use GTK (the gimp Toolkit) for GUI (graphic user interface) development. We recommend that you use anjuta + Glade (which may be eclipse + CDT) as a development tool ).
Suggestion:
1. Learn about GTK + 2.0, for example, using VIM + GCC + GDB + make + automake + Autoconf... in this way, you will have a basic understanding of t
See materials:
Http://www.openismus.com/documents/clutter_tutorial/0.9/docs/tutorial/html/sec-stage-widget.html
This time we need to use the clutter-GTK development kit. Simple compilation is as follows. Note that the PKG-config quotation marks are not ['], but [']. ^ _ ^. Do not make a mistake.
Gcc-wall-G example. C-o example 'pkg-config clutter-1.0 clutter-gtk
First, the required source code package
1. GNU Make Tool
2. GNU GetText software package (required when there is no GetText () function on the system)
3. GNU Libiconv Library (required when there is no iconv () function on the system)
4. Fontconfig Library
Fontconfig is a library of functions that provides system-wide font settings, customizing, and allowing applications to access.
5. FreeType Library
GTK + (DIRECTFB) font drawing is done through pang
case
Contents
GiochannelCase handling
GiochannelAnd Pipe
Information Structure and memory configuration
Let's take a look.Glib provides common information structure processing and dynamic memory configuration.
Gstring
Garray, gptrarray,Gbytearray
Gslist,Glist
Ghashtable
GtreeAnd gnode
NoteGraphical Configuration
BytesRows
GlibProvides gthread support for multiple response rows.
Gthread
Gmutex
Gcond
Appendix
Glade2 and glade 3
Libglade
GTK + and glade3 GUI Programming Tutorial
GTK interface development toolsGtkbuilder
Getting started with Glade 3 and GTK +-2
Knowledge Point
glade3 and glade2 difference glade2 Generate Code , glade3 only Generate XML file (separated from the
Installation of PHP/GTK
php-gtk-2.0.1 Source
php-gtk-2.0.1 Windows Binary Pack
php-gtk-2.0.1 Windows Binary Extensions Pack
is not all useful, installed in what place, hope pointing ...
Reply to discussion (solution)
CopyPHP/GTK allows PHP to also write desktop applic
What makes Ubuntu choose Qt instead of GTK? A fact that is happening, Ubuntu is constantly qt!I've been complaining about the software Center,Today a look at the source code, unexpectedly have SOFTWARECENTER/UI/QML branch,Even though it's kinda ugly to run, But you can imagine that the future is definitely replacing the GTK version-----------------------------------------------------------------------------
character ). Same MethodIn gccAdd linker flags under miscellaneous under C linker'Pkg-config -- cflags -- libs GTK +-2.0 '(Note:' This symbol is the one signature key, and a space is added before this character ). In addition, right-click the project and choose Properties> C/C ++.Build-> Settings-> gcc C compiler-> directories, add/usr/include/gtk-2.0 and/usr/include/glib-2.0 this is for smart tip convenie
callback functions to be called when a button on the toolbar is pressed. You should be familiar with these things if you have used the switch button (and single choice button ).Int main (INT argc, char * argv []){/* The following is the main window (a dialog box) and a handlebox )*/Gtkwidget * dialog;Gtkwidget * handlebox;/* Well, we need a toolbar, an icon with a mask (mask) (all buttons share a mask) and* A Chart icon component (but we will create a split component for each button )*/Gtkwidge
I believe many people want a beautiful and beautiful desktop. To do this in UbuntuLinux, they need to use some theme and special effects. Today I will share with you how to install GTK theme. Today, we will explain the theme that xiaobian is using as an example. First, we need to download the topic (today we use the Uncomplicated topic) for free at http://linux.linuxidc.com/the user name and password are all specific to www.linuxidc.com
I believe many
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.