# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # The {Wx::GBSizerItem} class is used by the {Wx::GridBagSizer} for tracking the items in the sizer. # It adds grid position and spanning information to the normal {Wx::SizerItem} by adding {Wx::GBPosition} and {Wx::GBSpan} attributes. Most of the time you will not need to use a {Wx::GBSizerItem} directly in your code, but there are a couple of cases where it is handy. # === # # Category: Window Layout # class GBSizerItem < SizerItem # Get the grid position of the item. # @return [Wx::GBPosition] def get_pos; end alias_method :pos, :get_pos # Get the row and column spanning of the item. # @return [Wx::GBSpan] def get_span; end alias_method :span, :get_span # Get the row and column of the endpoint of this item. # @return [Array(Integer,Integer)] def get_end_pos; end alias_method :end_pos, :get_end_pos # @overload intersects(other) # Returns true if this item and the other item intersect. # @param other [Wx::GBSizerItem] # @return [Boolean] # @overload intersects(pos, span) # Returns true if the given pos/span would intersect with this item. # @param pos [Wx::GBPosition] # @param span [Wx::GBSpan] # @return [Boolean] def intersects(*args) end # If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one at the new position, then set the new position. # Returns true if the change is successful and after the next Layout the item will be moved. # @param pos [Wx::GBPosition] # @return [Boolean] def set_pos(pos) end alias_method :pos=, :set_pos # If the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one with its new spanning size, then set the new spanning. # Returns true if the change is successful and after the next Layout the item will be resized. # @param span [Wx::GBSpan] # @return [Boolean] def set_span(span) end alias_method :span=, :set_span # @return [Wx::GridBagSizer] def get_gb_sizer; end alias_method :gb_sizer, :get_gb_sizer end # GBSizerItem end