Class: GOffice::GraphTheme

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.foreach(handler, user_data) ⇒ nil

Executes handler to each theme installed on the system, including built-in themes.

Parameters:

  • handler (GLib::Func)

    a #GFunc using a theme as first argument

  • user_data (GObject)

    data to pass to handler

Returns:

  • (nil)

.registry_get_theme_namesGLib::SList<String>

Returns a newly allocated theme name list from theme registry.

Returns:

  • (GLib::SList<String>)

    a newly allocated theme name list from theme registry.

.registry_lookup(name) ⇒ GOffice::GraphTheme

Returns a Gog::Theme from theme registry.

Parameters:

  • name (String)

    a theme name

Returns:

Instance Method Details

#deleteBoolean

Destroys the theme and remove it from the user directory and from the database.

Returns:

  • (Boolean)

    true on success.

#descriptionString

Returns:

  • (String)

#dupGOffice::GraphTheme

Duplicates theme with a new Id.

Returns:

#edit(cc) ⇒ GOffice::GraphTheme

Displays a dialog box to edit the theme. This can be done only for locally installed themes that are writeable. been cancelled.

Parameters:

Returns:

#fillin_style(style, obj, ind, relevant_fields) ⇒ nil

Fill in the auto aspects of style based on theme 's element for objects of type/role similar to obj with index ind. If relevant_fields is GO_STYLE_ALL, fillin the entire style, not just the auto portions included in relevant_fields.

Parameters:

Returns:

  • (nil)

#get_color_map(discrete) ⇒ GOffice::GraphAxisColorMap

Retrieves the themed color map. Each theme has a discrete color map and a continuous one.

Parameters:

  • discrete (Boolean)

    whether the map is for a discrete axis.

Returns:

#idString

Retrieves the theme Id.

Returns:

  • (String)

    the GogTheme Id.

#nameString

Returns the GogTheme name.

Returns:

  • (String)

    the GogTheme name.

#resource_typeGOffice::ResourceType

Returns resource-type.

Returns:

#resource_type=(resource_type) ⇒ GOffice::ResourceType

Parameters:

Returns:

#save_to_home_dirnil

Writes the theme to the user directory so that it becomes permanently available.

Returns:

  • (nil)