GTK+ Reference Manual

2023-05-16

GTK+ Reference Manual for GTK+ 2.6.2 -------------------------------------------------------------------------------- Table of Contents I. GTK+ Overview Compiling the GTK+ libraries - How to compile GTK+ itself Compiling GTK+ Applications - How to compile your GTK+ application Running GTK+ Applications - How to run and debug your GTK+ application Using GTK+ on Windows - Windows-specific aspects of using GTK+ Using GTK+ on the Framebuffer - Linux framebuffer aspects of using GTK+ Using GTK+ on the X Window System - X11 aspects of using GTK+ Mailing lists and bug reports - Getting help with GTK+ Common Questions - Find answers to common questions in the GTK+ manual II. GTK+ Core Reference Main loop and Events - Library initialization, main event loop, and events Accelerator Groups - Groups of global keyboard accelerators for an entire GtkWindow Accelerator Maps - Loadable keyboard accelerator specifications Clipboards - Storing data on clipboards Drag and Drop - Functions for controlling drag and drop handling GtkIconTheme - Looking up icons by name Stock Items - Prebuilt common menu/toolbar items and corresponding icons Themeable Stock Images - Manipulating stock icons Resource Files - Routines for handling resource files Settings - Sharing settings between applications Bindings - Key bindings for individual widgets Standard Enumerations - Public enumerated types used throughout GTK+ Graphics Contexts - A shared pool of GdkGC objects Styles - Functions for drawing widget parts Selections - Functions for handling inter-process communication via selections Version Information - Variables and functions to check the GTK+ version Signals - Object methods and callbacks Types - Handle run-time type creation III. GTK+ Widgets and Objects Object Hierarchy Widget Gallery Windows GtkDialog - Create popup windows GtkInvisible - A widget which is not displayed GtkMessageDialog - A convenient message window GtkWindow - Toplevel which can contain other widgets GtkWindowGroup - Limit the effect of grabs GtkAboutDialog - Display information about an application Display Widgets GtkAccelLabel - A label which displays an accelerator key on the right of the text GtkImage - A widget displaying an image GtkLabel - A widget that displays a small to medium amount of text GtkProgressBar - A widget which indicates progress visually GtkStatusbar - Report messages of minor importance to the user Buttons and Toggles GtkButton - A widget that creates a signal when clicked on GtkCheckButton - Create widgets with a discrete toggle button GtkRadioButton - A choice from multiple check buttons GtkToggleButton - Create buttons which retain their state Numeric/Text Data Entry GtkEntry - A single line text entry field GtkEntryCompletion - Completion functionality for GtkEntry GtkHScale - A horizontal slider widget for selecting a value from a range GtkVScale - A vertical slider widget for selecting a value from a range GtkSpinButton - Retrieve an integer or floating-point number from the user GtkEditable - Interface for text-editing widgets Multiline Text Editor Text Widget Overview - Overview of GtkTextBuffer, GtkTextView, and friends GtkTextIter - Text buffer iterator GtkTextMark - A position in the buffer preserved across buffer modifications GtkTextBuffer - Stores attributed text for display in a GtkTextView GtkTextTag - A tag that can be applied to text in a GtkTextBuffer GtkTextTagTable - Collection of tags that can be used together GtkTextView - Widget that displays a GtkTextBuffer Tree, List and Icon Grid Widgets Tree and List Widget Overview - Overview of GtkTreeModel, GtkTreeView, and other associated widgets GtkTreeModel - The tree interface used by GtkTreeView GtkTreeSelection - The selection object for GtkTreeView GtkTreeViewColumn - A visible column in a GtkTreeView widget GtkTreeView - A widget for displaying both trees and lists GtkTreeView drag-and-drop - Interfaces for drag-and-drop support in GtkTreeView GtkCellView - A widget displaying a single row of a GtkTreeModel GtkIconView - A widget which displays a list of icons in a grid GtkTreeSortable - The interface for sortable models used by GtkTreeView GtkTreeModelSort - A GtkTreeModel which makes an underlying tree model sortable GtkTreeModelFilter - A GtkTreeModel which hides parts of an underlying tree model GtkCellLayout - An interface for packing cells GtkCellRenderer - An object for rendering a single cell on a GdkDrawable GtkCellEditable - Interface for widgets which can are used for editing cells GtkCellRendererCombo - Renders a combobox in a cell GtkCellRendererPixbuf - Renders a pixbuf in a cell GtkCellRendererProgress - Renders numbers as progress bars GtkCellRendererText - Renders text in a cell GtkCellRendererToggle - Renders a toggle button in a cell GtkListStore - A list-like data structure that can be used with the GtkTreeView GtkTreeStore - A tree-like data structure that can be used with the GtkTreeView Menus, Combo Box, Toolbar GtkComboBox - A widget used to choose from a list of items GtkComboBoxEntry - A text entry field with a dropdown list GtkMenu - A menu widget GtkMenuBar - A subclass widget for GtkMenuShell which holds GtkMenuItem widgets GtkMenuItem - The widget used for item in menus GtkMenuShell - A base class for menu objects GtkImageMenuItem - A menu item with an icon GtkRadioMenuItem - A choice from multiple check menu items GtkCheckMenuItem - A menu item with a check box GtkSeparatorMenuItem - A separator used in menus GtkTearoffMenuItem - A menu item used to tear off and reattach its menu GtkToolbar - Create bars of buttons and other widgets GtkToolItem - The base class of widgets that can be added to GtkToolbar GtkSeparatorToolItem - A toolbar item that separates groups of other toolbar items GtkToolButton - A GtkToolItem subclass that displays buttons GtkMenuToolButton - A GtkToolItem containing a button with an additional dropdown menu GtkToggleToolButton - A GtkToolItem containing a toggle button GtkRadioToolButton - A toolbar item that contains a radio button Action-based menus and toolbars GtkUIManager - Constructing menus and toolbars from an XML description GtkActionGroup - A group of actions GtkAction - An action which can be triggered by a menu or toolbar item GtkToggleAction - An action which can be toggled between two states GtkRadioAction - An action of which only one in a group can be active Selectors (File/Font/Color/Input Devices) GtkColorButton - A button to launch a color selection dialog GtkColorSelection - A widget used to select a color GtkColorSelectionDialog - A standard dialog box for selecting a color GtkFileSelection - Prompt the user for a file or directory name GtkFileChooser - File chooser interface used by GtkFileChooserWidget and GtkFileChooserDialog GtkFileChooserButton - A button to launch a file selection dialog GtkFileChooserDialog - A file chooser dialog, suitable for "File/Open" or "File/Save" commands GtkFileChooserWidget - File chooser widget that can be embedded in other widgets GtkFileFilter - A filter for selecting a file subset GtkFontButton - A button to launch a font selection dialog GtkFontSelection - A widget for selecting fonts GtkFontSelectionDialog - A dialog box for selecting fonts GtkInputDialog - Configure devices for the XInput extension Layout Containers GtkAlignment - A widget which controls the alignment and size of its child GtkAspectFrame - A frame that constrains its child to a particular aspect ratio GtkHBox - A horizontal container box GtkVBox - A vertical container box GtkHButtonBox - A container for arranging buttons horizontally GtkVButtonBox - A container for arranging buttons vertically GtkFixed - A container which allows you to position widgets at fixed coordinates GtkHPaned - A container with two panes arranged horizontally GtkVPaned - A container with two panes arranged vertically GtkLayout - Infinite scrollable area containing child widgets and/or custom drawing GtkNotebook - A tabbed notebook container GtkTable - Pack widgets in regular patterns GtkExpander - A container which can hide its child Ornaments GtkFrame - A bin with a decorative frame and optional label GtkHSeparator - A horizontal separator GtkVSeparator - A vertical separator Scrolling GtkHScrollbar - A horizontal scrollbar GtkVScrollbar - A vertical scrollbar GtkScrolledWindow - Adds scrollbars to its child widget Miscellaneous GtkAdjustment - A GtkObject representing an adjustable bounded value GtkArrow - Displays an arrow GtkCalendar - Displays a calendar and allows the user to select a date GtkDrawingArea - A widget for custom user interface elements GtkEventBox - A widget used to catch events for widgets which do not have their own window GtkHandleBox - a widget for detachable window portions GtkIMContextSimple - An input method context supporting table-based input methods GtkIMMulticontext - An input method context supporting multiple, loadable input methods GtkSizeGroup - Grouping widgets so they request the same size GtkTooltips - Add tips to your widgets GtkViewport - An adapter which makes widgets scrollable GtkAccessible - Accessibility support for widgets Abstract Base Classes GtkBin - A container with just one child GtkBox - Base class for box containers GtkButtonBox - Base class for GtkHButtonBox and GtkVButtonBox GtkContainer - Base class for widgets which contain other widgets GtkItem - Abstract base class for GtkMenuItem, GtkListItem and GtkTreeItem GtkMisc - Base class for widgets with alignments and padding GtkObject - The base class of the GTK+ type hierarchy GtkPaned - Base class for widgets with two adjustable panes GtkRange - Base class for widgets which visualize an adjustment GtkScale - Base class for GtkHScale and GtkVScale GtkScrollbar - Base class for GtkHScrollbar and GtkVScrollbar GtkSeparator - Base class for GtkHSeparator and GtkVSeparator GtkWidget - Base class for all widgets GtkIMContext - Base class for input method contexts Cross-process Embedding GtkPlug - Toplevel for embedding into other processes GtkSocket - Container for widgets from other processes Special-purpose features GtkCurve - Allows direct editing of a curve GtkGammaCurve - a subclass of GtkCurve for editing gamma curves. GtkRuler - Base class for horizontal or vertical rulers GtkHRuler - A horizontal ruler. GtkVRuler - A vertical ruler. Deprecated GtkCList - A multi-columned scrolling list widget GtkCTree - A widget displaying a hierarchical tree GtkCombo - A text entry field with a dropdown list GtkItemFactory - A factory for menus GtkList - Widget for packing a list of selectable items GtkListItem - An item in a GtkList GtkOldEditable - Base class for text-editing widgets GtkOptionMenu - A widget used to choose from a list of valid choices GtkPixmap - A widget displaying a graphical image or icon GtkPreview - A widget to display RGB or grayscale data GtkProgress - Base class for GtkProgressBar GtkText - A text widget GtkTipsQuery - Displays help about widgets in the user interface GtkTree - A tree widget GtkTreeItem - The widget used for items in a GtkTree IV. Migrating from Previous Versions of GTK+ Migration Checklist Implement GtkWidget::popup_menu Use GdkEventExpose.region Test for modifier keys correctly Changes from 1.0 to 1.2 - Incompatible changes made between version 1.0 and version 1.2 Changes from 1.2 to 2.0 - Incompatible changes made between version 1.2 and version 2.0 Migrating from GtkFileSelection to GtkFileChooser Creating a GtkFileChooserDialog Selection Modes Installing a Preview widget Installing Extra Widgets New features Migrating from old menu and toolbar systems to GtkAction Actions and Action Groups User Interface Manager Object Migrating from GnomeUIInfo Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry Migrating from GtkOptionMenu to GtkComboBox Migrating from GtkCombo to GtkComboBoxEntry New features Migrating from GnomeIconList to GtkIconView Migrating from GnomeAbout to GtkAboutDialog Migrating from GnomeColorPicker to GtkColorButton V. GTK+ Tools gtk-query-immodules-2.0 - Input method module registration utility gtk-update-icon-cache - Icon theme caching utility Glossary Index Index of deprecated symbols Index of new symbols in 2.2 Index of new symbols in 2.4 Index of new symbols in 2.6 Part I. GTK+ Overview >>

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

