forked from AuroraMiddleware/gtk
gtk-demo: Add keywords to demos
Add the names of the main widgets as keywords to our demos, but also things like "game". This helps finding relevant demos in our growing list. You can now for example type "label", and find the "error states" and "links" demos showing GtkLabel features.
This commit is contained in:
parent
691261c71a
commit
d732c869c2
@ -1,8 +1,8 @@
|
||||
/* Assistant
|
||||
*
|
||||
* Demonstrates a sample multi-step assistant. Assistants are used to divide
|
||||
* an operation into several simpler sequential steps, and to guide the user
|
||||
* through these steps.
|
||||
* Demonstrates a sample multi-step assistant with GtkAssistant. Assistants
|
||||
* are used to divide an operation into several simpler sequential steps,
|
||||
* and to guide the user through these steps.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Combo Boxes
|
||||
* #Keywords: GtkCellRenderer
|
||||
*
|
||||
* The GtkComboBox widget allows to select one option out of a list.
|
||||
* The GtkComboBoxEntry additionally allows the user to enter a value
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Constraints/Simple
|
||||
* #Keywords: GtkLayoutManager
|
||||
*
|
||||
* GtkConstraintLayout provides a layout manager that uses relations
|
||||
* between widgets (also known as "constraints") to compute the position
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Constraints/Interactive
|
||||
* #Keywords: GtkConstraintLayout
|
||||
*
|
||||
* Demonstrate how constraints can be updates during user interaction.
|
||||
* The vertical edge between the buttons can be dragged with the mouse.
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* Theming/CSS Accordion
|
||||
*
|
||||
* A simple accordion demo written using CSS transitions and multiple backgrounds
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,8 +1,7 @@
|
||||
/* Theming/CSS Basics
|
||||
*
|
||||
* Gtk themes are written using CSS. Every widget is build of multiple items
|
||||
* GTK themes are written using CSS. Every widget is build of multiple items
|
||||
* that you can style very similarly to a regular website.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,8 +1,7 @@
|
||||
/* Theming/Multiple Backgrounds
|
||||
*
|
||||
* Gtk themes are written using CSS. Every widget is build of multiple items
|
||||
* GTK themes are written using CSS. Every widget is build of multiple items
|
||||
* that you can style very similarly to a regular website.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Dialogs
|
||||
* #Keywords: GtkMessageDialog
|
||||
*
|
||||
* Dialogs are used to pop up transient windows for information
|
||||
* and user feedback.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Drawing Area
|
||||
* #Keywords: GtkDrawingArea
|
||||
*
|
||||
* GtkDrawingArea is a blank area where you can draw custom displays
|
||||
* of various kinds.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Tree View/Filter Model
|
||||
* #Keywords: GtkTreeView
|
||||
*
|
||||
* This example demonstrates how GtkTreeModelFilter can be used not
|
||||
* just to show a subset of the rows, but also to compute columns
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Fixed Layout
|
||||
* #Keywords: GtkLayoutManager
|
||||
*
|
||||
* GtkFixed is a container that allows placing and transforming
|
||||
* widgets manually.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Gestures
|
||||
* #Keywords: GtkGesture
|
||||
*
|
||||
* Perform gestures on touchscreens and other input devices. This
|
||||
* demo reacts to long presses and swipes from all devices, plus
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Header Bar
|
||||
* #Keywords: GtkWindowHandle, GtkWindowControls
|
||||
*
|
||||
* GtkHeaderBar is a container that is suitable for implementing
|
||||
* window titlebars. One of its features is that it can position
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Text View/Hypertext
|
||||
* #Keywords: GtkTextView, GtkTextBuffer
|
||||
*
|
||||
* Usually, tags modify the appearance of text in the view, e.g. making it
|
||||
* bold or colored or underlined. But tags are not restricted to appearance.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Benchmark/Scrolling
|
||||
* #Keywords: GtkScrolledWindow
|
||||
*
|
||||
* This demo scrolls a view with various content.
|
||||
*/
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Images
|
||||
* #Keywords: GdkPaintable, GtkWidgetPaintable
|
||||
*
|
||||
* GtkImage and GtkPicture are used to display an image; the image can be
|
||||
* in a number of formats.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Info Bars
|
||||
* #Keywords: GtkInfoBar
|
||||
*
|
||||
* Info bar widgets are used to report important messages to the user.
|
||||
*/
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Layout Manager/Transition
|
||||
* #Keywords: GtkLayoutManager
|
||||
*
|
||||
* This demo shows a simple example of a custom layout manager
|
||||
* and a widget using it. The layout manager places the children
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Layout Manager/Transformation
|
||||
* #Keywords: GtkLayoutManager, GskTransform
|
||||
*
|
||||
* This demo shows how to use transforms in a nontrivial
|
||||
* way with a custom layout manager. The layout manager places
|
||||
|
@ -3,7 +3,6 @@
|
||||
* The GtkListStore is used to store data in list form, to be used
|
||||
* later on by a GtkTreeView to display it. This demo builds a
|
||||
* simple GtkListStore and displays it.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -2,7 +2,6 @@
|
||||
*
|
||||
* GtkListBox allows lists with complicated layouts, using
|
||||
* regular widgets supporting sorting and filtering.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Lists/Application launcher
|
||||
* #Keywords: GtkListItemFactory, GListModel
|
||||
*
|
||||
* This demo uses the GtkListView widget as a fancy application launcher.
|
||||
*
|
||||
|
@ -1,10 +1,11 @@
|
||||
/* Lists/Clocks
|
||||
* #Keywords: GtkGridView, GtkListItemFactory, GListModel
|
||||
*
|
||||
* This demo displays the time in different timezones.
|
||||
*
|
||||
* The goal is to show how to set up expressions that track changes
|
||||
* in objects and make them update widgets. For that, we create a
|
||||
* GtkClock object that updates its time every second and then use
|
||||
* clock object that updates its time every second and then use
|
||||
* various ways to display that time.
|
||||
*
|
||||
* Typically, this will be done using GtkBuilder .ui files with the
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Lists/Colors
|
||||
* #Keywords: GtkSortListModel, GtkMultiSelection
|
||||
*
|
||||
* This demo displays a grid of colors.
|
||||
*
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Lists/File browser
|
||||
* #Keywords: GListModel
|
||||
*
|
||||
* This demo shows off the different layouts that are quickly achievable
|
||||
* with GtkListview and GtkGridView by implementing a file browser with
|
||||
|
@ -1,7 +1,8 @@
|
||||
/* Lists/Minesweeper
|
||||
* #Keywords: GtkGridView, GListModel, game
|
||||
*
|
||||
* This demo shows how to develop a user interface for small game using a
|
||||
* gridview.
|
||||
* grid view.
|
||||
*
|
||||
* It demonstrates how to use the activate signal and single-press behavior
|
||||
* to implement rather different interaction behavior to a typical list.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Lists/Settings
|
||||
* #Keywords: GtkListItemFactory, GListModel
|
||||
*
|
||||
* This demo shows a settings viewer for GSettings.
|
||||
*
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Lists/Words
|
||||
* #Keywords: GtkListView, GtkFilterListModel
|
||||
*
|
||||
* This demo shows filtering a long list - of words.
|
||||
*
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Text View/Markup
|
||||
* #Keywords: GtkTextView
|
||||
*
|
||||
* GtkTextBuffer lets you define your own tags that can influence
|
||||
* text formatting in a variety of ways. In this example, we show
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Overlay/Interactive Overlay
|
||||
* #Keywords: GtkOverlay
|
||||
*
|
||||
* Shows widgets in static positions over a main widget.
|
||||
*
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Overlay/Decorative Overlay
|
||||
* #Keywords: GtkOverlay
|
||||
*
|
||||
* Another example of an overlay with some decorative
|
||||
* and some interactive controls.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Printing/Page Setup
|
||||
* #Keywords: GtkPageSetup
|
||||
*
|
||||
* GtkPageSetupUnixDialog can be used if page setup is needed
|
||||
* independent of a full printing dialog.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Paint
|
||||
* #Keywords: GdkDrawingArea, GtkGesture
|
||||
*
|
||||
* Demonstrates practical handling of drawing tablets in a real world
|
||||
* usecase.
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Peg Solitaire
|
||||
* #Keywords: GtkGridView, game
|
||||
*
|
||||
* This demo demonstrates how to use drag'n'drop to implement peg solitaire.
|
||||
*
|
||||
|
@ -1,4 +1,6 @@
|
||||
/* Pickers
|
||||
* #Keywords: GtkColorChooser, GtkFontChooser, GtkFileChooser,
|
||||
* #Keywords: GtkApplicationChooser
|
||||
*
|
||||
* These widgets are mainly intended for use in preference dialogs.
|
||||
* They allow to select colors, fonts, files, directories and applications.
|
||||
|
@ -2,7 +2,6 @@
|
||||
*
|
||||
* GtkPrintOperation offers a simple API to support printing
|
||||
* in a cross-platform way.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
@ -1,10 +1,10 @@
|
||||
/* Pango/Rotated Text
|
||||
*
|
||||
* This demo shows how to use PangoCairo to draw rotated and transformed
|
||||
* text. The right pane shows a rotated GtkLabel widget.
|
||||
* text. The right pane shows a rotated GtkLabel widget.
|
||||
*
|
||||
* In both cases, a custom PangoCairo shape renderer is installed to draw
|
||||
* a red heard using cairo drawing operations instead of the Unicode heart
|
||||
* a red heart using cairo drawing operations instead of the Unicode heart
|
||||
* character.
|
||||
*/
|
||||
|
||||
|
@ -1,9 +1,13 @@
|
||||
/* Entry/Delayed Search Entry
|
||||
*
|
||||
* GtkSearchEntry sets up GtkEntries ready for search. Search entries
|
||||
* have their "changed" signal delayed and should be used
|
||||
* when the searched operation is slow such as loads of entries
|
||||
* to search, or online searches.
|
||||
* GtkSearchEntry provides an entry that is ready for search.
|
||||
*
|
||||
* Search entries have their "changed" signal delayed and should
|
||||
* be used when the searched operation is slow such as loads of
|
||||
* entries to search, or online searches.
|
||||
*
|
||||
* GtkSearchBar allows have a hidden search entry that 'springs
|
||||
* into action' upon keyboard input.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* OpenGL/Shadertoy
|
||||
* #Keywords: GtkGLArea
|
||||
*
|
||||
* Generate pixels using a custom fragment shader.
|
||||
*
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Shortcuts
|
||||
* #Keywords: GtkShortcutController
|
||||
*
|
||||
* GtkShortcut is the abstraction used by GTK to handle shortcuts from
|
||||
* keyboard or other input devices.
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* Sliding Puzzle
|
||||
* #Keywords: GdkPaintable, GdkGesture, game
|
||||
*
|
||||
* This demo demonstrates how to use gestures and paintables to create a
|
||||
* small sliding puzzle game.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Spin Buttons
|
||||
* #Keywords: GtkEntry
|
||||
*
|
||||
* GtkSpinButton provides convenient ways to input data
|
||||
* that can be seen as a value in a range. The examples
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* Spinner
|
||||
*
|
||||
* GtkSpinner allows to show that background activity is on-going.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Text View/Automatic Scrolling
|
||||
* #Keywords: GtkTextView, GtkScrolledWindow
|
||||
*
|
||||
* This example demonstrates how to use the gravity of
|
||||
* GtkTextMarks to keep a text view scrolled to the bottom
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Overlay/Transparency
|
||||
* #Keywords: GtkOverlay, GtkSnapshot
|
||||
*
|
||||
* Blur the background behind an overlay.
|
||||
*/
|
||||
|
@ -1,4 +1,6 @@
|
||||
/* Video Player
|
||||
* #Keywords: GtkVideo, GtkMediaStream, GtkMediaFile, GdkPaintable
|
||||
* #Keywords: GtkMediaControls
|
||||
*
|
||||
* This is a simple video player using just GTK widgets.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user