Skip to content

Commit

Permalink
Override Base.show.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru committed Dec 8, 2022
1 parent e681912 commit a7ca4a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Webviews.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ mutable struct Webview <: API.AbstractWebview
end
Webview(width::Integer, height::Integer; kwargs...) = Webview((width, height); kwargs...)

Base.show(io::IO, w::Webview) = print(
io,
"Webview ($(length(w.callback_handler.callbacks)) bindings): $(window_handle(w))"
)

function __init__()
if PlatformImpl.check_dependency()
PlatformImpl.setup_platform()
Expand Down

0 comments on commit a7ca4a0

Please sign in to comment.