You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-22 22:17:48 +02:00
Update to CEF 124.3.1
Removed the demos in Delphi_VCL\Extensions
This commit is contained in:
@ -248,14 +248,26 @@ type
|
||||
/// </summary>
|
||||
procedure RequestFocus;
|
||||
/// <summary>
|
||||
/// Sets the background color for this View.
|
||||
/// Sets the background color for this View. The background color will be
|
||||
/// automatically reset when ICefViewDelegate.OnThemeChanged is called.
|
||||
/// </summary>
|
||||
procedure SetBackgroundColor(color: TCefColor);
|
||||
/// <summary>
|
||||
/// Returns the background color for this View.
|
||||
/// Returns the background color for this View. If the background color is
|
||||
/// unset then the current `GetThemeColor(CEF_ColorPrimaryBackground)` value
|
||||
/// will be returned. If this View belongs to an overlay (created with
|
||||
/// ICefWindow.AddOverlayView), and the background color is unset, then a
|
||||
/// value of transparent (0) will be returned.
|
||||
/// </summary>
|
||||
function GetBackgroundColor : TCefColor;
|
||||
/// <summary>
|
||||
/// Returns the current theme color associated with |color_id|, or the
|
||||
/// placeholder color (red) if unset. See cef_color_ids.h for standard ID
|
||||
/// values. Standard colors can be overridden and custom colors can be added
|
||||
/// using ICefWindow.SetThemeColor.
|
||||
/// </summary>
|
||||
function GetThemeColor(color_id: integer): TCefColor;
|
||||
/// <summary>
|
||||
/// Convert |point| from this View's coordinate system to DIP screen
|
||||
/// coordinates. This View must belong to a Window when calling this function.
|
||||
/// Returns true (1) if the conversion is successful or false (0) otherwise.
|
||||
@ -532,6 +544,11 @@ begin
|
||||
Result := PCefView(FData)^.get_background_color(PCefView(FData));
|
||||
end;
|
||||
|
||||
function TCefViewRef.GetThemeColor(color_id: integer): TCefColor;
|
||||
begin
|
||||
Result := PCefView(FData)^.get_theme_color(PCefView(FData), color_id);
|
||||
end;
|
||||
|
||||
function TCefViewRef.ConvertPointToScreen(var point: TCefPoint): boolean;
|
||||
begin
|
||||
Result := (PCefView(FData)^.convert_point_to_screen(PCefView(FData), @point) <> 0);
|
||||
|
Reference in New Issue
Block a user