Tabnine Logo
Font.win32_new
Code IndexAdd Tabnine to your IDE (free)

How to use
win32_new
method
in
org.eclipse.swt.graphics.Font

Best Java code snippets using org.eclipse.swt.graphics.Font.win32_new (Showing top 12 results out of 315)

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

/**
 * Returns the font that the receiver will use to paint textual information.
 *
 * @return the receiver's font
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public Font getFont () {
  checkWidget();
  if (font == null) {
    int /*long*/ hFont = defaultFont ();
    return Font.win32_new (display, hFont);
  }
  return font;
}

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

@Override
LRESULT WM_SETFONT (int /*long*/ wParam, int /*long*/ lParam) {
  layout.setFont (Font.win32_new (display, wParam));
  if (lParam != 0) OS.InvalidateRect (handle, null, true);
  return super.WM_SETFONT (font = wParam, lParam);
}

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

/**
 * Returns a reasonable font for applications to use.
 * On some platforms, this will match the "default font"
 * or "system font" if such can be found.  This font
 * should not be freed because it was allocated by the
 * system, not the application.
 * <p>
 * Typically, applications which want the default look
 * should simply not set the font on the widgets they
 * create. Widgets are always created with the correct
 * default font for the class of user-interface component
 * they represent.
 * </p>
 *
 * @return a font
 *
 * @exception SWTException <ul>
 *    <li>ERROR_DEVICE_DISPOSED - if the receiver has been disposed</li>
 * </ul>
 */
public Font getSystemFont () {
  checkDevice ();
  int /*long*/ hFont = OS.GetStockObject (OS.SYSTEM_FONT);
  return Font.win32_new (this, hFont);
}

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

/**
 * Returns the font that the receiver will use to paint textual information.
 *
 * @return the receiver's font
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public Font getFont () {
  checkWidget ();
  if (font != null) return font;
  int /*long*/ hFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
  if (hFont == 0) hFont = defaultFont ();
  return Font.win32_new (display, hFont);
}

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

data.font = Font.win32_new(this, OS.GetCurrentObject(handle, OS.OBJ_FONT));
isGCCreated = true;
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

return systemFont = Font.win32_new (this, hFont);
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  data.state &= ~FONT;
} else {
  data.font = Font.win32_new(device, OS.GetCurrentObject(hDC, OS.OBJ_FONT));
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int background = control.getBackgroundPixel ();
if (background != OS.GetBkColor (hDC)) data.background = background;
data.font = font != null ? font : Font.win32_new (display, OS.SendMessage (hwnd, OS.WM_GETFONT, 0, 0));
data.uiState = (int)/*64*/OS.SendMessage (hwnd, OS.WM_QUERYUISTATE, 0, 0);
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

if (control == null) control = this;
data.background = control.getBackgroundPixel ();
data.font = Font.win32_new(display, OS.SendMessage (handle, OS.WM_GETFONT, 0, 0));
data.uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0);
GC gc = GC.win32_new (wParam, data);
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

data.foreground = OS.GetTextColor (nmcd.hdc);
data.background = OS.GetBkColor (nmcd.hdc);
data.font = Font.win32_new (display, hFont);
GC gc = GC.win32_new (nmcd.hdc, data);
int x = cellRect.left;
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

data.foreground = OS.GetTextColor (nmcd.hdc);
data.background = OS.GetBkColor (nmcd.hdc);
data.font = Font.win32_new (display, hFont);
GC gc = GC.win32_new (nmcd.hdc, data);
int x = cellRect [0].left + INSET;
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

if (control == null) control = this;
data.background = control.getBackgroundPixel ();
data.font = Font.win32_new(display, OS.SendMessage (handle, OS.WM_GETFONT, 0, 0));
data.uiState = (int)/*64*/OS.SendMessage (handle, OS.WM_QUERYUISTATE, 0, 0);
if ((style & SWT.NO_BACKGROUND) != 0) {
org.eclipse.swt.graphicsFontwin32_new

Javadoc

Invokes platform specific functionality to allocate a new font.

IMPORTANT: This method is not part of the public API for Font. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms, and should never be called from application code.

Popular methods of Font

  • getFontData
    Returns an array of FontDatas representing the receiver. On Windows, only one FontData will be retur
  • <init>
  • dispose
  • isDisposed
    Returns true if the font has been disposed, and false otherwise. This method gets the dispose state
  • equals
    Compares the argument to the receiver, and returns true if they represent the same object using a c
  • getDevice
  • hashCode
    Returns an integer hash code for the receiver. Any two objects that return true when passed toequal
  • init
  • gtk_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • addTraits
  • checkDevice
  • cocoa_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • checkDevice,
  • cocoa_new,
  • findFontData

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Top PhpStorm plugins
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