Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::MacOSX::X11 Namespace Reference

Namespaces

namespace  Detail
 

Classes

class  ClearArea
 
class  ColorParser
 
class  Command
 
class  CommandBuffer
 
class  CopyArea
 
class  DeletePixmap
 
class  DrawBoxXor
 
class  DrawLine
 
class  DrawLineXor
 
class  DrawRectangle
 
class  DrawSegments
 
class  DrawString
 
class  EventTranslator
 
class  FillPolygon
 
class  FillRectangle
 
struct  Point
 
struct  Rectangle
 
class  UpdateWindow
 
struct  XLFDName
 

Typedefs

typedef std::deque< Event_tEventQueue_t
 
typedef std::map< std::string, Atom_tname_to_atom_map
 

Enumerations

enum  FontSlant { kFSAny , kFSRegular , kFSItalic }
 
enum  FontWeight { kFWAny , kFWMedium , kFWBold }
 
enum  PointerGrab { kPGNoGrab , kPGImplicitGrab , kPGActiveGrab , kPGPassiveGrab }
 

Functions

bool AdjustCropArea (const Rectangle &srcRect, Rectangle &cropArea)
 
bool AdjustCropArea (QuartzImage *srcImage, NSRect &cropArea)
 
bool AdjustCropArea (QuartzImage *srcImage, Rectangle &cropArea)
 
bool AdjustCropArea (QuartzPixmap *srcImage, Rectangle &cropArea)
 
void ClipToShapeMask (NSView< X11Window > *view, CGContextRef ctx)
 
NSComparisonResult CompareViewsToLower (id view1, id view2, void *context)
 
NSComparisonResult CompareViewsToRaise (id view1, id view2, void *context)
 
NSPoint ConvertPointFromBaseToScreen (NSWindow *window, NSPoint windowPoint)
 
NSPoint ConvertPointFromScreenToBase (NSPoint screenPoint, NSWindow *window)
 
QuartzViewCreateChildView (QuartzView *parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t wtype)
 
NSCursor * CreateCursor (ECursor currentCursor)
 
NSCursor * CreateCustomCursor (ECursor currentCursor)
 
CGImageRef CreateSubImage (QuartzImage *image, const Rectangle &area)
 
QuartzWindowCreateTopLevelWindow (Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void *visual, SetWindowAttributes_t *attr, UInt_t)
 
std::vector< unsigned char > DownscaledImageData (unsigned w, unsigned h, CGImageRef image)
 
void FillPixmapBuffer (const unsigned char *bitmap, unsigned width, unsigned height, ULong_t foregroundPixel, ULong_t backgroundPixel, unsigned depth, unsigned char *imageData)
 
NSView< X11Window > * FindDNDAwareViewInPoint (NSArray *children, Window_t dragWinID, Window_t inputWinID, Int_t x, Int_t y, Int_t maxDepth)
 
NSView< X11Window > * FindDNDAwareViewInPoint (NSView *parentView, Window_t dragWinID, Window_t inputWinID, Int_t x, Int_t y, Int_t maxDepth)
 
NSView< X11Window > * FindViewForPointerEvent (NSEvent *pointerEvent)
 
NSView< X11Window > * FindViewUnderPointer ()
 
QuartzWindowFindWindowForPointerEvent (NSEvent *pointerEvent)
 
QuartzWindowFindWindowInPoint (Int_t x, Int_t y)
 
QuartzWindowFindWindowUnderPointer ()
 
NSView< X11Window > * FrameForHtmlView (NSView< X11Window > *htmlView)
 
NSView< X11Window > * FrameForTextView (NSView< X11Window > *textView)
 
NSUInteger GetCocoaKeyModifiersFromROOTKeyModifiers (UInt_t rootKeyModifiers)
 
NSPoint GetCursorHotStop (NSImage *image, ECursor cursor)
 
UInt_t GetKeyboardModifiers ()
 
UInt_t GetModifiers ()
 
void GetRootWindowAttributes (WindowAttributes_t *attr)
 
void GetWindowAttributes (NSObject< X11Window > *window, WindowAttributes_t *dst)
 
void GetWindowGeometry (NSObject< X11Window > *win, WindowAttributes_t *dst)
 
int GlobalXCocoaToROOT (CGFloat xCocoa)
 
int GlobalXROOTToCocoa (CGFloat xROOT)
 
int GlobalYCocoaToROOT (CGFloat yCocoa)
 
