Only one of LEFT_TO_RIGHT or RIGHT_TO_LEFT may be specified.
Important Note
This class is intended to be subclassed only within the SWT implementation.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Accessible | |
| pack-priv boolean | autoScale
True if GTK has autoscaled this Control, meaning SWT does not need to do any manual scaling. |
| pack-priv int | |
| pack-priv Image | |
| pack-priv boolean | cachedNoBackground
Cache the NO_BACKGROUND flag as it gets removed automatically in Composite. |
| pack-priv boolean | checkScaleFactor
Flag to check the scale factor upon the first drawing of this Control. |
| pack-priv String | |
| pack-priv String | |
| pack-priv Cursor | |
| pack-priv static final boolean | |
| pack-priv LinkedList | |
| pack-priv long | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv Font | |
| pack-priv static Callback | |
| pack-priv static Callback | |
| pack-priv static Callback | |
| pack-priv static Callback | |
| pack-priv static Callback | |
| pack-priv long | |
| pack-priv Control | |
| pack-priv Point | lastInput
Point for storing the (x, y) coordinate of the last input (click/scroll/etc.). |
| pack-priv Object | |
| pack-priv Menu | |
| pack-priv static boolean | mouseDown
Bug 541635, 515396: GTK Wayland only flag to keep track whether mouse is currently pressed or released for DND. |
| pack-priv long | |
| pack-priv Composite | |
| pack-priv long | |
| pack-priv long | |
| pack-priv Region | |
| pack-priv long | regionHandle
The handle to the Region, which is neccessary in the case
that |
| pack-priv long | |
| pack-priv String | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Accessible | |
| pack-priv Shell | |
| private void | |
| public void | addControlListener(ControlListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the control is moved or resized, by sending
it one of the messages defined in the |
| public void | addDragDetectListener(DragDetectListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when a drag gesture occurs, by sending it
one of the messages defined in the |
| public void | addFocusListener(FocusListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the control gains or loses focus, by sending
it one of the messages defined in the |
| public void | addGestureListener(GestureListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when gesture events are generated for the control,
by sending it one of the messages defined in the
|
| public void | addHelpListener(HelpListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when help events are generated for the control,
by sending it one of the messages defined in the
|
| public void | addKeyListener(KeyListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when keys are pressed and released on the system keyboard, by sending
it one of the messages defined in the |
| public void | addMenuDetectListener(MenuDetectListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the platform-specific context menu trigger
has occurred, by sending it one of the messages defined in
the |
| public void | addMouseListener(MouseListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when mouse buttons are pressed and released, by sending
it one of the messages defined in the |
| public void | addMouseMoveListener(MouseMoveListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the mouse moves, by sending it one of the
messages defined in the |
| public void | addMouseTrackListener(MouseTrackListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the mouse passes or hovers over controls, by sending
it one of the messages defined in the |
| public void | addMouseWheelListener(MouseWheelListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the mouse wheel is scrolled, by sending
it one of the messages defined in the
|
| public void | addPaintListener(PaintListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when the receiver needs to be painted, by sending it
one of the messages defined in the |
| pack-priv void | |
| public void | addTouchListener(TouchListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when touch events occur, by sending it
one of the messages defined in the |
| public void | addTraverseListener(TraverseListener
the listener which should be notified listener)Adds the listener to the collection of listeners who will
be notified when traversal events occur, by sending it
one of the messages defined in the |
| pack-priv void | adjustChildClipping(long
the handle to the widget widget)Allows Controls to adjust the clipping of themselves or their children. |
| pack-priv void | cairoClipRegion(long
the cairo context to apply the region to cairo)Convenience method that applies a region to the Control using cairo_clip. |
| pack-priv void | cairoCopyRegion(Region
the Region object to copy to this Control region)Copies the region at the Cairo level, as we need to re-use these resources after the Region object is disposed. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv Point | |
| public Point | Returns: the preferred size of the controlthe width hint (can be wHint, int SWT.DEFAULT)the height hint (can be hHint)SWT.DEFAULT)Returns the preferred size (in points) of the receiver. |
| public Point | Returns: the preferred size of the control.the width hint (can be wHint, int SWT.DEFAULT)the height hint (can be hHint, boolean SWT.DEFAULT)true if the control's contents have changed, and false otherwiseReturns the preferred size (in points) of the receiver. |
| pack-priv Point | |
| pack-priv Point | |
| pack-priv Widget | |
| pack-priv Widget[] | |
| pack-priv Control | |
| private void | |
| pack-priv boolean | Returns: true if the coordinate (x, y) is in the region, false otherwisean x coordinate x, int a y coordinate y)Convenience method for checking whether an (x, y) coordinate is in the set region. |
| pack-priv void | |
| pack-priv GdkRGBA | |
| pack-priv Font | |
| pack-priv void | |
| pack-priv void | |
| public boolean | Returns: true if the gesture occurred, and false otherwise.the mouse down event event)Detects a drag and drop gesture. |
| public boolean | Returns: true if the gesture occurred, and false otherwise.the mouse down event event)Detects a drag and drop gesture. |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv Control | |
| pack-priv Menu[] | |
| pack-priv void | fixChildren(Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu[] menus)
|
| pack-priv void | |
| pack-priv static int | Returns: constant definedGdkEventType constants different on GTK4 and GTK3. |
| pack-priv void | |
| pack-priv void | fixParentGdkResource()
In some situations, a control has a non-standard parent GdkWindow (Note gDk, not gTk). |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| public boolean | Returns: true if the control got focus, and false if it was unable to.Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv long | |
| public Accessible | |
| public Color | |
| pack-priv GdkRGBA | |
| public Image | |
| pack-priv GdkRGBA | |
| pack-priv GdkRGBA | |
| public int | |
| pack-priv int | |
| public Rectangle | Returns: the receiver's bounding rectangleReturns a rectangle describing the receiver's size and location in points relative to its parent (or its display if its parent is null), unless the receiver is a shell. |
| pack-priv Rectangle | |
| pack-priv int | |
| pack-priv GdkRGBA | |
| pack-priv GdkRGBA | |
| pack-priv static Control | |
| pack-priv Point | Returns: the origin of the Control's SWTFixed container relative to the ShellGTK4 only function to replace gdk_surface_get_origin |
| public Cursor | Returns: the receiver's cursor ornullReturns the receiver's cursor, or null if it has not been set. |
| public boolean | Returns: the receiver's drag detect stateReturns |
| public boolean | Returns: the receiver's enabled stateReturns |
| public Font | Returns: the receiver's fontReturns the font that the receiver will use to paint textual information. |
| pack-priv long | Returns: A newly allocatedPangoFontDescription*, caller
must free it with OS#pango_font_description_free.
|
| public Color | Returns: the receiver's foreground colorReturns the foreground color that the receiver will use to draw. |
| pack-priv GdkRGBA | |
| pack-priv Point | |
| public Object | Returns: the receiver's layout dataReturns layout data which is associated with the receiver. |
| public Point | Returns: the receiver's locationReturns a point describing the receiver's location relative to its parent in points (or its display if its parent is null), unless the receiver is a shell. |
| pack-priv Point | |
| public Menu | Returns: the receiver's menuReturns the receiver's pop up menu if it has one, or null if it does not. |
| public Monitor | |
| public int | Returns: the orientation styleReturns the orientation of the receiver, which will be one of the
constants |
| public Composite | Returns: the receiver's parentReturns the receiver's parent, which must be a |
| pack-priv Control[] | |
| public Region | Returns: the region that defines the shape of the shell (or null)Returns the region that defines the shape of the control, or null if the control has the default shape. |
| public Shell | |
| public Point | |
| pack-priv Point | |
| pack-priv Point | Returns: the originGets the position of the top left corner of the control in root window (display) coordinates. |
| public int | Returns: the text direction styleReturns the text direction of the receiver, which will be one of the
constants |
| pack-priv Point | |
| public String | Returns: the receiver's tool tip textReturns the receiver's tool tip text, or null if it has not been set. |
| public boolean | Returns: true if the control is set to send touch events, or false otherwiseReturns |
| public boolean | Returns: the receiver's visibility stateReturns |
| pack-priv Point | Returns: the originGets the position of the top left corner of the control in root window (display) coordinates. |
| pack-priv long | |
| pack-priv void | gtk4_draw(long widget, long cairo, Rectangle bounds)
Overrides org. |
| pack-priv void | gtk4_enter_event(long
the corresponding controller responsible for capturing the event controller, double x coordinate of pointer location x, double y coordinate of pointer location y, long the GdkEvent captured event)
|
| pack-priv void | gtk4_focus_enter_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)Overrides org. |
| pack-priv void | gtk4_focus_leave_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)Overrides org. |
| pack-priv void | gtk4_focus_window_event(long
the handle of the window that caused the event handle, long the type of event, should be FocusIn or FocusOut event)Overrides org. |
| pack-priv boolean | gtk4_key_press_event(long
the corresponding controller responsible for capturing the event controller, int the pressed key keyval, int raw code of the pressed key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)Overrides org. |
| pack-priv void | gtk4_key_release_event(long
the corresponding controller responsible for capturing the event controller, int the released key keyval, int raw code of the released key keycode, int the bitmask, representing the state of the modifier keys and pointer buttons state, long the GdkEvent captured event)Overrides org. |
| pack-priv void | gtk4_leave_event(long
the corresponding controller responsible for capturing the event controller, long the GdkEvent captured event)
|
| pack-priv void | gtk4_motion_event(long
the corresponding controller responsible for capturing the event controller, double the x coordinate x, double the y coordinate y, long the GdkEvent captured event)
|
| pack-priv boolean | gtk4_scroll_event(long
the corresponding controller responsible for capturing the event controller, double x delta dx, double y delta dy, long the GdkEvent captured event)
|
| pack-priv long | gtk_button_press_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | gtk_button_release_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | gtk_enter_notify_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_event_after(long widget, long gdkEvent)
|
| pack-priv long | |
| pack-priv long | gtk_focus_in_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_focus_out_event(long widget, long event)
Overrides org. |
| pack-priv void | gtk_gesture_press_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)Overrides org. |
| pack-priv void | gtk_gesture_release_event(long
the corresponding controller responsible for capturing the event gesture, int how many touch/button presses happened with this one n_press, double the x coordinate, in widget allocation coordinates x, double the y coordinate, in widget allocation coordinates y, long the GdkEvent captured event)Overrides org. |
| pack-priv long | gtk_key_press_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_key_release_event(long widget, long event)
Overrides org. |
| pack-priv void | |
| pack-priv long | gtk_leave_notify_event(long widget, long event)
Overrides org. |
| pack-priv long | gtk_mnemonic_activate(long widget, long arg1)
Overrides org. |
| pack-priv long | gtk_motion_notify_event(long widget, long event)
Overrides org. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | gtk_scroll_event(long widget, long eventPtr)
|
| pack-priv void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv long | |
| pack-priv static void | gtk_widget_reparent(Control
that should be reparented. control, long pointer/handle to the new GtkWidget parent. newParentHandle)Native gtkwidget re-parenting in SWT on Gtk3 needs to be handled in a special way because some controls have non-standard GdkWindow as parents. |
| pack-priv void | gtk_widget_set_align(long
the GTK reference. widget, int is of type GTKAlign enum. See OS.java hAlign, int is of type GTKAlign enum. See OS.java vAlign)Not direct gtk api, but useful to have them combined as they are usually called together. |
| pack-priv boolean | |
| pack-priv void | |
| private void | |
| private void | |
| private void | |
| pack-priv boolean | |
| private void | |
| pack-priv long | |
| pack-priv long | |
| public void | internal_dispose_GC(long
the platform specific GC handle hDC, GCData the platform specific GC data data)Implements org. |
| public long | Returns: the platform specific GC handlethe platform specific GC data data)Implements org. |
| pack-priv boolean | |
| public boolean | isAutoScalable()
Overrides default org. true iff coordinates can be auto-scaled on this
drawable and false if not.
|
| pack-priv boolean | |
| public boolean | Returns: the receiver's enabled stateReturns |
| pack-priv boolean | |
| public boolean | Returns: the receiver's focus stateReturns |
| pack-priv boolean | |
| public boolean | Returns: true if the widget can be reparented, otherwise falseReturns |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | Returns: the receiver's visibility stateReturns |
| pack-priv static void | |
| pack-priv void | |
| pack-priv Decorations | |
| pack-priv boolean | |
| pack-priv boolean | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | Returns: false by default on modern GTK 3 versions (3.20+).Widgets with unusual bounds calculation behavior can override this method
to return |
| public void | |
| public void | pack(boolean
whether or not the receiver's contents have changed changed)Causes the receiver to be resized to its preferred size. |
| pack-priv long | |
| pack-priv long | |
| pack-priv long | |
| public boolean | |
| pack-priv void | |
| pack-priv void | printWindow(boolean first, Control control, GC gc, long drawable, int depth, long window, int x, int y)
|
| public void | |
| pack-priv void | |
| public void | redraw(int
the x coordinate of the area to draw x, int the y coordinate of the area to draw y, int the width of the area to draw width, int the height of the area to draw height, boolean true if children should redraw, and false otherwiseCauses the rectangular area of the receiver specified by the arguments to be marked as needing to be redrawn. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | removeControlListener(ControlListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the control is moved or resized. |
| public void | removeDragDetectListener(DragDetectListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when a drag gesture occurs. |
| public void | removeFocusListener(FocusListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the control gains or loses focus. |
| public void | removeGestureListener(GestureListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when gesture events are generated for the control. |
| public void | removeHelpListener(HelpListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the help events are generated for the control. |
| public void | removeKeyListener(KeyListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard. |
| public void | removeMenuDetectListener(MenuDetectListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the platform-specific context menu trigger has occurred. |
| public void | removeMouseListener(MouseListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when mouse buttons are pressed and released. |
| public void | removeMouseMoveListener(MouseMoveListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the mouse moves. |
| public void | removeMouseTrackListener(MouseTrackListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the mouse passes or hovers over controls. |
| public void | removeMouseWheelListener(MouseWheelListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the mouse wheel is scrolled. |
| public void | removePaintListener(PaintListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when the receiver needs to be painted. |
| pack-priv void | |
| public void | removeTouchListener(TouchListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when touch events occur. |
| public void | removeTraverseListener(TraverseListener
the listener which should no longer be notified listener)Removes the listener from the collection of listeners who will be notified when traversal events occur. |
| public void | requestLayout()
Requests that this control and all of its ancestors be repositioned by their layouts at the earliest opportunity. |
| pack-priv Point | |
| pack-priv void | |
| pack-priv void | restackWindow(long
a GdkWindow window, long the sibling thereof, or 0 sibling, boolean a boolean setting for whether the window
should be raised or lowered above)GTK3 only, do not call on GTK4. |
| pack-priv static void | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | sendGestureEvent(int stateMask, int detail, int x, int y, double rotation, int xDirection, int yDirection, double magnification)
|
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | sendMouseEvent(int type, int button, int count, int detail, boolean send, int time, double x, double y, boolean is_hint, int state)
|
| private boolean | |
| pack-priv void | |
| public void | setBackground(Color
the new color (or null) color)Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setBackgroundImage(Image
the new image (or null) image)Sets the receiver's background image to the image specified by the argument, or to the default system color for the control if the argument is null. |
| pack-priv void | |
| public void | |
| public void | setBounds(int
the new x coordinate for the receiver x, int the new y coordinate for the receiver y, int the new width for the receiver width, int the new height for the receiver height)Sets the receiver's size and location in points to the rectangular area specified by the arguments. |
| pack-priv int | |
| pack-priv void | |
| pack-priv void | |
| public void | setCapture(boolean
true to capture the mouse, and false to release itIf the argument is |
| public void | |
| pack-priv void | |
| public void | |
| private void | |
| public void | setEnabled(boolean
the new enabled state enabled)Enables the receiver if the argument is |
| public boolean | Returns: true if the control got focus, and false if it was unable to.Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it. |
| public void | |
| pack-priv void | |
| public void | setForeground(Color
the new color (or null) color)Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public void | setLayoutData(Object
the new layout data for the receiver. layoutData)Sets the layout data associated with the receiver to the argument. |
| public void | setLocation(Point
the new location for the receiver location)Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell. |
| public void | setLocation(int
the new x coordinate for the receiver x, int the new y coordinate for the receiver y)Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell. |
| pack-priv void | |
| pack-priv void | |
| public void | |
| pack-priv void | |
| public void | setOrientation(int
new orientation style orientation)Sets the orientation of the receiver, which must be one
of the constants |
| public boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| public void | setRedraw(boolean
the new redraw state redraw)If the argument is |
| public void | |
| pack-priv void | |
| private void | |
| public void | |
| public void | setSize(int
the new width in points for the receiver width, int the new height in points for the receiver height)Sets the receiver's size to the point specified by the arguments. |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| public void | setTextDirection(int
the base text direction style textDirection)Sets the base text direction (a.k.a. "paragraph direction") of the receiver,
which must be one of the constants |
| public void | setToolTipText(String
the new tool tip text (or null) string)Sets the receiver's tool tip text to the argument, which may be null indicating that the default tool tip for the control will be shown. |
| pack-priv void | |
| public void | setTouchEnabled(boolean
the new touch-enabled state enabled)Sets whether this control should send touch events (by default controls do not). |
| public void | setVisible(boolean
the new visibility state visible)Marks the receiver as visible if the argument is |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static void | |
| public Point | Returns: the translated coordinatesthe x coordinate in points to be translated x, int the y coordinate in points to be translated y)Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver. |
| public Point | |
| public Point | Returns: the translated coordinatesthe x coordinate to be translated x, int the y coordinate to be translated y)Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates. |
| public Point | |
| pack-priv Point | |
| pack-priv Point | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| public boolean | Returns: true if the traversal succeededthe type of traversal traversal)Based on the argument, perform one of the expected platform traversal action. |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public void | update()
Forces all outstanding paint requests for the widget to be processed before this method returns. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv long | windowProc(long handle, long arg0, long user_data)
Overrides org. |