Skip to content

Commit

Permalink
Merge pull request #258 from mcorino/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mcorino authored Mar 19, 2024
2 parents 743acff + 796f62f commit b8edc99
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 8 deletions.
10 changes: 10 additions & 0 deletions lib/wx/doc/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ module Wx

class App

# Run the (main loop for) the application instance.
# Optionally runs a given block as the applications #on_init callback
# if no actual #on_init method has been defined.
# A given block will be ignored if an actual #on_init method has been defined.
def run(&block) end

# Convenience method to instantiate an application object of the class
# and call the {#run} method for that application object.
def self.run(&block) end

class << self

# Set the menu item id for the About menu item.
Expand Down
4 changes: 4 additions & 0 deletions lib/wx/doc/bitmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module Wx
# Default BitmapType for current platform. Actual value is platform dependent.
CURSOR_DEFAULT_TYPE = Wx::BitmapType::BITMAP_TYPE_ANY

# @!group Art creation methods

# Searches for an art file with basename 'name' and creates a Bitmap if found.
# Raises an ArgumentError if not found.
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
Expand All @@ -28,4 +30,6 @@ module Wx
# @see Wx::ArtLocator::find_art
def self.Bitmap(name, bmp_type = nil, art_path: nil, art_section: nil); end

# @!endgroup

end
4 changes: 4 additions & 0 deletions lib/wx/doc/cursor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class Wx

# @!group Art creation methods

# Searches for an art file with basename 'name' and creates a Cursor if found.
# Raises an ArgumentError if not found.
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
Expand All @@ -21,4 +23,6 @@ class Wx
# @see Wx::ArtLocator::find_art
def self.Cursor(name, bmp_type = nil, art_path: nil, art_section: nil); end

# @!endgroup

end
7 changes: 2 additions & 5 deletions lib/wx/doc/functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ def self.log_status(fmt, *args) end

# @!endgroup

# @!group Other class methods

# Returns the global app object
# @return [Wx::App] the global app object
# Returns nil if no app instance is active.
# @return [Wx::App,nil] the global app object
def self.get_app; end

# Returns the pointer address of the underlying C++ object as a hex
Expand All @@ -124,8 +123,6 @@ def self.end_busy_cursor; end
def self.bell; end
def self.safe_yield(win = nil, only_if_needed = false) end

# @!endgroup

# @!group System information

# @return [String]
Expand Down
4 changes: 4 additions & 0 deletions lib/wx/doc/icon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class Wx

# @!group Art creation methods

# Searches for an art file with basename 'name' and creates an Icon if found.
# Raises an ArgumentError if not found.
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
Expand All @@ -23,4 +25,6 @@ class Wx
# @see Wx::ArtLocator::find_art
def self.Icon(name, bmp_type = nil, desired_width=-1, desired_height=-1, art_path: nil, art_section: nil); end

# @!endgroup

end
4 changes: 4 additions & 0 deletions lib/wx/doc/image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def compute_histogram; end

end

# @!group Art creation methods

# Searches for an art file with basename 'name' and creates an Image if found.
# Raises an ArgumentError if not found.
# Wx::ArtLocator::find_art is used to look up the art file using ::Kernel#caller_locations to
Expand All @@ -68,4 +70,6 @@ def compute_histogram; end
# @see Wx::ArtLocator::find_art
def self.Image(name, bmp_type = nil, index=-1, art_path: nil, art_section: nil); end

# @!endgroup

end
6 changes: 3 additions & 3 deletions rakelib/yard/templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ def init
# It seems YARD messes things up so that a lot of classes, modules and constants are not properly
# registered in their enclosing namespaces.
# This hack makes sure that if that is the case we fix that here.
all_objects = Registry.all(:class, :constant, :module)
all_objects = Registry.all(:class, :constant, :module, :method)
all_objects.each do |c|
if (ns = c.namespace)
unless ns.children.any? { |nsc| nsc.path == c.path }
ns.children << c # class/module/constant missing from child list of enclosing namespace -> add here
ns.children << c # class/module/constant/method missing from child list of enclosing namespace -> add here
end
end
if (ns = Registry[c.namespace.path])
unless ns.children.any? { |nsc| nsc.path == c.path }
ns.children << c # class/module/constant missing from child list of enclosing namespace -> add here
ns.children << c # class/module/constant/method missing from child list of enclosing namespace -> add here
end
end
end
Expand Down

0 comments on commit b8edc99

Please sign in to comment.