Skip to content

Commit

Permalink
Merge pull request #268 from mcorino/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mcorino authored Apr 4, 2024
2 parents ebfa518 + 3a014fe commit 3e20ab6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ jobs:
ref: v${{ matrix.wxWidgets }}
submodules: 'recursive'

- name: Prepare package repos
if: matrix.wxw_type == 'embed'
run: |
sudo apt-get update
- name: Set up build environment
if: matrix.wxw_type != 'embed'
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ jobs:
ref: v${{ matrix.wxWidgets }}
submodules: 'recursive'

- name: Prepare package repos
if: ${{ matrix.os == 'ubuntu-22.04' && matrix.wxw_type == 'embed' }}
run: |
sudo apt-get update
- name: Set up build environment
if: ${{ matrix.build && matrix.wxw_type != 'embed' }}
run: |
Expand Down
17 changes: 15 additions & 2 deletions rakelib/lib/director/graphics_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,35 @@ class GraphicsObject < Director

def setup
super
spec.items.concat %w[wxGraphicsPen wxGraphicsBrush wxGraphicsPath wxGraphicsFont wxGraphicsMatrix wxGraphicsBitmap]
spec.items.concat %w[wxGraphicsPen wxGraphicsBrush wxGraphicsPath wxGraphicsFont wxGraphicsMatrix wxGraphicsBitmap wxGraphicsRenderer]
spec.disable_proxies
spec.ignore 'wxGraphicsObject::GetRenderer'
spec.ignore 'wxGraphicsMatrix::Concat(const wxGraphicsMatrix &)'
spec.ignore 'wxGraphicsMatrix::IsEqual(const wxGraphicsMatrix &)'
spec.ignore 'wxGraphicsMatrix::GetNativeMatrix'
spec.ignore 'wxGraphicsBitmap::GetNativeBitmap'
spec.ignore 'wxGraphicsPath::GetNativePath',
'wxGraphicsPath::UnGetNativePath'
spec.ignore 'wxGraphicsRenderer::CreateContextFromNativeHDC',
'wxGraphicsRenderer::CreateBitmapFromNativeBitmap',
'wxGraphicsRenderer::CreateContextFromNativeContext',
'wxGraphicsRenderer::CreateContextFromNativeWindow',
'wxGraphicsRenderer::CreateContext(const wxEnhMetaFileDC&)'
unless Config.instance.features_set?('USE_CAIRO')
spec.ignore 'wxGraphicsRenderer::GetCairoRenderer'
end
unless Config.instance.features_set?('WXMSW')
spec.ignore 'wxGraphicsRenderer::GetGDIPlusRenderer',
'wxGraphicsRenderer::GetDirect2DRenderer'
end
# Deal with GraphicsMatrix#get method
spec.map_apply 'double *OUTPUT' => [ 'wxDouble *a', 'wxDouble *b',
'wxDouble *c', 'wxDouble *d',
'wxDouble *tx' , 'wxDouble *ty' ]
spec.ignore 'wxGraphicsPath::GetBox() const',
'wxGraphicsPath::GetCurrentPoint(wxDouble*,wxDouble*) const'
spec.map_apply 'double * OUTPUT' => 'wxDouble *'
# wxGraphicsRenderer::GetVersion
spec.map_apply 'int * OUTPUT' => ['int *major', 'int *minor', 'int *micro']
if Config.platform == :mingw
# it seems for WXMSW there is a problem cleaning up GraphicsObjects in GC after
# the wxApp has ended (probably because some other wxWidgets cleanup already
Expand Down
2 changes: 1 addition & 1 deletion rakelib/lib/extractor/function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def extract(element)
@is_static = element['static'] == 'yes'
@is_virtual = %w[virtual pure-virtual].include?(element['virt'])
@is_pure_virtual = (element['virt'] == 'pure-virtual')
@args_string.sub!(/\s*=0/, '') if @is_pure_virtual
@args_string.sub!(/\)(\s*const)?\s*=0/, ')\1') if @is_pure_virtual
@is_override = !!element.at_xpath('reimplements')
@is_const = (element['const'] == 'yes')
@is_ctor = (@name == @class_name)
Expand Down

0 comments on commit 3e20ab6

Please sign in to comment.