
Data Structures | |
| class | VLCFSPanel() |
Defines | |
| #define | addButton(o_button, imageOff, imageOn, _x, _y, action) |
| #define | addTextfield(o_text, align, font, color, size) |
| #define | addImage(image, _x, _y, mode, _width) |
| #define addButton | ( | o_button, | |||
| imageOff, | |||||
| imageOn, | |||||
| _x, | |||||
| _y, | |||||
| action | ) |
Value:
s_rc.origin.x = _x; \
s_rc.origin.y = _y; \
o_button = [[NSButton alloc] initWithFrame: s_rc]; \
[o_button setButtonType: NSMomentaryChangeButton]; \
[o_button setBezelStyle: NSRegularSquareBezelStyle]; \
[o_button setBordered: NO]; \
[o_button setFont:[NSFont systemFontOfSize:0]]; \
[o_button setImage:[NSImage imageNamed:imageOff]]; \
[o_button setAlternateImage:[NSImage imageNamed:imageOn]]; \
[o_button sizeToFit]; \
[o_button setTarget: self]; \
[o_button setAction: @selector(action:)]; \
[self addSubview:o_button];
Referenced by VLCFSPanelView::initWithFrame:.
| #define addImage | ( | image, | |||
| _x, | |||||
| _y, | |||||
| mode, | |||||
| _width | ) |
Value:
img = [NSImage imageNamed:image]; \ image_rect.size = [img size]; \ image_rect.origin.x = 0; \ image_rect.origin.y = 0; \ frame.origin.x = _x; \ frame.origin.y = _y; \ frame.size = [img size]; \ if( _width ) frame.size.width = _width; \ [img drawInRect:frame fromRect:image_rect operation:mode fraction:1];
Referenced by VLCFSPanelView::drawRect:.
| #define addTextfield | ( | o_text, | |||
| align, | |||||
| font, | |||||
| color, | |||||
| size | ) |
Value:
o_text = [[NSTextField alloc] initWithFrame: s_rc]; \
[o_text setDrawsBackground: NO]; \
[o_text setBordered: NO]; \
[o_text setEditable: NO]; \
[o_text setSelectable: NO]; \
[o_text setStringValue: _NS("(no item is being played)")]; \
[o_text setAlignment: align]; \
[o_text setTextColor: [NSColor color]]; \
[o_text setFont:[NSFont font:[NSFont smallSystemFontSize] - size]]; \
[self addSubview:o_text];
Referenced by VLCFSPanelView::initWithFrame:.
1.5.6