int GlobalYROOTToCocoa (CGFloat yROOT)
 
void InitWithPredefinedAtoms (name_to_atom_map &nameToAtom, std::vector< std::string > &atomNames)
 
int LocalYCocoaToROOT (NSView< X11Window > *parentView, CGFloat yCocoa)
 
int LocalYROOTToCocoa (NSObject< X11Drawable > *parentView, CGFloat yROOT)
 
int LocalYROOTToCocoa (NSView< X11Window > *parentView, CGFloat yROOT)
 
bool LockFocus (NSView< X11Window > *view)
 
Int_t MapKeySymToKeyCode (Int_t keySym)
 
void MapUnicharToKeySym (unichar key, char *buf, Int_t len, UInt_t &rootKeySym)
 
bool ParseXLFDName (const std::string &xlfdName, XLFDName &dst)
 
void PixelToRGB (Pixel_t pixelColor, CGFloat *rgb)
 
void PixelToRGB (Pixel_t pixelColor, unsigned char *rgb)
 
bool ScreenPointIsInView (NSView< X11Window > *view, Int_t x, Int_t y)
 
void SetWindowAttributes (const SetWindowAttributes_t *attr, NSObject< X11Window > *window)
 
bool TestBitmapBit (const unsigned char *bitmap, unsigned w, unsigned i, unsigned j)
 
NSPoint TranslateCoordinates (NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
 
NSPoint TranslateFromScreen (NSPoint point, NSView< X11Window > *to)
 
NSPoint TranslateToScreen (NSView< X11Window > *from, NSPoint point)
 
void UnlockFocus (NSView< X11Window > *view)
 
bool ViewIsHtmlView (NSView< X11Window > *view)
 
bool ViewIsHtmlView (unsigned viewID)
 
bool ViewIsHtmlViewFrame (NSView< X11Window > *view, bool checkParent)
 
bool ViewIsTextView (NSView< X11Window > *view)
 
bool ViewIsTextView (unsigned viewID)
 
bool ViewIsTextViewFrame (NSView< X11Window > *view, bool checkParent)
 
void WindowLostFocus (Window_t winID)
 

Variables

const unsigned nPredefined = sizeof predefinedAtoms / sizeof predefinedAtoms[0]
 
const char * predefinedAtoms []
 
const auto rootToNs
 

Typedef Documentation

◆ EventQueue_t

Definition at line 49 of file X11Events.h.

◆ name_to_atom_map

typedef std::map<std::string, Atom_t> ROOT::MacOSX::X11::name_to_atom_map

Definition at line 14 of file X11Atoms.h.

Enumeration Type Documentation

◆ FontSlant

Enumerator
kFSAny 
kFSRegular 
kFSItalic 

Definition at line 27 of file XLFDParser.h.

◆ FontWeight

Enumerator
kFWAny 
kFWMedium 
kFWBold 

Definition at line 33 of file XLFDParser.h.

◆ PointerGrab

Enumerator
kPGNoGrab 
kPGImplicitGrab 
kPGActiveGrab 
kPGPassiveGrab 

Definition at line 42 of file X11Events.h.

Function Documentation

◆ AdjustCropArea() [1/4]

bool ROOT::MacOSX::X11::AdjustCropArea ( const Rectangle srcRect,
Rectangle cropArea 
)

Definition at line 862 of file QuartzPixmap.mm.

◆ AdjustCropArea() [2/4]

bool ROOT::MacOSX::X11::AdjustCropArea ( QuartzImage srcImage,
NSRect &  cropArea 
)

Definition at line 894 of file QuartzPixmap.mm.

◆ AdjustCropArea() [3/4]

bool ROOT::MacOSX::X11::AdjustCropArea ( QuartzImage srcImage,
Rectangle cropArea 
)

Definition at line 885 of file QuartzPixmap.mm.

◆ AdjustCropArea() [4/4]

bool ROOT::MacOSX::X11::AdjustCropArea ( QuartzPixmap srcImage,
X11::Rectangle cropArea 
)

Definition at line 916 of file QuartzPixmap.mm.

◆ ClipToShapeMask()

void ROOT::MacOSX::X11::ClipToShapeMask ( NSView< X11Window > *  view,
CGContextRef  ctx 
)

Definition at line 589 of file QuartzWindow.mm.

◆ CompareViewsToLower()

NSComparisonResult ROOT::MacOSX::X11::CompareViewsToLower ( id  view1,
id  view2,
void *  context 
)

Definition at line 736 of file QuartzWindow.mm.

◆ CompareViewsToRaise()

NSComparisonResult ROOT::MacOSX::X11::CompareViewsToRaise ( id  view1,
id  view2,
void *  context 
)

Definition at line 753 of file QuartzWindow.mm.

◆ ConvertPointFromBaseToScreen()

NSPoint ROOT::MacOSX::X11::ConvertPointFromBaseToScreen ( NSWindow window,
NSPoint  windowPoint 
)

Definition at line 141 of file QuartzWindow.mm.

◆ ConvertPointFromScreenToBase()

NSPoint ROOT::MacOSX::X11::ConvertPointFromScreenToBase ( NSPoint  screenPoint,
NSWindow window 
)

Definition at line 157 of file QuartzWindow.mm.

◆ CreateChildView()

QuartzView * ROOT::MacOSX::X11::CreateChildView ( QuartzView parent,
Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h,
UInt_t  border,
Int_t  depth,
UInt_t  clss,
void *  visual,
SetWindowAttributes_t attr,
UInt_t  wtype 
)

Definition at line 85 of file QuartzWindow.mm.

◆ CreateCursor()

NSCursor * ROOT::MacOSX::X11::CreateCursor ( ECursor  currentCursor)

Definition at line 841 of file QuartzWindow.mm.

◆ CreateCustomCursor()

NSCursor * ROOT::MacOSX::X11::CreateCustomCursor ( ECursor  currentCursor)

Definition at line 781 of file QuartzWindow.mm.

◆ CreateSubImage()

CGImageRef ROOT::MacOSX::X11::CreateSubImage ( QuartzImage image,
const Rectangle area 
)

Definition at line 774 of file QuartzPixmap.mm.

◆ CreateTopLevelWindow()

QuartzWindow * ROOT::MacOSX::X11::CreateTopLevelWindow ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h,
UInt_t  border,
Int_t  depth,
UInt_t  clss,
void *  visual,
SetWindowAttributes_t attr,
UInt_t   
)

