public class Stock
extends Object
GTK comes with a fairly large pre-built set of stock items. You should use them in your programs whenever possible thus ensuring your application will have a look and feel consistent with other GNOME applications. This also aids in discoverability by helping the user identify what a Button does or how to execute a common operation in your application.
Each stock item is identified by a Stock constant that you can pass to constructors of different widgets, such as Buttons. When your application does a common task represented by one of the constants in this class, you should use it to identify that task in your Menus and Buttons.
Please note that this is not a place to get creative. Well known stock icons have a defined behaviour which users can rightfully expect to be consistent. Using these images in non-standard ways will result in a severe usability impact and will cause people to ridicule your program.
In GTK, stock-ids are just plain gchar*
strings. We
implement these constants here for commodity and type-safety.
public static final Stock ABOUT
public static final Stock ADD
public static final Stock APPLY
public static final Stock BOLD
public static final Stock CANCEL
public static final Stock CDROM
public static final Stock CLEAR
public static final Stock CLOSE
QUIT
.
public static final Stock COLOR_PICKER
public static final Stock CONNECT
public static final Stock CONVERT
public static final Stock COPY
public static final Stock CUT
public static final Stock DELETE
public static final Stock DIALOG_AUTHENTICATION
public static final Stock DIALOG_ERROR
public static final Stock DIALOG_INFO
public static final Stock DIALOG_QUESTION
public static final Stock DIALOG_WARNING
public static final Stock DIRECTORY
public static final Stock DISCONNECT
public static final Stock DND
public static final Stock DND_MULTIPLE
public static final Stock EDIT
public static final Stock EXECUTE
public static final Stock FILE
public static final Stock FIND
public static final Stock FIND_AND_REPLACE
public static final Stock FLOPPY
public static final Stock FULLSCREEN
public static final Stock GO_BACK
public static final Stock GO_DOWN
public static final Stock GO_FORWARD
public static final Stock GO_UP
public static final Stock GOTO_BOTTOM
public static final Stock GOTO_FIRST
public static final Stock GOTO_LAST
public static final Stock GOTO_TOP
public static final Stock HARDDISK
public static final Stock HELP
public static final Stock HOME
public static final Stock INDENT
public static final Stock INDEX
public static final Stock INFO
public static final Stock ITALIC
public static final Stock JUMP_TO
public static final Stock JUSTIFY_CENTER
public static final Stock JUSTIFY_FILL
public static final Stock JUSTIFY_LEFT
public static final Stock JUSTIFY_RIGHT
public static final Stock LEAVE_FULLSCREEN
public static final Stock MEDIA_FORWARD
public static final Stock MEDIA_NEXT
public static final Stock MEDIA_PAUSE
public static final Stock MEDIA_PLAY
public static final Stock MEDIA_PREVIOUS
public static final Stock MEDIA_RECORD
public static final Stock MEDIA_REWIND
public static final Stock MEDIA_STOP
public static final Stock MISSING_IMAGE
public static final Stock NETWORK
public static final Stock NEW
public static final Stock NO
public static final Stock OK
public static final Stock OPEN
public static final Stock ORIENTATION_LANDSCAPE
public static final Stock ORIENTATION_PORTRAIT
public static final Stock ORIENTATION_REVERSE_LANDSCAPE
public static final Stock ORIENTATION_REVERSE_PORTRAIT
public static final Stock PASTE
public static final Stock PREFERENCES
public static final Stock PRINT
public static final Stock PRINT_PREVIEW
public static final Stock PROPERTIES
public static final Stock QUIT
CLOSE
.
There's no EXIT
, in case you were wondering.
public static final Stock REDO
public static final Stock REFRESH
public static final Stock REMOVE
public static final Stock REVERT_TO_SAVED
public static final Stock SAVE
public static final Stock SAVE_AS
public static final Stock SELECT_ALL
public static final Stock SELECT_COLOR
public static final Stock SELECT_FONT
public static final Stock SORT_ASCENDING
public static final Stock SORT_DESCENDING
public static final Stock SPELL_CHECK
public static final Stock STOP
public static final Stock STRIKETHROUGH
public static final Stock UNDELETE
public static final Stock UNDERLINE
public static final Stock UNDO
public static final Stock UNINDENT
public static final Stock YES
public static final Stock ZOOM_100
public static final Stock ZOOM_FIT
public static final Stock ZOOM_IN
public static final Stock ZOOM_OUT