xtd 0.2.0
Loading...
Searching...
No Matches

◆ assembly_copyright_

#define assembly_copyright_ (   copyright)

#include <xtd.core/include/xtd/reflection/assembly_copyright_attribute.h>

Sets the assembly copoyright information. Must be called once in your application.

Remarks
Use this keyword if you create create assembly informations manually.
Use CMake assembly macro if you want create assembly informations with CMake scripts.
Parameters
versionThe version information.
Header
#include <xtd/reflection/assembly_copyright_attribute>
Library
xtd.core
Examples
The following example shows how to use assembly information manually.
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/label>
#include <xtd/forms/text_box>
#include <xtd/startup>
using namespace xtd::forms;
class form1 : public form {
public:
static auto main() {
application::run(form1 {});
}
form1() {
text("Form with manual assembly info");
controls().push_back_range({company, product, version, company_name, product_name, product_version});
client_size({350, 105});
company.auto_size(true);
company.text("Company name");
company.location({10, 10});
company.text_align(content_alignment::middle_left);
product.auto_size(true);
product.text("Product name");
product.location({10, 40});
product.text_align(content_alignment::middle_left);
version.auto_size(true);
version.text("Product version");
version.location({10, 70});
version.text_align(content_alignment::middle_left);
company_name.text(application::company_name());
company_name.read_only(true);
company_name.location({120, 10});
company_name.width(220);
product_name.text(application::product_name());
product_name.read_only(true);
product_name.location({120, 40});
product_name.width(220);
product_version.text(application::product_version());
product_version.read_only(true);
product_version.location({120, 70});
product_version.width(220);
}
private:
label company;
label product;
text_box company_name;
text_box product_name;
text_box product_version;
};
startup_(form1::main);
Represents a window or dialog box that makes up an application's user interface.
Definition form.h:54
Represents a standard Windows label.
Definition label.h:38
Represents a standard Windows text box.
Definition text_box.h:31
Represents the version number of an assembly, operating system, or the xtd. This class cannot be inhe...
Definition version.h:114
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
#pragma region xtd generated code
// This code was generated by CMake script.
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// Remarks : If this file was manually created, you need re-run cmake generator after creating
// or modifying any parameter bellow.
#include <xtd/reflection/assembly_info>
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
assembly_title_("Forms with CMake assembly information");
assembly_description_("This example shows how to use xtd assembly informations");
assembly_company_("Gammasoft");
assembly_product_("form_with_cmake_assembly_info");
assembly_copyright_("Copyright © Gammasoft 2024");
// The following GUID is for the ID of the typelib if this project is exposed to COM
assembly_guid_("9b363484-3d19-40a5-b5ac-eeebd391163b");
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// In not specify or empty or "*" the cmake project version is used.
#pragma endregion
#define assembly_product_(product)
Sets the assembly product information. Must be called once in your application.
Definition assembly_product_attribute.h:74
#define assembly_title_(title)
Sets the assembly title information. Must be called once in your application.
Definition assembly_title_attribute.h:74
#define assembly_description_(description)
Sets the assembly description information. Must be called once in your application.
Definition assembly_description_attribute.h:78
#define assembly_culture_(culture)
Sets the assembly culture information. Must be called once in your application.
Definition assembly_culture_attribute.h:76
#define assembly_version_(version)
Sets the assembly version information. Must be called once in your application.
Definition assembly_version_attribute.h:79
#define assembly_guid_(guid)
Sets the assembly guid information. Must be called once in your application.
Definition assembly_guid_attribute.h:74
#define assembly_trademark_(trademark)
Sets the assembly trademark information. Must be called once in your application.
Definition assembly_trademark_attribute.h:72
#define assembly_company_(company)
Sets the assembly company information. Must be called once in your application.
Definition assembly_company_attribute.h:76
#define assembly_configuration_(configuration)
Sets the assembly configuration information. Must be called once in your application.
Definition assembly_configuration_attribute.h:76
#define assembly_copyright_(copyright)
Sets the assembly copoyright information. Must be called once in your application.
Definition assembly_copyright_attribute.h:76