Search found 870 matches

by Justin
Thu Nov 20, 2025 10:45 pm
Forum: General Discussion
Topic: WebView with links and target="_blank"
Replies: 6
Views: 676

Re: WebView with links and target="_blank"

Or better like this to get also the uri of the new window:

EnableExplicit

ImportC ""
webkit_policy_decision_use(decision.i)
webkit_policy_decision_ignore(decision.i)
webkit_policy_decision_download(decision.i)
webkit_navigation_policy_decision_get_navigation_action.i(decision.i)
webkit ...
by Justin
Thu Nov 20, 2025 10:24 pm
Forum: General Discussion
Topic: WebView with links and target="_blank"
Replies: 6
Views: 676

Re: WebView with links and target="_blank"

For linux:

EnableExplicit

ImportC ""
webkit_policy_decision_use(decision.i)
webkit_policy_decision_ignore(decision.i)
webkit_policy_decision_download(decision.i)
webkit_navigation_policy_decision_get_navigation_action.i(decision.i)
webkit_navigation_action_get_request.i(action.i)
webkit ...
by Justin
Mon Nov 03, 2025 2:59 pm
Forum: Feature Requests and Wishlists
Topic: Support to Direct2D in Purebasic
Replies: 2
Views: 712

Re: Support to Direct2D in Purebasic

I did some Direct2D tests sometime ago:
https://github.com/omegakode/PBDirect2D

Someone could build a wrapper around that but it's just for windows.
by Justin
Wed Oct 29, 2025 8:26 pm
Forum: Tricks 'n' Tips
Topic: Animated Vector Graphics Scene Graph
Replies: 73
Views: 7813

Re: Animated Vector Graphics Scene Graph

3d acceleration will be great, it will also increase ram, probably 200mb on 4k at full screen :)
by Justin
Wed Oct 29, 2025 8:12 pm
Forum: Tricks 'n' Tips
Topic: AddPathSpline
Replies: 15
Views: 1648

Re: AddPathSpline

Nice, using FillVectorOutput removes the flickering here

Structure Vector2:x.f:y.f:EndStructure

Procedure AddPathSpline(Array po.Vector2(1),Flags=0,roundness.f=0.5)
Protected n,i,close,coef.f=roundness/3
Protected.Vector2 b0,b1,b2,b3,c
n=ArraySize(po())+2
Dim p.Vector2(n)

If flags=#PB_Path ...
by Justin
Sun Oct 12, 2025 5:48 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2976

Re: vector drawing display list

Nice but you don't use EnableExplicit? :shock:
Also it does not seem to be DPI aware.
If this could be adapted to reverse the animations when the state that trigered the animation ends like css does, it could be used as the basis for an animated UI framework
https://www.w3schools.com/css/css3 ...
by Justin
Sun Oct 12, 2025 2:44 pm
Forum: Applications - Feedback and Discussion
Topic: Complete Direct3D 11 Includes
Replies: 2
Views: 1837

Re: Complete Direct3D 11 Includes

I still have to try it but it can be very useful.

To use DXGI include dxgi1_6.pbi
To use Direct3D 11 include d3d11_4.pbi

Update:
I have added some missing defines that were not caught by the importer, now i think is complete.
by Justin
Sat Oct 11, 2025 10:10 pm
Forum: Applications - Feedback and Discussion
Topic: Complete Direct3D 11 Includes
Replies: 2
Views: 1837

Complete Direct3D 11 Includes

Complete Direct3D 11 + DXGI Includes translated to purebasic, there are no examples, just the includes:
https://github.com/omegakode/PBDirect3D11

Direct3d 11:
https://learn.microsoft.com/en-us/windo ... irect3d-11
by Justin
Wed Oct 01, 2025 9:40 pm
Forum: Tricks 'n' Tips
Topic: DXGI Includes
Replies: 0
Views: 1542

DXGI Includes

I needed this API so using a conversion tool and some ai help i translated it:
https://learn.microsoft.com/en-us/windows/win32/direct3ddxgi/dx-graphics-dxgi

dxgicommon.pbi

;dxgicommon.pbi

;- DXGI_RATIONAL
Structure DXGI_RATIONAL Align #PB_Structure_AlignC
Numerator.l
Denominator.l ...
by Justin
Wed Sep 17, 2025 7:52 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 13
Views: 1681

Re: SVG to PB VectorDrawing Codes

This is what i did at first but does not the first resetpath() erase any current drawing?
by Justin
Wed Sep 17, 2025 4:05 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 13
Views: 1681

Re: SVG to PB VectorDrawing Codes

How do you set a defined width and height?
by Justin
Wed Sep 17, 2025 2:23 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 13
Views: 1681

Re: SVG to PB VectorDrawing Codes

I asked chatgpt and it came with this, rewrites the path string returned by GenerateVectorCodeFromFile with the new x, y, width and height. Ideally it should do it in one pass in the GenerateVectorCodeFromFile function, but this seems to work as a quick workaround.

EnableExplicit

Structure ...
by Justin
Wed Sep 17, 2025 1:36 pm
Forum: Tricks 'n' Tips
Topic: SVG to PB VectorDrawing Codes
Replies: 13
Views: 1681

Re: SVG to PB VectorDrawing Codes

This is great but i think it needs the x, y, w, h parameters.
by Justin
Sun Jul 20, 2025 12:49 pm
Forum: Applications - Feedback and Discussion
Topic: Coroutines v3 - Crossplatform - AI Generated
Replies: 1
Views: 2389

Coroutines v3 - Crossplatform - AI Generated

Third revision of my coroutine system (resumable procedures), this time is a static lib written in C++ because the pb version used some deprecated functions that may not work in Macos Silicon. Even is not written in PB i tested on it first and translated the include, it may be useful.
I gave chat ...