Definition at line 56 of file QuartzWindow.mm.

◆ DownscaledImageData()

std::vector< unsigned char > ROOT::MacOSX::X11::DownscaledImageData ( unsigned  w,
unsigned  h,
CGImageRef  image 
)

Definition at line 525 of file QuartzWindow.mm.

◆ FillPixmapBuffer()

void ROOT::MacOSX::X11::FillPixmapBuffer ( const unsigned char *  bitmap,
unsigned  width,
unsigned  height,
ULong_t  foregroundPixel,
ULong_t  backgroundPixel,
unsigned  depth,
unsigned char *  imageData 
)

Definition at line 941 of file QuartzPixmap.mm.

◆ FindDNDAwareViewInPoint() [1/2]

NSView< X11Window > * ROOT::MacOSX::X11::FindDNDAwareViewInPoint ( NSArray *  children,
Window_t  dragWinID,
Window_t  inputWinID,
Int_t  x,
Int_t  y,
Int_t  maxDepth 
)

Definition at line 337 of file QuartzWindow.mm.

◆ FindDNDAwareViewInPoint() [2/2]

NSView< X11Window > * ROOT::MacOSX::X11::FindDNDAwareViewInPoint ( NSView parentView,
Window_t  dragWinID,
Window_t  inputWinID,
Int_t  x,
Int_t  y,
Int_t  maxDepth 
)

Definition at line 362 of file QuartzWindow.mm.

◆ FindViewForPointerEvent()

NSView< X11Window > * ROOT::MacOSX::X11::FindViewForPointerEvent ( NSEvent pointerEvent)

Definition at line 497 of file QuartzWindow.mm.

◆ FindViewUnderPointer()

NSView< X11Window > * ROOT::MacOSX::X11::FindViewUnderPointer ( )

Definition at line 436 of file QuartzWindow.mm.

◆ FindWindowForPointerEvent()

QuartzWindow * ROOT::MacOSX::X11::FindWindowForPointerEvent ( NSEvent pointerEvent)

Definition at line 449 of file QuartzWindow.mm.

◆ FindWindowInPoint()

QuartzWindow * ROOT::MacOSX::X11::FindWindowInPoint ( Int_t  x,
Int_t  y 
)

Definition at line 316 of file QuartzWindow.mm.

◆ FindWindowUnderPointer()

QuartzWindow * ROOT::MacOSX::X11::FindWindowUnderPointer ( )

