Class: CTioga::Styles::CTiogaColorParameter

Inherits:
MetaBuilder::ParameterType show all
Defined in:
lib/CTioga/styles.rb

Overview

A CTioga color

Instance Method Summary collapse

Methods inherited from MetaBuilder::ParameterType

#default_value, from_string, get_param_type, get_type, #initialize, #lookup_const, #option_parser_long_option, #option_parser_option, #option_parser_raw, #qt4_create_input_widget, #qt4_get, #string_to_type, #stt_run_hook, #type_name, type_name, #type_to_string, #type_to_variant, #variant_to_type

Constructor Details

This class inherits a constructor from MetaBuilder::ParameterType

Instance Method Details

#string_to_type_internal(str) ⇒ Object



78
79
80
# File 'lib/CTioga/styles.rb', line 78

def string_to_type_internal(str)
  return CTioga.get_tioga_color(str)
end

#type_to_string_internal(val) ⇒ Object



82
83
84
# File 'lib/CTioga/styles.rb', line 82

def type_to_string_internal(val)
  return val.map {|i| i.to_s}.join(',')
end