This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)drawRect:(NSRect)dirtyRect | |
| { | |
| [super drawRect:dirtyRect]; | |
| static int redOffset = 0; | |
| static int greenOffset = 0; | |
| static int blueOffset = 0; | |
| for (int y = 0; y < _bitmapHeight; y++) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSTextField* xxxUIControlCreateTextField(NSStackView* parent, const char* label, const char* default_value, u32 tag, float preferred_width, float view_width) | |
| { | |
| NSStackView* stack = [[NSStackView alloc] init]; | |
| stack.translatesAutoresizingMaskIntoConstraints = NO; | |
| stack.orientation = NSUserInterfaceLayoutOrientationHorizontal; | |
| stack.spacing = 4; | |
| NSTextField* tf_label = nil; |
OlderNewer