# Trait glib::object::ObjectExt [−] [src]

    pub trait ObjectExt: IsA<Object> {
        fn get_type(&self) -> Type;
        fn set_property<'a, N: Into<&'a str>>(
            &self,
            property_name: N,
            value: &Value
        ) -> Result<(), BoolError>;
        fn get_property<'a, N: Into<&'a str>>(
            &self,
            property_name: N
        ) -> Result<Value, BoolError>;
        fn has_property<'a, N: Into<&'a str>>(
            &self,
            property_name: N,
            type_: Option<Type>
        ) -> Result<(), BoolError>;
        fn get_property_type<'a, N: Into<&'a str>>(
            &self,
            property_name: N
        ) -> Option<Type>;
        fn connect<'a, N, F>(
            &self,
            signal_name: N,
            after: bool,
            callback: F
        ) -> Result<u64, BoolError>
        where
            N: Into<&'a str>,
            F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static;
        fn emit<'a, N: Into<&'a str>>(
            &self,
            signal_name: N,
            args: &[&Value]
        ) -> Result<Option<Value>, BoolError>;
        fn downgrade(&self) -> WeakRef<Self>;
    }

## Required Methods

### `fn get_type(&self) -> Type`

### `fn set_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
value: &Value
) -> Result<(), BoolError>`

### `fn get_property<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Result<Value, BoolError>`

### `fn has_property<'a, N: Into<&'a str>>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>`

### `fn get_property_type<'a, N: Into<&'a str>>(
&self,
property_name: N
) -> Option<Type>`

### `fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<u64, BoolError> where
N: Into<&'a str>,
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,`

### `fn emit<'a, N: Into<&'a str>>(
&self,
signal_name: N,
args: &[&Value]
) -> Result<Option<Value>, BoolError>`

### `fn downgrade(&self) -> WeakRef<Self>`

## Implementors

- `impl<T: IsA<Object> + SetValue> ObjectExt for T`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
↑
  Move up in search results
↓
  Move down in search results
↹
  Switch tab
⏎
  Go to active search result
+ / -
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)