GTK+ Reference Manual 的相关文章

  • 如何更改 GTK 中的字体大小?

    有没有一种简单的方法可以更改 GTK 中文本元素的字体大小 现在我能做的就是set markup在标签上 写着一些愚蠢的东西 比如 lbl set markup span s span text 这 1 需要我设置字体 2 似乎有很多开销
  • 使用 GTK 构建 GUI#

    我可能需要使用 C 和 Mono 构建 GTK GUI 如果我理解正确的话 这意味着我有3个选择 编写 C 代码来调用 GTK 包装器类 GUI 是 在代码中 使用 MonoDevelop GUI 设计器 这使用 stetic 标记构建了一
  • Silverlight 如何确定程序集是“Silverlight”?

    我正在尝试从 F 编译代码以在 Silverlight 中使用 我编译 noframework cliroot C program Files Microsoft Silverlight 2 0 31005 0 standalone 这会生
  • 当我不知道它是否是临时的时,C++ 返回类型

    假设Foo是一个相当大的数据结构 我应该怎样写一个const返回实例的虚函数Foo 如果我不知道继承的类是否会存储Foo内部 因此 允许通过引用返回 如果我无法在内部存储它 我的理解是我无法返回const引用它 因为它将是临时的 它是否正确
  • 通过引用的部分数组

    我的问题很简单 是否可以像在 C 中那样 通过引用检索 VBA 中数组的两个部分 自从我用 C 编写代码以来已经有一段时间了 所以我不太记得我现在是怎么做的 如果我记得的话 也许我会举个例子 我想做的是按单个 Double 类型属性对对象数
  • 在 GtkGrid c 中插入空行

    如何在 GtkGrid 中保留空行 我想创建一个带有按钮的 gtkgrid 如示例所示 0 1 2 3 0 button2 button1 1 button3 2 button4
  • Visual Studio 找不到引用

    我正在处理另一个人移交的一些应用程序 我必须在其中记录需求 构建和部署流程 这里的问题是 Visual Studio 2005 抛出很多错误 因为它找不到 dll 的引用 这显然不会让 VS 构建该项目 在该人的计算机上一切正常 但在我的计
  • 如何将对堆栈变量的引用传递给线程?

    我正在编写一个 WebSocket 服务器 其中 Web 客户端连接以与多线程计算机 AI 下棋 WebSocket 服务器想要传递一个Logger对象到 AI 代码中 这Logger对象会将日志行从 AI 传送到 Web 客户端 这Log
  • 使用 PyGTK 的右键菜单(上下文菜单)

    所以我对 Python 还很陌生 并且已经学习了几个月了 但我试图弄清楚的一件事是说你有一个基本的窗口 usr bin env python import sys os import pygtk gtk gobject class app
  • 如何获得 GTK 中的默认颜色?

    Context 在 GTK 3 中 人们可以设置自己的主题 甚至默认主题 Adwaita 也提供两种变体 浅色和深色 当我编写自己的小部件 用Python 时 我需要获取这些颜色以避免在黑色上绘制黑色或在白色上绘制白色 Question 如
  • 循环时,.iter() 与引用 (&) 有何不同?

    在玩 Rust 时 我发现你可以循环Vecs and HashMaps 可能还有其他 通过引用 而不是使用 iter let xs vec 1 2 3 4 5 for x in xs println x x The iter 函数似乎具有相
  • 为什么我不能声明对可变对象的引用? (“引用不能声明为可变的”)

    假设我们有一个test cpp如下 class A class B private A mutable a 汇编 gt gcc test cpp test cpp 6 20 error reference a cannot be decla
  • Java 中的引用变量里面有什么?

    我们知道对象引用变量保存表示访问对象的方式的位 它不保存对象本身 但保存诸如指针或地址之类的东西 我正在阅读 Head First Java 第 2 版 一书 书中写道 第 3 章第 54 页 在 Java 中我们并不真正知道什么是 在引用
  • PyGTK:带线程的 gobject.idle_add() 和 timeout_add()

    是否有任何明确的文档说明idle add timeout add 和 或它们安装的实际回调是否需要锁 任何类型 def work args 1 gtk gdk threads enter needed self ui change some
  • Python GTK 信号处理程序不工作

    我正在使用 GTK 为 GUI 编写一个 Python 应用程序 我注意到从终端使用 Ctrl C 关闭它不起作用 我发现这是因为一个错误 所以我尝试手动处理该信号 问题是 如果我将默认行为设置为默认行为 则会捕获信号并正确关闭应用程序 但
  • 在 GTK+ (gtkD) 中处理按键

    我正在玩gtkD http www dsource org projects gtkd GTK 的 D 绑定 我有一个window对象 实例gtk MainWindow 我想处理它的按键 How 如何处理特殊键 例如箭头键 pgup pgd
  • Eigen 库:在函数中返回矩阵块作为左值

    我试图将矩阵块作为函数的左值返回 假设我的函数如下所示 Block
  • 如何让Gtk+窗口背景透明?

    我想让 Gtk 窗口的背景透明 以便只有窗口中的小部件可见 我找到了一些教程 http mikehearn wordpress com 2006 03 26 gtk windows with alpha channels https web
  • 在 C 中通过引用传递数组

    我是 C 新手 我有一个疑问 由于 C 函数创建其参数的本地副本 我想知道为什么以下代码按预期工作 void function int array array 0 4 array 1 5 array 2 6 int main int arr
  • 我是唯一一个收到“当前目标框架中不可用的程序集”的人吗?

    在添加测试项目后 我在使用 Visual Studio 2010 和任何报告此错误的框架版本时遇到了一个持续存在的问题 当前目标框架中不提供程序集 到目前为止 我只在两个程序集上发生过这种情况 并且始终一致 系统服务流程 系统 配置 安装

