|
| | Cocoa_Window (const Standard_CString theTitle, const Standard_Integer thePxLeft, const Standard_Integer thePxTop, const Standard_Integer thePxWidth, const Standard_Integer thePxHeight) |
| | Creates a NSWindow and NSView defined by his position and size in pixels.
|
| |
| | Cocoa_Window (NSView *theViewNS) |
| | Creates a wrapper over existing NSView handle.
|
| |
| | ~Cocoa_Window () |
| | Destroys the Window and all resourses attached to it.
|
| |
| virtual void | Map () const override |
| | Opens the window <me>
|
| |
| virtual void | Unmap () const override |
| | Closes the window <me>
|
| |
| virtual Aspect_TypeOfResize | DoResize () override |
| | Applies the resizing to the window <me>
|
| |
| virtual Standard_Boolean | DoMapping () const override |
| | Apply the mapping change to the window <me>
|
| |
| virtual Standard_Boolean | IsMapped () const override |
| | Returns True if the window <me> is opened.
|
| |
| virtual Standard_Real | Ratio () const override |
| | Returns The Window RATIO equal to the physical WIDTH/HEIGHT dimensions.
|
| |
| virtual void | Position (Standard_Integer &X1, Standard_Integer &Y1, Standard_Integer &X2, Standard_Integer &Y2) const override |
| | Returns The Window POSITION in PIXEL.
|
| |
| virtual void | Size (Standard_Integer &theWidth, Standard_Integer &theHeight) const override |
| | Returns The Window SIZE in PIXEL.
|
| |
| NSView * | HView () const |
| |
| void | SetHView (NSView *theView) |
| | Setup new NSView.
|
| |
| virtual Aspect_Drawable | NativeHandle () const override |
| |
| virtual Aspect_Drawable | NativeParentHandle () const override |
| |
| virtual Aspect_FBConfig | NativeFBConfig () const override |
| | Returns nothing on OS X.
|
| |
| virtual void | SetTitle (const TCollection_AsciiString &theTitle) override |
| | Sets window title.
|
| |
| virtual void | InvalidateContent (const Handle< Aspect_DisplayConnection > &theDisp=NULL) override |
| | Invalidate entire window content by setting NSView::setNeedsDisplay property. Call will be implicitly redirected to the main thread when called from non-GUI thread.
|
| |
| Standard_Boolean | IsVirtual () const |
| | Returns True if the window <me> is virtual.
|
| |
| void | SetVirtual (const Standard_Boolean theVirtual) |
| | Setup the virtual state.
|
| |
| Graphic3d_Vec2i | TopLeft () const |
| | Returns window top-left corner.
|
| |
| Graphic3d_Vec2i | Dimensions () const |
| | Returns window dimensions.
|
| |
| const Handle< Aspect_DisplayConnection > & | DisplayConnection () const |
| | Returns connection to Display or NULL.
|
| |
| Aspect_Background | Background () const |
| | Returns the window background.
|
| |
| Aspect_FillMethod | BackgroundFillMethod () const |
| | Returns the current image background fill mode.
|
| |
| Aspect_GradientBackground | GradientBackground () const |
| | Returns the window gradient background.
|
| |
| void | SetBackground (const Aspect_Background &theBack) |
| | Modifies the window background.
|
| |
| void | SetBackground (const Quantity_Color &theColor) |
| | Modifies the window background.
|
| |
| void | SetBackground (const Aspect_GradientBackground &theBackground) |
| | Modifies the window gradient background.
|
| |
| void | SetBackground (const Quantity_Color &theFirstColor, const Quantity_Color &theSecondColor, const Aspect_GradientFillMethod theFillMethod) |
| | Modifies the window gradient background.
|
| |
| virtual Standard_Real | DevicePixelRatio () const |
| | Return device pixel ratio (logical to backing store scale factor).
|
| |
| virtual Graphic3d_Vec2d | ConvertPointToBacking (const Graphic3d_Vec2d &thePnt) const |
| | Convert point from logical units into backing store units.
|
| |
| virtual Graphic3d_Vec2d | ConvertPointFromBacking (const Graphic3d_Vec2d &thePnt) const |
| | Convert point from backing store units to logical units.
|
| |
| void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| | Dumps the content of me into the stream.
|
| |
Public Member Functions inherited from Standard_Transient |
| | Standard_Transient () |
| | Empty constructor.
|
| |
| | Standard_Transient (const Standard_Transient &) |
| | Copy constructor – does nothing.
|
| |
| Standard_Transient & | operator= (const Standard_Transient &) |
| | Assignment operator, needed to avoid copying reference counter.
|
| |
| virtual | ~Standard_Transient () |
| | Destructor must be virtual.
|
| |
| virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
| | Returns a type descriptor about this object.
|
| |
| Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
| | Returns a true value if this is an instance of Type.
|
| |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| | Returns a true value if this is an instance of TypeName.
|
| |
| Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
| | Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| | Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
|
| |
| Standard_Transient * | This () const |
| | Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
|
| |
| Standard_Integer | GetRefCount () const noexcept |
| | Get the reference counter of this object.
|
| |
| void | IncrementRefCounter () noexcept |
| | Increments the reference counter of this object.
|
| |
| Standard_Integer | DecrementRefCounter () noexcept |
| | Decrements the reference counter of this object; returns the decremented value.
|
| |
| virtual void | Delete () const |
| | Memory deallocator for transient classes.
|
| |
This class defines Cocoa window.