gtk 0.9.1

Rust bindings for the GTK+ 3 library
Documentation
// Copyright 2013-2018, The Gtk-rs Project Developers.
// See the COPYRIGHT file at the top-level directory of this distribution.
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>

use PadActionType;

#[derive(Debug, Clone)]
pub struct PadActionEntry {
    type_: PadActionType,
    index: i32,
    mode: i32,
    label: String,
    action_name: String,
}

impl PadActionEntry {
    pub fn new(
        type_: PadActionType,
        index: i32,
        mode: i32,
        label: &str,
        action_name: &str,
    ) -> PadActionEntry {
        assert_initialized_main_thread!();
        PadActionEntry {
            type_,
            index,
            mode,
            label: label.to_owned(),
            action_name: action_name.to_owned(),
        }
    }

    pub fn get_type(&self) -> PadActionType {
        self.type_
    }

    pub fn get_index(&self) -> i32 {
        self.index
    }

    pub fn get_mode(&self) -> i32 {
        self.mode
    }

    pub fn get_label(&self) -> &str {
        &self.label
    }

    pub fn get_action_name(&self) -> &str {
        &self.action_name
    }
}