1 /* 2 * Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 package com.sun.java.swing.plaf.gtk; 26 27 /** 28 * @author Scott Violet 29 */ 30 public interface GTKConstants { 31 32 /** 33 * Used to indicate a constant is not defined. 34 */ 35 public static final int UNDEFINED = -100; 36 37 /** 38 * Java representation of native GtkIconSize enum 39 */ 40 public enum IconSize { 41 INVALID, 42 MENU, 43 SMALL_TOOLBAR, 44 LARGE_TOOLBAR, 45 BUTTON, 46 DND, 47 DIALOG 48 } 49 50 /** 51 * Java representation of native GtkTextDirection enum 52 */ 53 public enum TextDirection { 54 NONE, 55 LTR, 56 RTL 57 } 58 59 /** 60 * Java representation of native GtkShadowType enum 61 */ 62 public enum ShadowType { 63 NONE, 64 IN, 65 OUT, 66 ETCHED_IN, 67 ETCHED_OUT 68 } 69 70 /** 71 * Java representation of native GtkStateType enum 72 */ 73 public enum StateType { 74 NORMAL, 75 ACTIVE, 76 PRELIGHT, 77 SELECTED, 78 INSENSITIVE 79 } 80 81 /** 82 * Java representation of native GtkExpanderStyle enum 83 */ 84 public enum ExpanderStyle { 85 COLLAPSED, 86 SEMI_COLLAPSED, 87 SEMI_EXPANDED, 88 EXPANDED, 89 } 90 91 /** 92 * Java representation of native GtkPositionType enum 93 */ 94 public enum PositionType { 95 LEFT, 96 RIGHT, 97 TOP, 98 BOTTOM 99 } 100 101 /** 102 * Java representation of native GtkArrowType enum 103 */ 104 public enum ArrowType { 105 UP, 106 DOWN, 107 LEFT, 108 RIGHT 109 } 110 111 /** 112 * Java representation of native GtkOrientation enum 113 */ 114 public enum Orientation { 115 HORIZONTAL, 116 VERTICAL 117 } 118 } 119