Archicad 28 C++ API
|
A class that contains functions related to zone labeling by favorite. More...
#include <ZoneLabelingSettings.hpp>
Public Member Functions | |
bool | IsAutomaticLabelingOn () const |
A function to return if a label should automatically be placed onto new zone or not. | |
Result< GS::UniString > | GetSelectedFavoriteName () const |
A function to return the selected favorite from infobox for zone. | |
template<class ModifierFunc > | |
Result< void > | Modify (ModifierFunc &&modifierFunc) |
Executes the given modifier scope in a NotUndoable command. | |
void | SetAutomaticLabeling (bool labeling) |
A function to set whether a label should automatically be placed onto new zones or not. | |
Result< void > | SetSelectedFavorite (const GS::UniString &favoriteName) |
A function to set the label favorite that should be used for the automatic labeling of zones. | |
![]() | |
Object (std::shared_ptr< Impl::ObjectImpl > impl) | |
Constructs a new object. | |
const API_Token & | GetToken () const |
Get the token for this object. | |
Friends | |
ZoneLabelingSettings | CreateZoneLabelingSettings () |
A function to create zone labeling settings instance, that lets you query and manipulate zone label favorite related data. | |
Additional Inherited Members | |
![]() | |
~Object () | |
Default destructor. | |
![]() | |
std::shared_ptr< Impl::ObjectImpl > | mImpl |
Impl object given by constructor. | |
A class that contains functions related to zone labeling by favorite.
Result< GS::UniString > ACAPI::v1::ZoneLabelingSettings::GetSelectedFavoriteName | ( | ) | const |
A function to return the selected favorite from infobox for zone.
bool ACAPI::v1::ZoneLabelingSettings::IsAutomaticLabelingOn | ( | ) | const |
A function to return if a label should automatically be placed onto new zone or not.
Result< void > ACAPI::v1::ZoneLabelingSettings::Modify | ( | ModifierFunc && | modifierFunc | ) |
Executes the given modifier scope in a NotUndoable command.
modifierFunc | The modifier scope (lambda, std::function or function pointer) the caller wants to execute. |
void ACAPI::v1::ZoneLabelingSettings::SetAutomaticLabeling | ( | bool | labeling | ) |
A function to set whether a label should automatically be placed onto new zones or not.
labeling | [in] The logical value to be set, if label should be placed or not. |
Result< void > ACAPI::v1::ZoneLabelingSettings::SetSelectedFavorite | ( | const GS::UniString & | favoriteName | ) |
A function to set the label favorite that should be used for the automatic labeling of zones.
favoriteName | [in] The name of the label favorite. |
|
friend |
A function to create zone labeling settings instance, that lets you query and manipulate zone label favorite related data.