Tabnine Logo
Composite.forceResize
Code IndexAdd Tabnine to your IDE (free)

How to use
forceResize
method
in
org.eclipse.swt.widgets.Composite

Best Java code snippets using org.eclipse.swt.widgets.Composite.forceResize (Showing top 5 results out of 315)

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
Rectangle getClientAreaInPixels () {
  checkWidget();
  if ((state & CANVAS) != 0) {
    if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
      return new Rectangle (0, 0, 0, 0);
    }
    forceResize ();
    int /*long*/ clientHandle = clientHandle ();
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (clientHandle, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    return new Rectangle (0, 0, width, height);
  }
  return super.getClientAreaInPixels();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
Rectangle getClientAreaInPixels () {
  checkWidget();
  if ((state & CANVAS) != 0) {
    if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
      return new Rectangle (0, 0, 0, 0);
    }
    forceResize ();
    long /*int*/ clientHandle = clientHandle ();
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (clientHandle, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    return new Rectangle (0, 0, width, height);
  }
  return super.getClientAreaInPixels();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
Rectangle getClientAreaInPixels () {
  checkWidget();
  if ((state & CANVAS) != 0) {
    if ((state & ZERO_WIDTH) != 0 && (state & ZERO_HEIGHT) != 0) {
      return new Rectangle (0, 0, 0, 0);
    }
    forceResize ();
    int /*long*/ clientHandle = clientHandle ();
    GtkAllocation allocation = new GtkAllocation();
    OS.gtk_widget_get_allocation (clientHandle, allocation);
    int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
    int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
    return new Rectangle (0, 0, width, height);
  }
  return super.getClientAreaInPixels();
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

if (result != null) return result;
if ((state & CANVAS) != 0) {
  forceResize ();
  int nSavedDC = OS.SaveDC (wParam);
  RECT rect = new RECT ();
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int index = indexOf (sortColumn);
if (index != -1) {
  parent.forceResize ();
  int clrSortBk = getSortColumnPixel ();
  RECT columnRect = new RECT (), headerRect = new RECT ();
org.eclipse.swt.widgetsCompositeforceResize

Popular methods of Composite

  • setLayout
    Sets the layout which is associated with the receiver to be the argument which may be null.
  • <init>
    Constructs a new instance of this class given its parent and a style value describing its behavior a
  • setLayoutData
  • layout
    Forces a lay out (that is, sets the size and location) of all widgets that are in the parent hierarc
  • getDisplay
  • getChildren
    Returns a (possibly empty) array containing the receiver's children. Children are returned in the or
  • getShell
  • getFont
  • getLayout
    Returns layout which is associated with the receiver, or null if one has not been set.
  • setFont
  • getParent
  • computeSize
  • getParent,
  • computeSize,
  • dispose,
  • setBackground,
  • getClientArea,
  • isDisposed,
  • getBackground,
  • setVisible,
  • setSize,
  • setData

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now