Definition at line 408 of file QuartzWindow.mm.

◆ FrameForHtmlView()

NSView< X11Window > * ROOT::MacOSX::X11::FrameForHtmlView ( NSView< X11Window > *  htmlView)

Definition at line 999 of file QuartzWindow.mm.

◆ FrameForTextView()

NSView< X11Window > * ROOT::MacOSX::X11::FrameForTextView ( NSView< X11Window > *  textView)

Definition at line 986 of file QuartzWindow.mm.

◆ GetCocoaKeyModifiersFromROOTKeyModifiers()

NSUInteger ROOT::MacOSX::X11::GetCocoaKeyModifiersFromROOTKeyModifiers ( UInt_t  rootKeyModifiers)

Definition at line 261 of file X11Events.mm.

◆ GetCursorHotStop()

NSPoint ROOT::MacOSX::X11::GetCursorHotStop ( NSImage *  image,
ECursor  cursor 
)

Definition at line 768 of file QuartzWindow.mm.

◆ GetKeyboardModifiers()

UInt_t ROOT::MacOSX::X11::GetKeyboardModifiers ( )

Definition at line 280 of file X11Events.mm.

◆ GetModifiers()

UInt_t ROOT::MacOSX::X11::GetModifiers ( )

Definition at line 300 of file X11Events.mm.

◆ GetRootWindowAttributes()

void ROOT::MacOSX::X11::GetRootWindowAttributes ( WindowAttributes_t attr)

Definition at line 104 of file QuartzWindow.mm.

◆ GetWindowAttributes()

void ROOT::MacOSX::X11::GetWindowAttributes ( NSObject< X11Window > *  window,
WindowAttributes_t dst 
)

Definition at line 678 of file QuartzWindow.mm.

◆ GetWindowGeometry()

void ROOT::MacOSX::X11::GetWindowGeometry ( NSObject< X11Window > *  win,
WindowAttributes_t dst 
)

Definition at line 665 of file QuartzWindow.mm.

◆ GlobalXCocoaToROOT()

int ROOT::MacOSX::X11::GlobalXCocoaToROOT ( CGFloat  xCocoa)

Definition at line 188 of file QuartzWindow.mm.

◆ GlobalXROOTToCocoa()

int ROOT::MacOSX::X11::GlobalXROOTToCocoa ( CGFloat  xROOT)

Definition at line 208 of file QuartzWindow.mm.

◆ GlobalYCocoaToROOT()

int ROOT::MacOSX::X11::GlobalYCocoaToROOT ( CGFloat  yCocoa)

Definition at line 173 of file QuartzWindow.mm.

◆ GlobalYROOTToCocoa()

int ROOT::MacOSX::X11::GlobalYROOTToCocoa ( CGFloat  yROOT)

Definition at line 198 of file QuartzWindow.mm.

◆ InitWithPredefinedAtoms()

void ROOT::MacOSX::X11::InitWithPredefinedAtoms ( name_to_atom_map nameToAtom,
std::vector< std::string > &  atomNames 
)

Definition at line 83 of file X11Atoms.mm.

◆ LocalYCocoaToROOT()

int ROOT::MacOSX::X11::LocalYCocoaToROOT ( NSView< X11Window > *  parentView,
CGFloat  yCocoa 
)

Definition at line 218 of file QuartzWindow.mm.

◆ LocalYROOTToCocoa() [1/2]

int ROOT::MacOSX::X11::LocalYROOTToCocoa ( NSObject< X11Drawable > *  parentView,
CGFloat  yROOT 
)

Definition at line 236 of file QuartzWindow.mm.

◆ LocalYROOTToCocoa() [2/2]

int ROOT::MacOSX::X11::LocalYROOTToCocoa ( NSView< X11Window > *  parentView,
CGFloat  yROOT 
)

Definition at line 226 of file QuartzWindow.mm.

◆ LockFocus()

bool ROOT::MacOSX::X11::LockFocus ( NSView< X11Window > *  view)

Definition at line 1014 of file QuartzWindow.mm.

◆ MapKeySymToKeyCode()

Int_t ROOT::MacOSX::X11::MapKeySymToKeyCode ( Int_t  keySym)

Definition at line 178 of file X11Events.mm.

◆ MapUnicharToKeySym()

void ROOT::MacOSX::X11::MapUnicharToKeySym ( unichar  key,
char *  buf,
Int_t  len,
UInt_t rootKeySym 
)

Definition at line 98 of file X11Events.mm.

