Class: Wx::VersionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/gen/platform_info.rb

Overview

Note:

This class is untracked and should not be derived from nor instances extended!

VersionInfo contains version information.

This class is used by wxWidgets to provide version information about the libraries it uses and itself, but you can also apply it in user space, to provide version information about your own libraries, or other libraries that you use.

Category: Data Structures

Instance Method Summary collapse

Constructor Details

#initialize(name = (''), major = 0, minor = 0, micro = 0, revision = 0, description = (''), copyright = ('')) ⇒ Wx::VersionInfo

Constructor.

The version information objects need to be initialized with this constructor and are immutable once they are created.

Parameters:

  • name (String) (defaults to: (''))

    The name of the library or other entity that this object pertains to.

  • major (Integer) (defaults to: 0)

    The major version component.

  • minor (Integer) (defaults to: 0)

    The minor version component.

  • micro (Integer) (defaults to: 0)

    The micro version component, 0 by default.

  • revision (Integer) (defaults to: 0)

    The revision version component, also known as “build number”. This component is also 0 by default and is only available since wxWidgets 3.2.0.

  • description (String) (defaults to: (''))

    Free form description of this version, none by default.

  • copyright (String) (defaults to: (''))

    Copyright string, none by default.



416
# File 'lib/wx/doc/gen/platform_info.rb', line 416

def initialize(name=(''), major=0, minor=0, micro=0, revision=0, description=(''), copyright=('')) end

Instance Method Details

Get the copyright string.

The copyright string may be empty. The copyright string.

Returns:

  • (Wx::String)


500
# File 'lib/wx/doc/gen/platform_info.rb', line 500

def get_copyright; end

#get_descriptionWx::String Also known as: description

Get the description string.

The description may be empty. The description string, free-form.

Returns:

  • (Wx::String)


484
# File 'lib/wx/doc/gen/platform_info.rb', line 484

def get_description; end

#get_majorInteger Also known as: major

Get the major version number.

Major version number.

Returns:

  • (Integer)


429
# File 'lib/wx/doc/gen/platform_info.rb', line 429

def get_major; end

#get_microInteger Also known as: micro

Get the micro version, or release number.

This is the third component of the version. Micro version, or release number.

Returns:

  • (Integer)


444
# File 'lib/wx/doc/gen/platform_info.rb', line 444

def get_micro; end

#get_minorInteger Also known as: minor

Get the minor version number.

Minor version number.

Returns:

  • (Integer)


436
# File 'lib/wx/doc/gen/platform_info.rb', line 436

def get_minor; end

#get_nameWx::String Also known as: name

Get the name of the object (library).

Name string.

Returns:

  • (Wx::String)


422
# File 'lib/wx/doc/gen/platform_info.rb', line 422

def get_name; end

#get_revisionInteger Also known as: revision

Get the revision version, or build number.

This is the fourth component of the version. Revision version, or build number.

Returns:

  • (Integer)


452
# File 'lib/wx/doc/gen/platform_info.rb', line 452

def get_revision; end

#get_version_stringString Also known as: version_string

Get the string representation.

The micro and revision components of the version are ignored/not used if they are both zero. If the revision component is non-zero all four parts will be used even if the micro component is zero. The version string in the form “name major.minor[.micro]”.

Returns:

  • (String)


468
# File 'lib/wx/doc/gen/platform_info.rb', line 468

def get_version_string; end

Returns true if a copyright string has been specified.

Returns:

  • (Boolean)

See Also:



492
# File 'lib/wx/doc/gen/platform_info.rb', line 492

def has_copyright; end

#has_descriptionBoolean Also known as: has_description?

Return true if a description string has been specified.

Returns:

  • (Boolean)

See Also:



476
# File 'lib/wx/doc/gen/platform_info.rb', line 476

def has_description; end

#to_stringString

Get the string representation of this version object.

This function returns the description if it is non-empty or #get_version_string if there is no description.

Returns:

  • (String)

See Also:



461
# File 'lib/wx/doc/gen/platform_info.rb', line 461

def to_string; end