随机推荐

  • 详解protobuf-从原理到使用

    这里写的少 xff0c 后面再补充 https www jianshu com p 419efe983cb2
  • signal(SIGCHLD, SIG_IGN)和signal(SIGPIPE, SIG_IGN);

    这个链接写的比较好 xff1a https yq aliyun com articles 42215 signal SIGCHLD SIG IGN 因为并发服务器常常fork很多子进程 xff0c 子进程终结之后需要服务器进程去wait清理
  • Linux c 网络socket编程

    网络编程 xff0c 一定离不开套接字 xff1b 那什么是套接字呢 xff1f 在Linux下 xff0c 所有的I O操作都是通过读写文件描述符而产生的 xff0c 文件描述符是一个和打开的文件相关联的整数 xff0c 这个文件并不只包
  • Linux c 下socket编程全面

    网络的Socket数据传输是一种特殊的I O xff0c Socket也是一种文件描述符 Socket也具有一个类似于打开文件的函数调用Socket xff0c 该函数返回一个整型的Socket描述符 xff0c 随后的连接建立 数据传输等
  • CANoe与金溢的obu can连接的环境问题 Cifconfig can0 up 失败 设置波特率失败

    今天搭建了CANoe与金溢的obu can连接的环境问题 遇到了一个让人不解的问题 can0起不来 xff0c 于是怀疑波特率不匹配 xff0c 使用调不了 Linux 设置波特率 ifconfig can0 down 关闭CAN0 ip
  • V2X-Locate方案,解决隧道内自动车辆定位问题

    2019年3月连网自驾车辆 Connected and Autonomous Vehicles xff0c CAV 通讯技术厂商CohdaWireless于挪威B rum市新建隧道 长达1 3英里 2 2公里 内采用V2X Locate方案
  • 一个高级软件工程师面试被问的问题

    使用new和malloc如何解决内存碎片问题 xff1f 多进程间通信几种方式 xff0c 你用过几种方式 xff1f 线程间通信 xff0c 用过几种方式 分不同的场景 xff0c 适合用哪种通信方式 内存管理 xff0c 如果让你来实现
  • 面试时你需要问HR什么问题?

    与职位相关的问题要多问 xff0c 如 xff1a 1 我知道该职位的首要职责 xff0c 但公司有没有其他的要求 xff1f 2 我的专长是XX xff0c 请问XX部门在公司占有什么样的位置 xff1f 6 面试之后的安排都是什么 xf
  • Linux中断实现浅析

    本文描述内容针对2 6 31 43 x86平台 xff0c 不包含硬件相关的细节 作者 xff1a 独孤九贱 xff1b 版权所有 xff0c 转载请注明出处 有问题欢迎与我交流讨论 一 概述 中断 xff0c 本质上是一个电信号 xff0
  • Linux常用命令

    应用patch patch p1 lt test1 patch 卸载patch patch Rp1 lt test1 patch
  • 【jetson nano、NX、TX2 开机自启动程序,开机自动解除硬件限制,开机默认最大性能工作。】

    jetson nano NX TX2 开机自启动程序 xff0c 开机自动解除硬件限制 xff0c 开机默认最大性能工作 jetson nano NX TX2是英伟达开发的边缘平台 xff0c 其良好的性能 亲民的价格非常适合部署深度学习模
  • 蒙特卡洛法(一)

    蒙特卡洛法也成为统计模拟方法 xff0c 通过从概率模型的随机抽样进行近似数值计算的方法 马尔科夫链蒙特卡洛法则是以马尔科夫链为概率模型的蒙特卡洛法 xff0c 构建一个马尔科夫链 xff0c 使其平稳分布就是要进行抽样的分布 xff0c
  • 芯片测试术语 ,片内测试(BIST),ATE测试

    芯片测试分为如下几类 xff1a 1 WAT xff1a Wafer AcceptanceTest xff0c wafer level 的管芯或结构测试 xff1b 2 CP xff1a chip probing xff0c wafer l
  • SBUS协议及编解码

    1 简介 SBUS本质是一种串口通信协议 xff0c 采用100K的波特率 xff0c 8位数据位 xff0c 两位停止位 xff0c 偶效验 xff0c 即8E2的串口通信 值得注意的有三点 xff1a 1 SBUS采用负逻辑 xff0c
  • Linux内核跨模块函数调用:EXPORT_SYMBOL()宏定义

    一 查看内核驱动代码你会发现很多的函数带有EXPORT SYMBOL 宏定义 二 那么EXPORT SYMBOL的作用是什么 xff1f EXPORT SYMBOL标签内定义的函数或者符号对全部内核代码公开 xff0c 不用修改内核代码就可
  • linux内核I2C子系统详解

    1 I2C通信协议 参考博客 xff1a I2C通信协议详解和通信流程分析 xff1b https csdnimg cn release blogv2 dist pc themesSkin skin3 template images bg
  • 内核驱动中断申请类型及函数分析

    ret 61 request irq chip gt irq xxx intr handler IRQF TRIGGER FALLING IRQF NO THREAD IRQF NO SUSPEND name chip 上面是中断初始化中调
  • I2C设备注册的4种方法

    文章目录 前言一 静态注册二 动态注册三 用户空间注册四 i2c驱动扫描注册 前言 I2C设备的4种添加方法 xff1a 1 xff09 静态注册 2 xff09 动态注册 3 xff09 用户空间注册 4 xff09 i2c驱动扫描注册
  • pm_wakeup.h

    pm wakeup h Power management wakeup interface Copyright C 2008 Alan Stern Copyright C 2010 Rafael J Wysocki Novell Inc T
  • GTK+ Reference Manual

    GTK 43 Reference Manual for GTK 43 2 6 2 Table of Contents I GTK 43 Overview Compiling the GTK 43 libraries How to compi