javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/qt/org/eclipse/swt/internal/qt/WidgetState.java
changeset 21 2a9601315dfc
child 23 98ccebc37403
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*******************************************************************************
       
     2  * Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved. This program and the accompanying materials
       
     4  * are made available under the terms of the Eclipse Public License v1.0
       
     5  * which accompanies this distribution, and is available at
       
     6  * http://www.eclipse.org/legal/epl-v10.html
       
     7  *
       
     8  * Contributors:
       
     9  *     Nokia Corporation - initial implementation
       
    10  *******************************************************************************/
       
    11 package org.eclipse.swt.internal.qt;
       
    12 
       
    13 public final class WidgetState {
       
    14 /* Global state flags */
       
    15 public static final int DISPOSED = 1<<0;
       
    16 public static final int CANVAS = 1<<1;
       
    17 public static final int KEYED_DATA = 1<<2;
       
    18 public static final int HANDLE = 1<<3;
       
    19 public static final int DISABLED = 1<<4;
       
    20 public static final int MENU = 1<<5;
       
    21 public static final int OBSCURED = 1<<6;
       
    22 public static final int MOVED = 1<<7;
       
    23 public static final int RESIZED = 1<<8;
       
    24 public static final int ZERO_WIDTH = 1<<9;
       
    25 public static final int ZERO_HEIGHT = 1<<10;
       
    26 public static final int HIDDEN = 1<<11;
       
    27 public static final int FOREGROUND = 1<<12;
       
    28 public static final int BACKGROUND = 1<<13;
       
    29 public static final int FONT = 1<<14;
       
    30 public static final int PARENT_BACKGROUND = 1<<15;
       
    31 public static final int THEME_BACKGROUND = 1<<16;
       
    32 
       
    33 /* A layout was requested on this widget */
       
    34 public static final int LAYOUT_NEEDED  = 1<<17;
       
    35 
       
    36 /* The preferred size of a child has changed */
       
    37 public static final int LAYOUT_CHANGED = 1<<18;
       
    38 
       
    39 /* A layout was requested in this widget hierarchy */
       
    40 public static final int LAYOUT_CHILD = 1<<19;
       
    41 
       
    42 /* More global state flags */
       
    43 public static final int RELEASED = 1<<20;
       
    44 public static final int DISPOSE_SENT = 1<<21;
       
    45 public static final int FOREIGN_HANDLE = 1<<22;
       
    46 public static final int DRAG_DETECT = 1<<23;
       
    47 public static final int NO_TRAVERSE = 1<<24;
       
    48 public static final int NO_KEY_PROPAGATE = 1<<25;
       
    49 public static final int NO_MOUSE_PROPAGATE = 1<<26;
       
    50 public static final int EMBEDDED_SCROLLBARS = 1<<27;
       
    51 
       
    52 // A flag telling if the widget is following the system bidi orientation. 
       
    53 // If not set then the widget's orientation won't be changed when system 
       
    54 // orientation changes. 
       
    55 public static final int FOLLOWS_SYSLANG_DIRECTION = 1<<28;
       
    56 
       
    57 // If extension functionality is enabled
       
    58 public static final int IS_EXTENDED = 1<<29;
       
    59 }