|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefViewin cef_view.h
A View is a rectangle within the views View hierarchy. It is the base class for all Views. All size and position values are in density independent pixels (DIP) unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.
Method Summary | |
virtual CefRefPtr< CefBrowserView > |
AsBrowserView()= 0
Returns this View as a BrowserView or NULL if this is not a BrowserView. |
virtual CefRefPtr< CefButton > |
AsButton()= 0
Returns this View as a Button or NULL if this is not a Button. |
virtual CefRefPtr< CefPanel > |
AsPanel()= 0
Returns this View as a Panel or NULL if this is not a Panel. |
virtual CefRefPtr< CefScrollView > |
AsScrollView()= 0
Returns this View as a ScrollView or NULL if this is not a ScrollView. |
virtual CefRefPtr< CefTextfield > |
AsTextfield()= 0
Returns this View as a Textfield or NULL if this is not a Textfield. |
virtual bool |
ConvertPointFromScreen( CefPoint& point )= 0
Convert |point| to this View's coordinate system from that of the screen. |
virtual bool |
ConvertPointFromView( CefRefPtr< CefView > view, CefPoint& point )= 0
Convert |point| to this View's coordinate system from that |view|. |
virtual bool |
ConvertPointFromWindow( CefPoint& point )= 0
Convert |point| to this View's coordinate system from that of the Window. |
virtual bool |
ConvertPointToScreen( CefPoint& point )= 0
Convert |point| from this View's coordinate system to that of the screen. |
virtual bool |
ConvertPointToView( CefRefPtr< CefView > view, CefPoint& point )= 0
Convert |point| from this View's coordinate system to that of |view|. |
virtual bool |
ConvertPointToWindow( CefPoint& point )= 0
Convert |point| from this View's coordinate system to that of the Window. |
virtual cef_color_t |
GetBackgroundColor()= 0
Returns the background color for this View. |
virtual CefRect |
GetBounds()= 0
Returns the bounds (size and position) of this View. |
virtual CefRect |
GetBoundsInScreen()= 0
Returns the bounds (size and position) of this View. |
virtual CefRefPtr< CefViewDelegate > |
GetDelegate()= 0
Returns the delegate associated with this View, if any. |
virtual int |
GetGroupID()= 0
Returns the group id of this View, or -1 if not set. |
virtual int |
GetHeightForWidth( int width )= 0
Returns the height necessary to display this View with the provided width. |
virtual int |
GetID()= 0
Returns the ID for this View. |
virtual CefSize |
GetMaximumSize()= 0
Returns the maximum size for this View. |
virtual CefSize |
GetMinimumSize()= 0
Returns the minimum size for this View. |
virtual CefRefPtr< CefView > |
GetParentView()= 0
Returns the View that contains this View, if any. |
virtual CefPoint |
GetPosition()= 0
Returns the position of this View. |
virtual CefSize |
GetPreferredSize()= 0
Returns the size this View would like to be if enough space is available. |
virtual CefSize |
GetSize()= 0
Returns the size of this View. |
virtual CefString |
GetTypeString()= 0
Returns the type of this View as a string. |
virtual CefRefPtr< CefView > |
GetViewForID( int id )= 0
Recursively descends the view tree starting at this View, and returns the first child that it encounters with the given ID. |
virtual CefRefPtr< CefWindow > |
GetWindow()= 0
Returns the top-level Window hosting this View, if any. |
virtual void |
InvalidateLayout()= 0
Indicate that this View and all parent Views require a re-layout. |
virtual bool |
IsAccessibilityFocusable()= 0
Return whether this View is focusable when the user requires full keyboard access, even though it may not be normally focusable. |
virtual bool |
IsAttached()= 0
Returns true if this View is currently attached to another View. |
virtual bool |
IsDrawn()= 0
Returns whether this View is visible and drawn in a Window. |
virtual bool |
IsEnabled()= 0
Returns whether this View is enabled. |
virtual bool |
IsFocusable()= 0
Returns true if this View is focusable, enabled and drawn. |
virtual bool |
IsSame( CefRefPtr< CefView > that )= 0
Returns true if this View is the same as |that| View. |
virtual bool |
IsValid()= 0
Returns true if this View is valid. |
virtual bool |
IsVisible()= 0
Returns whether this View is visible. |
virtual void |
RequestFocus()= 0
Request keyboard focus. |
virtual void |
SetBackgroundColor( cef_color_t color )= 0
Sets the background color for this View. |
virtual void |
SetBounds( const CefRect& bounds )= 0
Sets the bounds (size and position) of this View. |
virtual void |
SetEnabled( bool enabled )= 0
Set whether this View is enabled. |
virtual void |
SetFocusable( bool focusable )= 0
Sets whether this View is capable of taking focus. |
virtual void |
SetGroupID( int group_id )= 0
A group id is used to tag Views which are part of the same logical group. |
virtual void |
SetID( int id )= 0
Sets the ID for this View. |
virtual void |
SetPosition( const CefPoint& position )= 0
Sets the position of this View without changing the size. |
virtual void |
SetSize( const CefSize& size )= 0
Sets the size of this View without changing the position. |
virtual void |
SetVisible( bool visible )= 0
Sets whether this View is visible. |
virtual void |
SizeToPreferredSize()= 0
Size this View to its preferred size. |
virtual CefString |
ToString( bool include_children )= 0
Returns a string representation of this View which includes the type and various type-specific identifying attributes. |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public virtual CefRefPtr< CefBrowserView > AsBrowserView()= 0;
public virtual CefRefPtr< CefButton > AsButton()= 0;
public virtual CefRefPtr< CefPanel > AsPanel()= 0;
public virtual CefRefPtr< CefScrollView > AsScrollView()= 0;
public virtual CefRefPtr< CefTextfield > AsTextfield()= 0;
public virtual bool ConvertPointFromScreen( CefPoint& point )= 0;
public virtual bool ConvertPointFromView( CefRefPtr< CefView > view, CefPoint& point )= 0;
public virtual bool ConvertPointFromWindow( CefPoint& point )= 0;
public virtual bool ConvertPointToScreen( CefPoint& point )= 0;
public virtual bool ConvertPointToView( CefRefPtr< CefView > view, CefPoint& point )= 0;
public virtual bool ConvertPointToWindow( CefPoint& point )= 0;
public virtual cef_color_t GetBackgroundColor()= 0;
public virtual CefRect GetBounds()= 0;
public virtual CefRect GetBoundsInScreen()= 0;
public virtual CefRefPtr< CefViewDelegate > GetDelegate()= 0;
public virtual int GetGroupID()= 0;
public virtual int GetHeightForWidth( int width )= 0;
public virtual int GetID()= 0;
public virtual CefSize GetMaximumSize()= 0;
public virtual CefSize GetMinimumSize()= 0;
public virtual CefRefPtr< CefView > GetParentView()= 0;
public virtual CefPoint GetPosition()= 0;
public virtual CefSize GetPreferredSize()= 0;
public virtual CefSize GetSize()= 0;
public virtual CefString GetTypeString()= 0;
public virtual CefRefPtr< CefView > GetViewForID( int id )= 0;
public virtual CefRefPtr< CefWindow > GetWindow()= 0;
public virtual void InvalidateLayout()= 0;
public virtual bool IsAccessibilityFocusable()= 0;
public virtual bool IsAttached()= 0;
public virtual bool IsDrawn()= 0;
public virtual bool IsEnabled()= 0;
public virtual bool IsFocusable()= 0;
public virtual bool IsSame( CefRefPtr< CefView > that )= 0;
public virtual bool IsValid()= 0;
public virtual bool IsVisible()= 0;
public virtual void RequestFocus()= 0;
public virtual void SetBackgroundColor( cef_color_t color )= 0;
public virtual void SetBounds( const CefRect& bounds )= 0;
public virtual void SetEnabled( bool enabled )= 0;
public virtual void SetFocusable( bool focusable )= 0;
public virtual void SetGroupID( int group_id )= 0;
public virtual void SetID( int id )= 0;
public virtual void SetPosition( const CefPoint& position )= 0;
public virtual void SetSize( const CefSize& size )= 0;
public virtual void SetVisible( bool visible )= 0;
public virtual void SizeToPreferredSize()= 0;
public virtual CefString ToString( bool include_children )= 0;
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |