LAttribute Class

#include <Layers/lobject.h>
Inherited By: LAttribute

Public Functions

LAttribute ( const LString & name )
LAttribute ( const LString & name, double value )
LAttribute ( const LString & name, const char * value )
LAttribute ( const LString & name, const LVariant & value )
LAttribute ( const LString & name, const json & value )
~LAttribute ( )
T as ( const LStringList & state_combo = LStringList ( ), LStyle * context = nullptr )
const T * as_if ( const LStringList & state_combo = LStringList ( ), LStyle * context = nullptr )
void break_link ( bool update )
void clear_style_attribute ( )
void clone_to ( LObject * parent )
void create_link ( LAttribute * link_attr )
void create_link ( LLink * link )
LAttributeList dependent_attributes ( bool include_indirect_dependencies )
void disconnect_change ( const LConnectionID & connection )
void disconnect_link_change ( const LConnectionID & connection )
bool has_states ( )
LConnectionID on_change ( std::function<void ()> callback )
LConnectionID on_link_change ( std::function<void ()> callback )
LString path ( )
void resolve_links ( )
void set_style_attribute ( LAttribute * style_attribute )
void set_value ( const char * value )
void set_value ( const LVariant & value )
LAttribute * state ( const LStringList & state_combo )
LAttributeMap states ( bool include_parent_states )
LLink * link ( )
LAttribute * style_attribute ( )
json to_json_object ( )
json to_json_value ( )
size_t type_index ( )
const LVariant & value ( )

Detailed Description

Member Function Documentation

LAttribute ( const LString & name )

LAttribute ( const LString & name, double value )

LAttribute ( const LString & name, const char * value )

LAttribute ( const LString & name, const LVariant & value )

LAttribute ( const LString & name, const json & value )

~LAttribute ( )

No description available.

T as ( const LStringList & state_combo = LStringList ( ), LStyle * context = nullptr )

const T * as_if ( const LStringList & state_combo = LStringList ( ), LStyle * context = nullptr )

void clear_style_attribute ( )

void clone_to ( LObject * parent )

No description available.

LAttributeList dependent_attributes ( bool include_indirect_dependencies )

void disconnect_change ( const LConnectionID & connection )

bool has_states ( )

LConnectionID on_change ( std::function<void ()> callback )

LString path ( )

void set_style_attribute ( LAttribute * style_attribute )

void set_value ( const char * value )

void set_value ( const LVariant & value )

LAttribute * state ( const LStringList & state_combo )

LAttributeMap states ( bool include_parent_states )

LAttribute * style_attribute ( )

json to_json_object ( )

json to_json_value ( )

size_t type_index ( )

const LVariant & value ( )

Appearance
Theme