Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[GTK] Some Shapes API support #14235

Merged
merged 2 commits into from
Jan 14, 2022
Merged

[GTK] Some Shapes API support #14235

merged 2 commits into from
Jan 14, 2022

Conversation

knocte
Copy link
Contributor

@knocte knocte commented May 2, 2021

Description of Change

Supported Shapes:

  • Ellipse
  • Rectangle
  • Path

Supported Path Segments:

  • Arc
  • Line

Supported Brushes:

  • SolidColorBrush

(Strokes implementation will come in a 2nd PR.)

Co-authored-by: Afshin Arani <afshinarani79@gmail.com>

API Changes

NOTE: even if this could be considered an enhancement, any code that used Shapes with XamarinForms5.0 (or older) running on Gtk would have crashed or contained bugs (obviously), so this is essentially a bugfix. So: None, no API changes.

Platforms Affected

  • GTK

Testing Procedure

Manual with our own app.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

Supported Shapes:
  - Ellipse
  - Rectangle
  - Path

Supported Path Segments:
  - Arc
  - Line

Supported Brushes:
  - SolidColorBrush

Co-authored-by: Afshin Arani <afshinarani79@gmail.com>
@knocte knocte requested a review from jsuarezruiz as a code owner May 2, 2021 09:53
knocte added a commit to nblockchain/DotNetForms that referenced this pull request May 2, 2021
Supported Shapes:
  - Ellipse
  - Rectangle
  - Path

Supported Path Segments:
  - Arc
  - Line

Supported Brushes:
  - SolidColorBrush

Upstream PR: xamarin#14235

Co-authored-by: Afshin Arani <afshinarani79@gmail.com>
@jsuarezruiz
Copy link
Contributor

@knocte Looks nice, thanks for the contribution. Do you think could be possible to include Polyline and Polygon to have a PR including support to all the basic shapes at the same time?

@jsuarezruiz jsuarezruiz added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Nov 25, 2021
Newly added shapes:
    - Polygon
    - Polyline

This commit also completes the support for
solid-color stroking.
@knocte
Copy link
Contributor Author

knocte commented Dec 7, 2021

Do you think could be possible to include Polyline and Polygon to have a PR including support to all the basic shapes at the same time?

@jsuarezruiz we have just pushed a 2nd commit that implements this.

@knocte knocte changed the title [GTK] Some Shapes API support (1st part) [GTK] Some Shapes API support Dec 12, 2021
@jfversluis
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jfversluis
Copy link
Member

jfversluis commented Jan 14, 2022

Same as #14166

Actually not adding new stuff to Forms, but since this is community backed and not adding to our maintenance load, let's goooo 🚀 THank you so much for your contribution @knocte !

@jfversluis jfversluis merged commit 97d4f1c into xamarin:5.0.0 Jan 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/shapes p/gtk s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants