# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # This class creates button layouts which conform to the standard button spacing and ordering defined by the platform or toolkit's user interface guidelines (if such things exist). # By using this class, you can ensure that all your standard dialogs look correct on all major platforms. Currently it conforms to the Windows, GTK+ and macOS human interface guidelines. # When there aren't interface guidelines defined for a particular platform or toolkit, {Wx::StdDialogButtonSizer} reverts to the Windows implementation. # To use this class, first add buttons to the sizer by calling {Wx::StdDialogButtonSizer#add_button} (or {Wx::StdDialogButtonSizer#set_affirmative_button}, {Wx::StdDialogButtonSizer#set_negative_button} or {Wx::StdDialogButtonSizer#set_cancel_button}) and then call Realize in order to create the actual button layout used. Other than these special operations, this sizer works like any other sizer. # If you add a button with {Wx::StandardID::ID_SAVE}, on macOS the button will be renamed to "Save" and the {Wx::StandardID::ID_NO} button will be renamed to "Don't Save" in accordance with the macOS Human Interface Guidelines. # === # # Category: Window Layout # @see Wx::Sizer # @see Sizers Overview # @see Wx::Dialog#create_button_sizer # # class StdDialogButtonSizer < BoxSizer # Constructor for a {Wx::StdDialogButtonSizer}. # @return [Wx::StdDialogButtonSizer] def initialize; end # Adds a button to the {Wx::StdDialogButtonSizer}. # The button must have one of the following identifiers: # # - {Wx::StandardID::ID_OK} # - {Wx::StandardID::ID_YES} # - {Wx::StandardID::ID_SAVE} # - {Wx::StandardID::ID_APPLY} # - {Wx::StandardID::ID_CLOSE} # - {Wx::StandardID::ID_NO} # - {Wx::StandardID::ID_CANCEL} # - {Wx::StandardID::ID_HELP} # - {Wx::StandardID::ID_CONTEXT_HELP} # @param button [Wx::Button] # @return [void] def add_button(button) end # Rearranges the buttons and applies proper spacing between buttons to make them match the platform or toolkit's interface guidelines. # @return [void] def realize; end # Sets the affirmative button for the sizer. # This allows you to use identifiers other than the standard identifiers outlined above. # @param button [Wx::Button] # @return [void] def set_affirmative_button(button) end alias_method :affirmative_button=, :set_affirmative_button # Sets the cancel button for the sizer. # This allows you to use identifiers other than the standard identifiers outlined above. # @param button [Wx::Button] # @return [void] def set_cancel_button(button) end alias_method :cancel_button=, :set_cancel_button # Sets the negative button for the sizer. # This allows you to use identifiers other than the standard identifiers outlined above. # @param button [Wx::Button] # @return [void] def set_negative_button(button) end alias_method :negative_button=, :set_negative_button # Method which must be overridden in the derived sizer classes. # The implementation should reposition the children using the current total size available to the sizer (m_size) and the size computed by the last call to {Wx::StdDialogButtonSizer#calc_min}. # @param minSize [Array(Integer, Integer), Wx::Size] # @return [void] def reposition_children(minSize) end # Implements the calculation of a box sizer's minimal. # It is used internally only and must not be called by the user. Documented for information. # @return [Wx::Size] def calc_min; end end # StdDialogButtonSizer end