# `TabBarControlDelegate tabBar:imageForTabItem:offset:styleMask:`

*Instance Method*

## Declaration

```swift
optional func tabBar(_ tabBarControl: GSTabBarControl, imageForTabItem tabItem: NSViewController, offset: UnsafeMutablePointer<NSSize>, styleMask: UnsafeMutablePointer<UInt>) -> NSImage
```

```objc
- (NSImage *) tabBar:(GSTabBarControl *) tabBarControl imageForTabItem:(NSViewController *) tabItem offset:(NSSize *) offset styleMask:(NSUInteger *) styleMask;
```

```python
tabBar_imageForTabItem_offset_styleMask_(tabBarControl: GSTabBarControl, tabItem: NSViewController, offset: NSSize, styleMask: int) -> NSImage
```

