# StyleQueries

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/styling/struct-stylequeries/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct StyleQueries
```

Functions for building [`StyleQuery`](/docs/0.5.0/api/ferroui-base/styling/struct-stylequery/)s.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_queries.rs#L4)

## Members

- [`width`](#function-width)
- [`height`](#function-height)
- [`or`](#function-or)
- [`and`](#function-and)

<a id="function-width"></a>

### width

```rust
fn width(previous: Option<StyleQuery>, operator: StyleQueryComparisonOperator, value: f64) -> StyleQuery
```

Returns a query which matches the width of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_queries.rs#L8)

<a id="function-height"></a>

### height

```rust
fn height(previous: Option<StyleQuery>, operator: StyleQueryComparisonOperator, value: f64) -> StyleQuery
```

Returns a query which matches the height of the container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_queries.rs#L13)

<a id="function-or"></a>

### or

```rust
fn or(queries: impl IntoIterator<Item = StyleQuery>) -> StyleQuery
```

Returns a query which ORs queries.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_queries.rs#L18)

<a id="function-and"></a>

### and

```rust
fn and(queries: impl IntoIterator<Item = StyleQuery>) -> StyleQuery
```

Returns a query which ANDs queries.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/styling/style_queries.rs#L23)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
