Class

ShumateScale

Description [src]

final class Shumate.Scale : Gtk.Widget {
  /* No available fields */
}

A widget displaying a scale.

CSS nodes

map-scale
├── label[.metric][.imperial]

ShumateScale uses a single CSS node with name map-scale, it has up to two childs different labels.

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget

Constructors

shumate_scale_new

Creates an instance of ShumateScale.

Instance methods

shumate_scale_get_max_width

Gets the maximum scale width.

shumate_scale_get_unit

Gets the unit used by the scale.

shumate_scale_get_viewport

Gets the viewport used by the scale.

shumate_scale_set_max_width

Sets the maximum width of the scale on the screen in pixels.

shumate_scale_set_unit

Sets the scale unit.

shumate_scale_set_viewport

Sets the scale viewport.

Properties

Shumate.Scale:max-width

The size of the map scale on screen in pixels.

Shumate.Scale:unit

The scale’s units.

Shumate.Scale:viewport

The viewport to use.

Class structure

struct ShumateScaleClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.