Codota Logo
Composite.computeTrimInPixels
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Composite
private void myMethod () {
Composite c =
  • Codota IconControl control;control.getParent()
  • Codota IconStatusDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Codota IconTitleAreaDialog zuper;(Composite) zuper.createDialogArea(parent)
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) {
  Rectangle trim = super.computeTrimInPixels (x, y, width, height);
  int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
  if ((bits & OS.CCS_NODIVIDER) == 0) trim.height += 2;
  return trim;
}

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

@Override
Rectangle computeTrimInPixels (int x, int y, int width, int height) {
  if (isCalendar ()) {
    return super.computeTrimInPixels (x, y, width, height);
  Rectangle trim = super.computeTrimInPixels (x, y, width, height);
  int xborder = 0, yborder = 0;
    if (OS.GTK3) {
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
Rectangle computeTrimInPixels (int x, int y, int width, int height) {
  if (isCalendar ()) {
    return super.computeTrimInPixels (x, y, width, height);
  Rectangle trim = super.computeTrimInPixels (x, y, width, height);
  int xborder = 0, yborder = 0;
    if (OS.GTK3) {
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
Rectangle computeTrimInPixels (int x, int y, int width, int height) {
  if (isCalendar ()) {
    return super.computeTrimInPixels (x, y, width, height);
  Rectangle trim = super.computeTrimInPixels (x, y, width, height);
  int xborder = 0, yborder = 0;
    if (OS.GTK3) {
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override Rectangle computeTrimInPixels (int x, int y, int width, int height) {
  checkWidget ();
  Rectangle trim = super.computeTrimInPixels (x, y, width, height);
  int /*long*/ newFont, oldFont = 0;
  int /*long*/ hDC = OS.GetDC (handle);
  newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
  if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);
  TEXTMETRIC tm = OS.IsUnicode ? (TEXTMETRIC) new TEXTMETRICW () : new TEXTMETRICA ();
  OS.GetTextMetrics (hDC, tm);
  if (newFont != 0) OS.SelectObject (hDC, oldFont);
  OS.ReleaseDC (handle, hDC);
  int offsetY = OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed () ? 0 : 1;
  trim.x -= CLIENT_INSET;
  trim.y -= tm.tmHeight + offsetY;
  trim.width += CLIENT_INSET * 2;
  trim.height += tm.tmHeight + CLIENT_INSET + offsetY;
  return trim;
}

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

checkWidget ();
int xborder = 0, yborder = 0;
Rectangle trim = super.computeTrimInPixels (x, y, width, height);
if (OS.GTK3) {
  GtkBorder tmp = new GtkBorder();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

checkWidget ();
int xborder = 0, yborder = 0;
Rectangle trim = super.computeTrimInPixels (x, y, width, height);
if (OS.GTK3) {
  GtkBorder tmp = new GtkBorder();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

checkWidget ();
int xborder = 0, yborder = 0;
Rectangle trim = super.computeTrimInPixels (x, y, width, height);
if (OS.GTK3) {
  GtkBorder tmp = new GtkBorder();
org.eclipse.swt.widgetsCompositecomputeTrimInPixels

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

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now