Package org.eclipse.swt.internal.carbon

Examples of org.eclipse.swt.internal.carbon.RGBColor


  }
  return OS.eventNotHandledErr;
}

RGBColor toRGBColor (float [] color) {
  RGBColor rgb = new RGBColor ();
  rgb.red = (short) (color [0] * 0xffff);
  rgb.green = (short) (color [1] * 0xffff);
  rgb.blue = (short) (color [2] * 0xffff);
  return rgb;
}
View Full Code Here


  queue = OS.GetCurrentEventQueue ();
  OS.TXNInitTextension (0, 0, 0);
 
  /* Save the current highlight color */
  OS.RegisterAppearanceClient ();
  highlightColor = new RGBColor ();
  OS.GetThemeBrushAsColor ((short) OS.kThemeBrushPrimaryHighlightColor, (short) getDepth(), true, highlightColor);
}
View Full Code Here

*
* @see SWT
*/
public Color getSystemColor (int id) {
  checkDevice ();
  RGBColor rgb = new RGBColor ();
  switch (id) {
    case SWT.COLOR_INFO_FOREGROUND: return super.getSystemColor (SWT.COLOR_BLACK);
    case SWT.COLOR_INFO_BACKGROUND: return Color.carbon_new (this, new float [] {0xFF / 255f, 0xFF / 255f, 0xE1 / 255f, 1});
    case SWT.COLOR_TITLE_FOREGROUND: OS.GetThemeTextColor((short)OS.kThemeTextColorDocumentWindowTitleActive, (short)getDepth(), true, rgb); break;
    case SWT.COLOR_TITLE_BACKGROUND: OS.GetThemeBrushAsColor((short)-5/*undocumented darker highlight color*/, (short)getDepth(), true, rgb); break;
View Full Code Here

public boolean sleep () {
  checkDevice ();
  if (getMessageCount () != 0) return true;
  disposeWindows ();
  if (eventTable != null && eventTable.hooks (SWT.Settings)) {
    RGBColor color = new RGBColor ();
    int status = OS.noErr, depth = getDepth ();
    do {
      allowTimers = false;
      status = OS.ReceiveNextEvent (0, null, 0.5, false, null);
      allowTimers = true;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.internal.carbon.RGBColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.