◆ ParseXLFDName()

bool ROOT::MacOSX::X11::ParseXLFDName ( const std::string &  xlfdName,
XLFDName dst 
)

Definition at line 260 of file XLFDParser.mm.

◆ PixelToRGB() [1/2]

void ROOT::MacOSX::X11::PixelToRGB ( Pixel_t  pixelColor,
CGFloat *  rgb 
)

Definition at line 920 of file X11Colors.mm.

◆ PixelToRGB() [2/2]

void ROOT::MacOSX::X11::PixelToRGB ( Pixel_t  pixelColor,
unsigned char *  rgb 
)

Definition at line 929 of file X11Colors.mm.

◆ ScreenPointIsInView()

bool ROOT::MacOSX::X11::ScreenPointIsInView ( NSView< X11Window > *  view,
Int_t  x,
Int_t  y 
)

Definition at line 296 of file QuartzWindow.mm.

◆ SetWindowAttributes()

void ROOT::MacOSX::X11::SetWindowAttributes ( const SetWindowAttributes_t attr,
NSObject< X11Window > *  window 
)

Definition at line 634 of file QuartzWindow.mm.

◆ TestBitmapBit()

bool ROOT::MacOSX::X11::TestBitmapBit ( const unsigned char *  bitmap,
unsigned  w,
unsigned  i,
unsigned  j 
)

Definition at line 924 of file QuartzPixmap.mm.

◆ TranslateCoordinates()

NSPoint ROOT::MacOSX::X11::TranslateCoordinates ( NSView< X11Window > *  fromView,
NSView< X11Window > *  toView,
NSPoint  sourcePoint 
)

Definition at line 271 of file QuartzWindow.mm.

◆ TranslateFromScreen()

NSPoint ROOT::MacOSX::X11::TranslateFromScreen ( NSPoint  point,
NSView< X11Window > *  to 
)

Definition at line 259 of file QuartzWindow.mm.

◆ TranslateToScreen()

NSPoint ROOT::MacOSX::X11::TranslateToScreen ( NSView< X11Window > *  from,
NSPoint  point 
)

Definition at line 245 of file QuartzWindow.mm.

◆ UnlockFocus()

void ROOT::MacOSX::X11::UnlockFocus ( NSView< X11Window > *  view)

Definition at line 1035 of file QuartzWindow.mm.

◆ ViewIsHtmlView() [1/2]

bool ROOT::MacOSX::X11::ViewIsHtmlView ( NSView< X11Window > *  view)

Definition at line 953 of file QuartzWindow.mm.

◆ ViewIsHtmlView() [2/2]

bool ROOT::MacOSX::X11::ViewIsHtmlView ( unsigned  viewID)

Definition at line 941 of file QuartzWindow.mm.

◆ ViewIsHtmlViewFrame()

bool ROOT::MacOSX::X11::ViewIsHtmlViewFrame ( NSView< X11Window > *  view,
bool  checkParent 
)

Definition at line 961 of file QuartzWindow.mm.

◆ ViewIsTextView() [1/2]

bool ROOT::MacOSX::X11::ViewIsTextView ( NSView< X11Window > *  view)

Definition at line 909 of file QuartzWindow.mm.

◆ ViewIsTextView() [2/2]

bool ROOT::MacOSX::X11::ViewIsTextView ( unsigned  viewID)

Definition at line 897 of file QuartzWindow.mm.

◆ ViewIsTextViewFrame()

bool ROOT::MacOSX::X11::ViewIsTextViewFrame ( NSView< X11Window > *  view,
bool  checkParent 
)

Definition at line 917 of file QuartzWindow.mm.

◆ WindowLostFocus()

void ROOT::MacOSX::X11::WindowLostFocus ( Window_t  winID)

Definition at line 560 of file QuartzWindow.mm.

Variable Documentation

◆ nPredefined

const unsigned ROOT::MacOSX::X11::nPredefined = sizeof predefinedAtoms / sizeof predefinedAtoms[0]

Definition at line 80 of file X11Atoms.mm.

◆ predefinedAtoms

const char* ROOT::MacOSX::X11::predefinedAtoms[]

Definition at line 8 of file X11Atoms.mm.

◆ rootToNs

const auto ROOT::MacOSX::X11::rootToNs
Initial value:
= [](Point rp) {
return NSPoint{CGFloat(rp.fX), CGFloat(rp.fY)};
}

Definition at line 281 of file X11Buffer.mm.