/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * * * This file is part of HDF5. The full HDF5 copyright notice, including * * terms governing use, modification, and redistribution, is contained in * * the files COPYING and Copyright.html. COPYING can be found at the root * * of the source code distribution tree; Copyright.html can be found at the * * root level of an installed copy of the electronic HDF5 document set and * * is linked from the top-level documents page. It can also be found at * * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * * access to either file, you may request a copy from help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * This example illustrates how to create and close a group. * It is used in the HDF5 Tutorial. */ #include "hdf5.h" #define FILE "group.h5" int main() { hid_t file_id, group_id; /* identifiers */ herr_t status; /* Create a new file using default properties. */ file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); /* Create a group named "/MyGroup" in the file. */ group_id = H5Gcreate2(file_id, "/MyGroup", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); /* Close the group. */ status = H5Gclose(group_id); /* Terminate access to the file. */ status = H5Fclose(file_id); } 865fa01 Tk is a free and open-source, cross-platform widget toolkit that provides a library of basic elements of GUI widgets for building a graphical user interface (GUI) in many programming languages.
summaryrefslogtreecommitdiffstats
path: root/mac/tkMacMenu.r
blob: b2fb8157e060b2bb0b7d5948536a6885d7445397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * tkMacMenu.r --
 *
 *	Resources needed by menus.
 *
 *	This file also contains the icons 'SICN' used by the menu code
 *	in menu items.  
 *
 * Copyright (c) 1997 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: tkMacMenu.r,v 1.3 1998/09/14 18:23:38 stanton Exp $
 */

#include <Types.r>

/*
 * Icons used in menu items.
 */

resource 'SICN' (128, preload, locked) {
	{	/* array: 7 elements */
		/* [1] */
		$"0000 0000 8000 C000 E000 F000 F800 FC00"
		$"F800 F000 E000 C000 80",
		/* [2] */
		$"0000 0000 0000 0800 1400 2200 4100 8080"
		$"E380 2200 2200 2200 3E",
		/* [3] */
		$"0000 0000 0000 0000 0000 F8F0 C4F0 F270"
		$"0900 0480 0270 0130 00F0",
		/* [4] */
		$"0000 0000 0000 0000 0000 0000 0000 0000"
		$"0000 E4E0 CE60 1B00 3180",
		/* [5] */
		$"0000 0000 0000 0000 6300 9480 9480 7F00"
		$"1400 7F00 9480 9480 63",
		/* [6] */
		$"0000 0000 0000 0000 0000 3FF8 1FF0 0FE0"
		$"07C0 0380 01",
		/* [7] */
		$"0000 0000 0000 0000 0000 0100 0380 07C0"
		$"0FE0 1FF0 3FF8"
	}
};